LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


LinkBack Search this Thread
Old 06-18-2012, 02:08 AM   #1
Registered: Jun 2012
Location: India
Distribution: 2.6.x
Posts: 40

Rep: Reputation: Disabled
Question Error...-lgcc not found


I am building a toolchain for ARM 8 specific cross-compiler.

getting this error at making of complete compiler
make[1]: Leaving directory `/home/toolchain_project/Control-project/build-tools/build-gcc'
make: *** [all] Error 2

If I execute a simple hello.c program using my target gcc, than it gives me error.

/home/toolchain_project/Control-project/tools/lib/gcc/arm-linux/4.4.4/../../../../arm-linux/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status.
Any guidance...??
what is -lgcc...??

Old 06-18-2012, 08:13 AM   #2
Senior Member
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,001

Rep: Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003
-lgcc is a command line argument to the linker and it means the linker should link the library named gcc to the actual target. The filename of that lib may change depending on other flags, so it can be, or ... .

If someone helps you, or you approve of what's posted, click the "Add to Reputation" button, on the left of the post.
Happy with solution ... mark as SOLVED
(located in the "thread tools")


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glibc 2.7 Build Error "ld: cannot find -lgcc" binzyw Linux From Scratch 8 06-25-2012 02:51 AM
-lgcc not found. manoj7410 Linux - Embedded & Single-board computer 1 06-12-2012 08:54 AM
Conmpile error wen compile php:configure: error: libpng.(a|so) not found tanveer Linux - Software 5 02-03-2009 06:13 AM

All times are GMT -5. The time now is 01:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration