lfs 4.0 makefile

Eric mailing-lists at digitaleric.net
Mon Oct 7 10:17:44 PDT 2002

I have encountered 2 problems using this makefile.  The first is that the 
chroot lines in the makefile

su -c " \
chroot /mnt/lfs /static/bin/env -i HOME=/root TERM=xterm \
    PS1='\u:\w\' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
    /static/bin/bash -c \
' cd /static/src && make inside-chroot SHELL=/static/bin/bash ' "

did not work on my RH 7.3 system.  I had to change it to

su -c " \
/usr/sbin/chroot ...

Then it worked until the inside-chroot gcc build.  I have no idea what the 
problem is, so I would appriciate any help people could offer.  Here is the 
relevant portion of the log:

make[2]: Leaving directory `/static/src'
tar -xvjf gcc-3.2.tar.bz2 && \
cd gcc-3.2 && \
bzcat ../gcc-3.2.patch.bz2 | patch -Np1 && \
mkdir ../gcc-build && \
cd ../gcc-build && \
../gcc-3.2/configure --prefix=/usr --enable-shared \
    --enable-languages=c,c++ --enable-threads=posix \
    --with-slibdir=/lib --enable-__cxa_atexit \
    --enable-clocale=gnu && \
make bootstrap && \
make install && \
ln -sf ../usr/bin/cpp /lib && \
ln -sf ../bin/cpp /usr/lib && \
ln -sf gcc /usr/bin/cc
[...skip 14800 lines of extracting gcc files...]
patching file gcc/calls.c
patching file gcc/calls.c
patching file gcc/config/i386/i386.h
patching file gcc/expr.c
Configuring for a i686-pc-linux-gnulibc1 host.
*** This configuration is not supported in the following subdirectories:
     target-libf2c target-libffi target-boehm-gc target-zlib target-libjava 
zlib fastjar target-libobjc
    (Any other directories should still work fine.)
Created "Makefile" in /static/src/gcc-build using "mh-frag" and "mt-frag"
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.
make[1]: *** [gcc] Error 1
make[1]: Leaving directory `/static/src'
make: *** [inside-chroot] Error 2
make: *** [all] Error 2

Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-chat' in the subject header of the message

More information about the lfs-chat mailing list