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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
2,592 Views
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 !

Labels (1)
Tags (1)
0 Kudos
1 Solution
476 Views
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

View solution in original post

0 Kudos
3 Replies
476 Views
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 Kudos
476 Views
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 Kudos
477 Views
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

View solution in original post

0 Kudos