arm-none-eabi-gcc: warning: '-x assembler-with-cpp' after last input file has no effect

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

arm-none-eabi-gcc: warning: '-x assembler-with-cpp' after last input file has no effect

跳至解决方案
5,354 次查看
joelesco
Contributor III

Hi !

 

 

I'm using CW with the ARM GCC C compiler  and when I add to my project a file .asm an error occur :

 

arm-none-eabi-gcc: warning: '-x assembler-with-cpp' after last input file has no effect

arm-none-eabi-gcc: warning: ../Sources/FNET/fnet_stack/cpu/mcf/fnet_mcf_low.asm: linker input file unused because linking not done

arm-none-eabi-gcc: error: ./Sources/FNET/fnet_stack/cpu/mcf/fnet_mcf_low.o: No such file or directory

 

 

It seems to be the linker properties that needs to be change but I'm lost ... I tried some things ... but nothings good :s

 

I hope someone has already resolv this problem

 

thanks a lot !

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
3,238 次查看
christophegraul
Contributor II

C'est une idée carrément plus simple ! j'aime ca.

Je suis en train de le tester ces jours-ci.

Sinon Fnet en tant que tel tourne sur plusieurs projets mais compilé avec le compilateur de Freescale et de CW 10.4/10.5

Christophe

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,238 次查看
christophegraul
Contributor II

Hi Jérémie.

I had the same issue than you. I solved it using the GCC feature to compile embedded assembly code.

I created a file fnet_mk_low_c.c that defines the functions defined in fnet_mk_low.asm then I deactivated fnet_mk_low.asm from the compilation.

The compilation and link goes well like this.

I hope this helps

Christophe

0 项奖励
回复
3,238 次查看
joelesco
Contributor III

Salut Christophe !

Finalement j'ai résolu le problème d'une autre façon et renommant les .asm en .S !

Arrives-tu à faire tourner la stack FNET  avec le compilateur GCC ?

Jérémie

0 项奖励
回复
3,239 次查看
christophegraul
Contributor II

C'est une idée carrément plus simple ! j'aime ca.

Je suis en train de le tester ces jours-ci.

Sinon Fnet en tant que tel tourne sur plusieurs projets mais compilé avec le compilateur de Freescale et de CW 10.4/10.5

Christophe

0 项奖励
回复