LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 01-16-2005, 02:31 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,133

Rep: Reputation: 45
binutils problem??


Hi when i configued the binutils package for the fist step then i took the following output

Code:
loading cache ./config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... i586-pc-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for i586-pc-linux-gnu-ar... (cached) ar
checking for i586-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i586-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i586-pc-linux-gnu-ld... no
checking for ld... (cached) ld
checking for i586-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i586-pc-linux-gnu-ranlib... (cached) ranlib
checking for i586-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking for i586-pc-linux-gnu-objcopy... no
checking for objcopy... (cached) objcopy
checking for i586-pc-linux-gnu-objdump... no
checking for objdump... (cached) objdump
checking for i586-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i586-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i586-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i586-pc-linux-gnu-ld... no
checking for ld... (cached) ld
checking for i586-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i586-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i586-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking whether to enable maintainer-specific portions of Makefiles... no
creating ./config.status
creating Makefile
Do u think that so many no are fine for a pentium 233 mmx system?

After this step i compiled binutils with no other problem

Then i stuck in the gcc configuration




Code:
../gcc-3.3.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
-bash-2.05b$ cd gcc-build/
-bash-2.05b$ ../gcc-3.3.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
-bash-2.05b$ ../gcc-3.3.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
Configuring for a i586-pc-linux-gnu host.
Created "Makefile" in /mnt/lfs/gcc-build using "mt-frag"
/tools/bin/ld: unrecognized option '--as-needed'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
The error suggests my adding the cc environmental variable. As fas as i know this must be unset (lfs manual tells that)
 
Old 01-16-2005, 08:18 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
did you make the symlink from gcc to cc (like: ln -s /tools/bin/gcc /tools/bin/cc)?

to set the environment variable (this shouldn't be neccesarry, as the above should take care of what its looking for)

export CC=/tools/bin/gcc
 
Old 01-17-2005, 05:04 AM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,133

Original Poster
Rep: Reputation: 45
no

I don't know any reason for creating such simlink. The documentation says nothing about it. I think the problem exists i binutils and at the bunch of no the configure created
 
Old 01-17-2005, 05:09 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what does the following output:
Code:
cc -v
and did you look at config.log to see where conftest.c had a problem?
 
Old 01-17-2005, 10:17 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Another question: Which LFS version (5.x or 6.x) are you trying to install?

If you are trying 5.x, try 6.x instead (see here why: http://lfs.securewebservices.co.uk/l...ml#no-asneeded

If you are trying to install 6.x, what is your base system?

Also take a look at this thread (from post #7 onward):

http://www.linuxquestions.org/questi...hreadid=216574

All this has to do with an added option (--as-needed) in binutils-2.15. Feed your fav searchengine with:

ld "unrecognized option '--as-needed'"

It shows that this is not LFS specific.
 
  


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
LFS-5.0 GCC problem with binutils-2.14 pass 1 NCappaZoo Linux From Scratch 6 06-14-2009 04:47 AM
Startup Problem: Binutils rvijay Linux From Scratch 10 06-15-2007 09:54 AM
5.3 Binutils problem dupree Linux From Scratch 2 07-20-2005 08:36 PM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 05:07 AM
LFS 5.1.1: another problem after binutils pass 2 7.e.Q Linux From Scratch 1 07-12-2004 05:37 AM


All times are GMT -5. The time now is 04:34 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration