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

Mark Carey markcare at paradise.net.nz
Fri May 7 04:57:56 PDT 2004


Hi all, 
 
Thanks for the replies. 
 
Following my initial post last night, sorry I cant get followups working as I 
am posting from konqueror. 
 
I have tried to build gcc redirecting std-error as well as std-out here are 
the results. 
 
All of these are using knoppix 3.2 as build host with the boot command, 
``knoppix 1 lang=us' 
 
I stop any unnecessary processes, automount, pump, ethx. 
 
I unload any unnecessary kernel modules, lsmod reports 
----- 
Module                  Size  Used by    Not tainted 
ext3                   62912   1  (autoclean) 
jbd                    45492   1  (autoclean) [ext3] 
autofs4                 8724   0  (autoclean) 
af_packet              13448   0  (autoclean) 
nls_cp437               4380   0  (autoclean) 
nls_iso8859-1           2876   0  (autoclean) 
input                   3168   0 
usbcore                57088   1 
rtc                     6908   0  (autoclean) 
cloop                   5232   1 
----- 
 
When in the chroot environment export returns 
----- 
declare -x HOME="/root" 
declare -x OLDPWD="/sources" 
declare -x PATH="/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin" 
declare -x PS1="\\u:\\w\$ " 
declare -x PWD="/sources/gcc-build" 
declare -x SHLVL="1" 
declare -x TERM="linux" 
----- 
 
The following are four attempts at making gcc from runlevel 1 
 
1. 
------ 
-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++/eh_throw.cc  -fPIC -DPIC -o 
eh_throw.o 
xgcc: Internal error: Segmentation fault (program cc1plus) 
Please submit a full bug report. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
make[3]: *** [eh_throw.lo] Error 1 
make[3]: Leaving directory 
`/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/libsupc++' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make[1]: *** [all-recursive-am] Error 2 
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make: *** [all-target-libstdc++-v3] Error 2 
 
2. 
----- 
gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    
-I. -I. -I../../gcc-3.3.1/gcc -I../../gcc-3.3.1/gcc/. 
-I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include 
../../gcc-3.3.1/gcc/cfglayout.c -o cfglayout.o 
gcc: Internal error: Segmentation fault (program cc1) 
Please submit a full bug report. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
make[1]: *** [cfglayout.o] Error 1 
make[1]: Leaving directory `/sources/gcc-build/gcc' 
make: *** [all-gcc] Error 2 
 
3. 
----- 
/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++/eh_catch.cc  -fPIC -DPIC -o 
eh_catch.o 
xgcc: Internal error: Segmentation fault (program cc1plus) 
Please submit a full bug report. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
make[3]: *** [eh_catch.lo] Error 1 
make[3]: Leaving directory 
`/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/libsupc++' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make[1]: *** [all-recursive-am] Error 2 
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make: *** [all-target-libstdc++-v3] Error 2 
 
4. 
----- 
/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++/eh_throw.cc  -fPIC -DPIC -o 
eh_throw.o 
xgcc: Internal error: Segmentation fault (program cc1plus) 
Please submit a full bug report. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
make[3]: *** [eh_throw.lo] Error 1 
make[3]: Leaving directory 
`/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/libsupc++' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make[1]: *** [all-recursive-am] Error 2 
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3' 
make: *** [all-target-libstdc++-v3] Error 2 
 
The remaining three errors are from runlevel 3 
 
5. 
----- 
gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H 
-DGENERATOR_FILE    -I. -I. -I../../gcc-3.3.1/gcc -I../../gcc-3.3.1/gcc/. 
-I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include 
../../gcc-3.3.1/gcc/genautomata.c -o genautomata.o 
../../gcc-3.3.1/gcc/genautomata.c: In function 
`output_cpu_unit_reservation_p': 
../../gcc-3.3.1/gcc/genautomata.c:8745: internal compiler error: Segmentation 
fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
make[1]: *** [genautomata.o] Error 1 
make[1]: Leaving directory `/sources/gcc-build/gcc' 
make: *** [all-gcc] Error 2 
 
6. 
----- 
gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    
-I. -I. -I../../gcc-3.3.1/gcc -I../../gcc-3.3.1/gcc/. 
-I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include 
../../gcc-3.3.1/gcc/main.c -o main.o 
gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    
-I. -I. -I../../gcc-3.3.1/gcc -I../../gcc-3.3.1/gcc/. 
-I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include 
../../gcc-3.3.1/gcc/alias.c -o alias.o 
../../gcc-3.3.1/gcc/alias.c:2926: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
make[1]: *** [alias.o] Error 1 
make[1]: Leaving directory `/sources/gcc-build/gcc' 
make: *** [all-gcc] Error 2 
 
7. 
----- 
gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H    
-I. -I. -I../../gcc-3.3.1/gcc -I../../gcc-3.3.1/gcc/. 
-I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include 
../../gcc-3.3.1/gcc/ra-build.c -o ra-build.o 
../../gcc-3.3.1/gcc/ra-build.c: In function `handle_asm_insn': 
../../gcc-3.3.1/gcc/ra-build.c:3021: internal compiler error: Segmentation 
fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
make[1]: *** [ra-build.o] Error 1 
make[1]: Leaving directory `/sources/gcc-build/gcc' 
make: *** [all-gcc] Error 2 
 
Anecdotal evidence suggest knoppix isnt handling memory very well as when in 
runlevel 5, under any window manager mozilla seg faults on load or just 
shortly after. 
 
I am about to check the md5sums of my gcc and glibc tar balls and then I will 
be looking into memtest86 (v3.2 of knoppix doesnt come with it, v3.4 does) 
 
Any other suggestions? 
 
THanks  
 
Mark Carey 



More information about the lfs-support mailing list