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)