GCC-3.4.1 - Pass 2

Indrek Tuula indrek.tuula at gmail.com
Sat Jun 4 15:10:31 PDT 2005


My host system is Suse 9.2 and i try to build LFS 6.0  but i have the
problems with GCC-3.4.1 - Pass 2 which is described in the chapter 5
on the lfs book and My LFS partition running under the ReiserFS.

1. I unpack the gcc-core-3.4.1.tar.gz

2. Into the gcc-3.4.1 directory i give that command: expect -c "spawn
ls" and result is: spawn ls

3. I patching the gcc:

lfs at 192:/mnt/lfs/sources/gcc-3.4.1> patch -Np1 -i
patching file gcc/Makefile.in
Hunk #1 succeeded at 2478 (offset 1 line).
Hunk #2 succeeded at 2523 (offset 1 line).

lfs at 192:/mnt/lfs/sources/gcc-3.4.1> patch -Np1 -i ../gcc-3.4.1-specs-1.patch
patching file gcc/config/alpha/linux-elf.h
patching file gcc/config/arm/linux-elf.h
patching file gcc/config/i386/kfreebsdgnu.h
patching file gcc/config/i386/linux.h
patching file gcc/config/i386/linux64.h
patching file gcc/config/ia64/linux.h
patching file gcc/config/linux.h
patching file gcc/config/m32r/linux.h
patching file gcc/config/m68k/linux.h
patching file gcc/config/mips/linux.h
patching file gcc/config/mips/linux64.h
patching file gcc/config/mn10300/linux.h
patching file gcc/config/pa/pa-linux.h
patching file gcc/config/rs6000/linux64.h
Hunk #1 succeeded at 341 (offset 1 line).
patching file gcc/config/rs6000/sysv4.h
Hunk #1 succeeded at 1122 (offset -5 lines).
Hunk #2 succeeded at 1153 (offset -5 lines).
patching file gcc/config/s390/linux.h
patching file gcc/config/sh/linux.h
patching file gcc/config/sparc/linux.h
patching file gcc/config/sparc/linux64.h
Hunk #1 succeeded at 167 (offset 3 lines).
Hunk #2 succeeded at 257 (offset 24 lines).
patching file gcc/config/xtensa/linux.h
lfs at 192:/mnt/lfs/sources/gcc-3.4.1> 

4. I make gcc-build directory and entering it in
mkdir ../gcc-build
cd ../gcc-buil
  5. I start gcc compilation

../gcc-3.4.1/configure --prefix=/tools \
--libexecdir=/tools/lib --with-local-prefix=/tools \
--enable-clocale=gnu --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-languages=c,c++ --disable-libstdcxx-pch 

6.I give the make command but that failed because

checking assembler for --gstabs option... yes
checking linker read-only and read-write section mixing... read-write
checking linker PT_GNU_EH_FRAME support... yes
checking linker position independent executable support... yes
checking linker --as-needed support... yes
configure: error:
The following requested languages were not found: c++
The following languages were available: c treelang
make: *** [configure-gcc] Error 1
lfs at 192:/mnt/lfs/sources/gcc-build>               

Can anyone help me?


More information about the lfs-support mailing list