Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-27-2011, 05:46 AM
|
#1
|
|
Member
Registered: Oct 2010
Posts: 54
Rep:
|
Impossible to compile kernel source
When I try to compile kernel source (directly downloaded by kernel.org, decompressed in /usr/src), an errore is returned on stdout:
Code:
HOSTCC scripts/basic/fixdep
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
suggestions??
Thanks in advance.
|
|
|
|
07-27-2011, 06:17 AM
|
#2
|
|
Senior Member
Registered: Dec 2005
Posts: 1,632
Rep: 
|
Did you install the build-essential package?
|
|
|
|
07-27-2011, 07:04 AM
|
#3
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
( 'build-essential' is a 5kB package, that installs g++ and make ! )
In Debian Wheezy/Sid, only the system gcc will know the location of libgcc_s.
→ /lib/i386-linux-gnu/libgcc_s.so.1 or /lib/x86_64-linux-gnu/libgcc_s.so.1
Other "gcc", added from e.g. Debian Squeeze, will look for /lib/libgcc_s.so.1
So what is your OS, and which gcc is used for the above ? ?
..
|
|
|
|
07-28-2011, 11:11 AM
|
#4
|
|
Member
Registered: Oct 2010
Posts: 54
Original Poster
Rep:
|
I use a stable version of Debian (but I admit I've modified my sources.list with Wheezy repo).
I found
in
Code:
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/libgcc_s.so
but also in
Code:
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.4/libgcc_s.so
Note that my file is different named by your one. And it's placed in another path.
I tried to delete one of them and put the other one in the directory you've indicate me in your post, but the error remains.
@Dutch Master: yes 
|
|
|
|
07-28-2011, 12:23 PM
|
#5
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
A temporary workaround, that usually works is :
cd /usr/local/lib/
# ln -s /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/<version>/libgcc_s.so
Sorry for libgcc_s.so.1 : I guess, I was rather sleepy.
My question from post #3 hasn't been answered ? ?
"" .. which gcc is used for the above ""
..
Last edited by knudfl; 07-28-2011 at 12:46 PM.
|
|
|
|
07-29-2011, 04:45 AM
|
#6
|
|
Member
Registered: Oct 2010
Posts: 54
Original Poster
Rep:
|
Ehm...
I'm sorry..What do you want to know exactly?
|
|
|
|
07-29-2011, 07:13 AM
|
#7
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
The reason to ask for the gcc version :
It looks like you have a mix of a Squeeze gcc and a Wheezy libgcc.
( And that's probably not a good idea ? )
Compiling a new kernel : it will often want the same compiler
used again when you later have to add a new module.
My suggestion is to use a genuine Squeeze gcc install.
|
|
|
|
07-29-2011, 09:02 AM
|
#8
|
|
Member
Registered: Oct 2010
Posts: 54
Original Poster
Rep:
|
[Solved]
Oh yes, I've understood.
But..I upgraded Debian (using apt-get), I installed kernel-source (using apt-get install..) and now the problem is solved, because it seems I manage to customize the kernel using menuconfig.
However, is there a way to prove you idea?
Last edited by kususe; 07-30-2011 at 05:14 AM.
|
|
|
|
07-31-2011, 12:18 AM
|
#9
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,590
|
Quote:
|
However, is there a way to prove you idea ?
|
You mean, if a package is a Wheezy package ?
The full version number is visible is Synaptic.
Squeeze libgcc1 : 4.4.5-8 http://packages.debian.org/squeeze/libgcc1
Wheezy libgcc1 : 4.6.1-4
Sid libgcc1 : 4.6.1-5
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:13 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|