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
gcc-3.2/
gcc-3.2/INSTALL/
[...skip 14800 lines of extracting gcc files...]
gcc-3.2/.brik
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"
/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.
make[1]: *** [gcc] Error 1
make[1]: Leaving directory `/static/src'
make: *** [inside-chroot] Error 2
make: *** [all] Error 2


Thanks,
-Eric
-- 
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