I am trying to install LFS, edition 6.4 on an Apple PowerPC 7200 (indeed, an "old-world" Mac). I installed linux from the MkLinux distribution R1 (yes, a very old distribution) and then upgraded the system to Linux 2.6 from sources. I could not upgrade glibc without breaking the system, so it is still running glibc-2.1.3. This is the only requirement for the host system I could not fulfill.

lfs:/lfs/sources/gcc-build$ cat /etc/issue

Linux for PowerPC. Brought to you by The MkLinux Project.
Based on Red Hat Linux Red Hat Linux release 6.0 (Hedwig)
Kernel 2.6.26BuiltbySoftPol on a PowerPC 601

I have a problem, building gcc-4.3.2 in pass 2:

lfs:/lfs/sources/gcc-build$ ../gcc-4.3.2/configure --prefix=/tools -- with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable- threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable- libstdcxx-pch --disable-bootstrap
(…)
lfs:/lfs/sources/gcc-build$ make
(…)
# Now that we have built all the objects, we need to copy
# them back to the GCC directory.  Too many things (other
# in-tree libraries, and DejaGNU) know about the layout
# of the build tree, for now.
make install-leaf DESTDIR=../.././gcc \
             slibdir= libsubdir= MULTIOSDIR=.
make[3]: Entering directory `/lfs/sources/gcc-build/powerpc-unknown- linux-gnu/libgcc'
/bin/sh ../../../gcc-4.3.2/libgcc/../mkinstalldirs ../.././gcc
/usr/local/bin/install -c -m 644 libgcc_eh.a ../.././gcc/
chmod 644 ../.././gcc/libgcc_eh.a
/tools/powerpc-unknown-linux-gnu/bin/ranlib ../.././gcc/libgcc_eh.a
/bin/sh ../../../gcc-4.3.2/libgcc/../mkinstalldirs ../.././gcc; /usr/ local/bin/install -c -m 644 ./libgcc_s.so.1 ../.././gcc/libgcc_s.so.1; rm -f ../.././gcc/libgcc_s.so; ln -s libgcc_s.so.1 ../.././gcc/ libgcc_s.so rm: /lib/libc.so.6: version `GLIBC_2.2.4' not found (required by /lfs/ sources/gcc-build/./gcc/libgcc_s.so.1) ln: /lib/libc.so.6: version `GLIBC_2.2.4' not found (required by /lfs/ sources/gcc-build/./gcc/libgcc_s.so.1)
make[3]: *** [install-shared] Error 1
make[3]: Leaving directory `/lfs/sources/gcc-build/powerpc-unknown- linux-gnu/libgcc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/lfs/sources/gcc-build/powerpc-unknown- linux-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/lfs/sources/gcc-build'
make: *** [all] Error 2

I am surprised to see that there are still dependencies in this phase of the project on the host system...

lfs:/lfs/sources/gcc-build$ locate libc.so.6
/home/ftp/lib/libc.so.6
/lfs/tools/lib/libc.so.6
/lib/libc.so.6

lfs:/lfs/sources/gcc-build$ env
TERM=xterm-color
OLDPWD=/home/lfs
LC_ALL=POSIX
LFS=/mnt/lfs
PATH=/tools/bin:/usr/local/bin:/bin:/usr/bin
PWD=/lfs/sources/gcc-build
PS1=\u:\w\$
SHLVL=1
HOME=/home/lfs
_=/usr/local/bin/env

lfs:/lfs/sources/gcc-build$ locate bin/rm
/bin/rm
(…)
/usr/local/bin/rm
(…)
lfs:/lfs/sources/gcc-build$ locate bin/ln
/bin/ln
/usr/local/bin/ln
(…)


pvg

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to