LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   binutils problem?? (https://www.linuxquestions.org/questions/linux-from-scratch-13/binutils-problem-278519/)

alaios 01-16-2005 01:31 PM

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)

__J 01-16-2005 07:18 PM

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

alaios 01-17-2005 04:04 AM

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

__J 01-17-2005 04:09 AM

what does the following output:
Code:

cc -v
and did you look at config.log to see where conftest.c had a problem?

druuna 01-17-2005 09:17 AM

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.


All times are GMT -5. The time now is 10:51 PM.