arm-none-eabi-ld cannot find -lgcc

Asked by Marlon Smith

Hi, I installed this toolchain on Ubuntu 14.04 but when I go to compile a project I get an error:

/home/marlon/Downloads/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-ld: cannot find -lgcc

I've specified -nostdlibs and -lgcc as linker arguments. My colleague has installed the same toolchain on his Ubuntu 14.04 installation and it works correctly for him. libgcc.a is in /home/marlon/Downloads/gcc-arm-none-eabi-4_9-2014q4/lib/gcc/arm-none-eabi/4.9.3/armv6-m, and that path has been given to the build system.

Any idea where ld looks for libgcc.a, or how I can force it to find the correct file?

Thanks

Marlon

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Marlon Smith
Solved:
Last query:
Last reply:
Revision history for this message
Marlon Smith (marlon-smith10) said :
#1

Of course after hours of trying I solve this right after I ask the question! I had to carefully specify the correct paths for the library and include files.