LFS5.0 Chapter 6 GCC pg 123/289 -- LONG

Mark Carey markcare at paradise.net.nz
Thu May 6 03:35:33 PDT 2004


Hi, 
 
I am now stuck trying to build GCC in Chapter 6.  I apply the two patches 
specified and building gcc after issuing the ``make'' command causes variable 
behaviour.   
 
Build Host: 
Knoppix V3.2 
AMD Athlon XP 2000+ 
256MB RAM 
512MB swap partition 
 
As the build host is Knoppix I have had to chmod 666 /dev/ptmx inorder to get 
pty support working.  I have tried building from runlevels 1, 3, fluxbox and 
kde with varying levels of completion 
 
Here are 4 snippets of failures from different runlevels.  Messages captured 
using make > ../gcc-build-errors-1 so the error causing failure is not 
captured.  Error can be a seg fault in cc1plus sometimes no direct failure 
results and make reports error and exits. 
 
1. 
----- 
/sources/gcc-build/gcc/xgcc -shared-libgcc -B/sources/gcc-build/gcc/ 
-nostdinc++ -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++ 
-I../../../../gcc-3.3.1/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c 
../../../../gcc-3.3.1/libstdc++-v3/src/bitset.cc  -fPIC -DPIC -o 
.libs/bitset.o 
/sources/gcc-build/gcc/xgcc -shared-libgcc -B/sources/gcc-build/gcc/ 
-nostdinc++ -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++ 
-I../../../../gcc-3.3.1/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c 
../../../../gcc-3.3.1/libstdc++-v3/src/bitset.cc -o bitset.o >/dev/null 2>&1 
/bin/sh ../libtool --tag CXX --mode=compile /sources/gcc-build/gcc/xgcc 
-shared-libgcc -B/sources/gcc-build/gcc/ -nostdinc++  
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++  
-I../../../../gcc-3.3.1/libstdc++-v3/libmath    -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings  
-fdiagnostics-show-location=once  -ffunction-sections -fdata-sections      -c 
../../../../gcc-3.3.1/libstdc++-v3/src/codecvt.cc 
/sources/gcc-build/gcc/xgcc -shared-libgcc -B/sources/gcc-build/gcc/ 
-nostdinc++ -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++ 
-I../../../../gcc-3.3.1/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c 
../../../../gcc-3.3.1/libstdc++-v3/src/codecvt.cc  -fPIC -DPIC -o 
.libs/codecvt.o 
/sources/gcc-build/gcc/xgcc -shared-libgcc -B/sources/gcc-build/gcc/ 
-nostdinc++ -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++ 
-I../../../../gcc-3.3.1/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c 
../../../../gcc-3.3.1/libstdc++-v3/src/codecvt.cc -o codecvt.o >/dev/null 2>&1 
/bin/sh ../libtool --tag CXX --mode=compile /sources/gcc-build/gcc/xgcc 
-shared-libgcc -B/sources/gcc-build/gcc/ -nostdinc++  
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++  
-I../../../../gcc-3.3.1/libstdc++-v3/libmath    -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings  
-fdiagnostics-show-location=once  -ffunction-sections -fdata-sections      -c 
../../../../gcc-3.3.1/libstdc++-v3/src/complex_io.cc 
/sources/gcc-build/gcc/xgcc -shared-libgcc -B/sources/gcc-build/gcc/ 
-nostdinc++ -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++ 
-I../../../../gcc-3.3.1/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c 
../../../../gcc-3.3.1/libstdc++-v3/src/complex_io.cc  -fPIC -DPIC -o 
.libs/complex_io.o 
make[3]: Leaving directory 
`/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src' 
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
 
2. 
----- 
/bin/sh ../libtool --tag CXX --mode=compile /sources/gcc-build/gcc/xgcc 
-shared-libgcc -B/sources/gcc-build/gcc/ -nostdinc++  
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++  
-I../../../../gcc-3.3.1/libstdc++-v3/libmath    -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings  
-fdiagnostics-show-location=once  -ffunction-sections -fdata-sections      
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/backward 
-Wno-deprecated -c ../../../../gcc-3.3.1/libstdc++-v3/src/strstream.cc 
/sources/gcc-build/gcc/xgcc -shared-libgcc -B/sources/gcc-build/gcc/ 
-nostdinc++ -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++ 
-I../../../../gcc-3.3.1/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/backward 
-Wno-deprecated -c ../../../../gcc-3.3.1/libstdc++-v3/src/strstream.cc  -fPIC 
-DPIC -o .libs/strstream.o 
make[3]: Leaving directory 
`/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src' 
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
 
3. 
----- 
/bin/sh ../libtool --tag CXX --mode=compile /sources/gcc-build/gcc/xgcc 
-shared-libgcc -B/sources/gcc-build/gcc/ -nostdinc++  
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++  
-I../../../../gcc-3.3.1/libstdc++-v3/libmath    -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings  
-fdiagnostics-show-location=once  -ffunction-sections -fdata-sections      
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/backward 
-Wno-deprecated -c ../../../../gcc-3.3.1/libstdc++-v3/src/strstream.cc 
/sources/gcc-build/gcc/xgcc -shared-libgcc -B/sources/gcc-build/gcc/ 
-nostdinc++ -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -nostdinc++ 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++ 
-I../../../../gcc-3.3.1/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/backward 
-Wno-deprecated -c ../../../../gcc-3.3.1/libstdc++-v3/src/strstream.cc  -fPIC 
-DPIC -o .libs/strstream.o 
make[3]: Leaving directory 
`/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src' 
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
 
4. 
----- 
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile 
/sources/gcc-build/gcc/xgcc -shared-libgcc -B/sources/gcc-build/gcc/ 
-nostdinc++  -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -I../../../../gcc-3.3.1/libstdc++-v3/../gcc 
-I../../../../gcc-3.3.1/libstdc++-v3/../include 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++   -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates -prefer-pic -Wall -Wno-format -W -Wwrite-strings  
-fdiagnostics-show-location=once  -ffunction-sections -fdata-sections     -c 
../../../../gcc-3.3.1/libstdc++-v3/libsupc++/vec.cc 
/sources/gcc-build/gcc/xgcc -shared-libgcc -B/sources/gcc-build/gcc/ 
-nostdinc++ -L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src 
-L/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -I../../../../gcc-3.3.1/libstdc++-v3/../gcc 
-I../../../../gcc-3.3.1/libstdc++-v3/../include 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu 
-I/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include 
-I../../../../gcc-3.3.1/libstdc++-v3/libsupc++ -g -O2 -D_GNU_SOURCE 
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings 
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c 
../../../../gcc-3.3.1/libstdc++-v3/libsupc++/vec.cc  -fPIC -DPIC -o vec.o 
make[3]: Leaving directory 
`/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/libsupc++' 
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
 
Any suggestions as to hos I localise the bug and make it reproducable?  It 
doesnt seem to be lack of memory. 
 
Regards, 
 
Mark Carey 
 



More information about the lfs-support mailing list