LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


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

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


hi..

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...??

Thanks
 
Old 06-18-2012, 08:13 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,376

Rep: Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009Reputation: 8009
-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 libgcc.so, libgcc_s.so or ... .
see http://gcc.gnu.org/onlinedocs/gccint/Libgcc.html.




_____________________________________
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")
 
  


Reply


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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:20 AM.

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