gcc-3.2...WHY?

steve sorry at nospam.it
Fri Oct 4 09:04:34 PDT 2002


hello...
chapter 6: trying to install gcc + gcc-3.2-nofixincludes-2.patch: here is my 
script:
#---------------------------------
LFS=/
SRG=/usr/src

cd $SRG
nomedir=gcc-3.2
cd $nomedir
patch -Np1 -i ../gcc-3.2-nofixincludes-2.patch
mkdir ../gcc-build
cd ../gcc-build
../$nomedir/configure --prefix=/usr --enable-shared --enable-threads=posix \ 
--with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu
make bootstrap
make install
ln -s ../usr/bin/cpp /lib
ln -s ../bin/cpp /usr/lib
ln -s gcc /usr/bin/cc
#----------------------------------

tried with both the patches available (gcc-3.2-nofixincludes-2.patch, 
gcc-3.2.patch).

the result is:

patching file gcc/Makefile.in
Configuring for a i686-pc-linux-gnulibc1 host.
Created "Makefile" in /usr/src/gcc-build using "mh-frag" and "mt-frag"
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/ld: 
cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
Bootstrapping the compiler
/bin/sh: cd: gcc: No such file or directory
make: *** [bootstrap] Error 1
/bin/sh ../gcc-3.2/mkinstalldirs /usr /usr

please help...
thanks, stefano.
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list