Jason Vance
2007-Apr-08 06:06 UTC
FreeBSD 6.1-RELEASE source update fails during compilation
I'm unable to buildworld on a brand new installation of freebsd 6.1. Almost everytime my build fails on the genattrtab.c section of cc_tools. I've tried multiple harddrives, and downloaded the source code many times. A couple of times the system has rebooted itself, once during cvsup of the source code, and again during a build. What else should I be looking for to diagnose this problem? My System: FreeBSD 6.1-RELEASE 733MHZ Intel P3 Asus pv3-4x latest bios 1006.004 Sound Blaster Live Voodoo 3 16mb GFX Card HDDs: I've tried 3 different drives, the first few tries were with 2 drives gmirror'd and then without the gmirror ( RAID 1 ) Memtest checks out ok ( Ran 5 hours 150 loops ) Here is the last few lines of everytime I've tried to compile the source. ======================================================== ./gencodes /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-codes.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genconfig.c cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -L/usr/obj/usr/src/tmp/legacy/usr/lib -o genconfig genconfig.o rtl.o print-rtl.o bitmap.o gensupport.o ggc-none.o read-rtl.o insn-conditions.o min-insn-modes.o errors.o libiberty.a ./genconfig /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-config.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genflags.c cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -L/usr/obj/usr/src/tmp/legacy/usr/lib -o genflags genflags.o rtl.o print-rtl.o bitmap.o gensupport.o ggc-none.o read-rtl.o insn-conditions.o min-insn-modes.o errors.o libiberty.a ./genflags /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-flags.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c:6240: internal compiler error: Segmentation fault: 11 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. {standard input}: Assembler messages: {standard input}:14060: Warning: partial line at end of file ignored *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc/cc_tools. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. =================================================== ./genflags /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-flags.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c:6240: internal compiler error: Segmentation fault: 11 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. {standard input}: Assembler messages: {standard input}:14060: Warning: partial line at end of file ignored *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc/cc_tools. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ==================================================== make buildworld ===> gnu/usr.bin/binutils/ranlib (cleandir) ===> gnu/usr.bin/binutils/readelf (cleandir) ===> gnu/usr.bin/binutils/size (cleandir) ===> gnu/usr.bin/binutils/strings (cleandir) ===> gnu/usr.bin/binutils/strip (cleandir) ===> gnu/usr.bin/binutils/doc (cleandir) ===> gnu/usr.bin/cc (cleandir) ===> gnu/usr.bin/cc/cc_tools (cleandir) REBOOT! ===================================================== cvsup stable-cvsup ./genconfig /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-config.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genflags.c cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -L/usr/obj/usr/src/tmp/legacy/usr/lib -o genflags genflags.o rtl.o print-rtl.o bitmap.o gensupport.o ggc-none.o read-rtl.o insn-conditions.o min-insn-modes.o errors.o libiberty.a ./genflags /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-flags.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c {standard input}: Assembler messages: {standard input}:14061: Error: expected symbol name *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc/cc_tools. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ==================================================== cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/xmemdup.c cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/xstrdup.c cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/xstrerror.c ranlib libiberty.a Segmentation fault (core dumped) *** Error code 139 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ==================================================== ./genconfig /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-config.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genflags.c cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -L/usr/obj/usr/src/tmp/legacy/usr/lib -o genflags genflags.o rtl.o print-rtl.o bitmap.o gensupport.o ggc-none.o read-rtl.o insn-conditions.o min-insn-modes.o errors.o libiberty.a ./genflags /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-flags.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c:6240: internal compiler error: Segmentation fault: 11 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. {standard input}: Assembler messages: {standard input}:14060: Warning: partial line at end of file ignored *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc/cc_tools. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ======================================================== reinstalled - no gmirror cvsup'd 6_1-release source make buildworld /usr/obj/usr/src/usr.bin/split created for /usr/src/usr.bin/split ===> usr.bin/stat (obj) /usr/obj/usr/src/usr.bin/stat created for /usr/src/usr.bin/stat ===> usr.bin/su (obj) /usr/obj/usr/src/usr.bin/su created for /usr/src/usr.bin/su ===> usr.bin/systat (obj) /usr/obj/usr/src/usr.bin/systat created for /usr/src/usr.bin/systat ===> usr.bin/tabs (obj) /usr/obj/usr/src/usr.bin/tabs created for /usr/src/usr.bin/tabs ===> usr.bin/tail (obj) /usr/obj/usr/src/usr.bin/tail created for /usr/src/usr.bin/tail ===> usr.bin/talk (obj) /usr/obj/usr/src/usr.bin/talk created for /usr/src/usr.bin/talk ===> usr.bin/tar (obj) /usr/obj/usr/src/usr.bin/tar created for /usr/src/usr.bin/tar ===> usr.bin/tcopy (obj) /usr/obj/usr/src/usr.bin/tcopy created for /usr/src/usr.bin/tcopy ===> usr.bin/tee (obj) /usr/obj/usr/src/usr.bin/tee created for /usr/src/usr.bin/tee ===> usr.bin/telnet (obj) /usr/obj/usr/src/usr.bin/telnet created for /usr/src/usr.bin/telnet ===> usr.bin/tftp (obj) /usr/obj/usr/src/usr.bin/tftp created for /usr/src/usr.bin/tftp ===> usr.bin/time (obj) /usr/obj/usr/src/usr.bin/time created for /usr/src/usr.bin/time ===> usr.bin/tip (obj) ===> usr.bin/tip/tip (obj) /usr/obj/usr/src/usr.bin/tip/tip created for /usr/src/usr.bin/tip/tip ===> usr.bin/top (obj) /usr/obj/usr/src/usr.bin/top created for /usr/src/usr.bin/top ===> usr.bin/touch (obj) Unable to create /usr/obj/usr/src/usr.bin/touch. *** Error code 1 Stop in /usr/src/usr.bin/touch. *** Error code 1 Stop in /usr/src/usr.bin. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ========================================================== 2nd try ./genconfig /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-config.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genflags.c cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -L/usr/obj/usr/src/tmp/legacy/usr/lib -o genflags genflags.o rtl.o print-rtl.o bitmap.o gensupport.o ggc-none.o read-rtl.o insn-conditions.o min-insn-modes.o errors.o libiberty.a ./genflags /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config/i386/i386.md > insn-flags.h cc -O2 -fno-strict-aliasing -pipe -I. -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c:6240: internal compiler error: Segmentation fault: 11 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. {standard input}: Assembler messages: {standard input}:14060: Warning: partial line at end of file ignored *** Error code 1 Stop in /usr/src/gnu/usr.bin/cc/cc_tools. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src.
Josh Paetzel
2007-Apr-08 22:32 UTC
FreeBSD 6.1-RELEASE source update fails during compilation
Jason Vance wrote:> I'm unable to buildworld on a brand new installation of freebsd 6.1. Almost > everytime my build fails on the genattrtab.c section of cc_tools. I've tried > multiple harddrives, and downloaded the source code many times. A couple of > times the system has rebooted itself, once during cvsup of the source code, and > again during a build. > > What else should I be looking for to diagnose this problem? > > My System: > > FreeBSD 6.1-RELEASE > 733MHZ Intel P3 > Asus pv3-4x latest bios 1006.004 > Sound Blaster Live > Voodoo 3 16mb GFX Card > HDDs: I've tried 3 different drives, the first few tries were with 2 drives > gmirror'd and then without the gmirror ( RAID 1 ) > > Memtest checks out ok ( Ran 5 hours 150 loops ) > > Here is the last few lines of everytime I've tried to compile the source. >Failures likes these are almost always hardware related. If it was a software problem it would die at the same place every time. You could be suffering from overheating, bad ram (regardless of what memtest tells you) power fluctuations due to a faulty PSU, or any other number of esoteric problems. FreeBSD has this knack of not playing nicely with partially broken hardware. :) Thanks, Josh Paetzel
Robert Joosten
2007-Apr-09 08:00 UTC
FreeBSD 6.1-RELEASE source update fails during compilation
Hi, ---cut!------> /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genattrtab.c:6240: > internal compiler error: Segmentation fault: 11 > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://gcc.gnu.org/bugs.html> for instructions. > {standard input}: Assembler messages: > {standard input}:14060: Warning: partial line at end of file ignored > *** Error code 1 > Stop in /usr/src/gnu/usr.bin/cc/cc_tools. > *** Error code 1 > Stop in /usr/src. > *** Error code 1 > Stop in /usr/src. > *** Error code 1 > Stop in /usr/src.Yeah, I observed this too a few times. All the times on a poor little pentium 1/150 with 48meg ram (according dmesg). It's somewhat difficult too check but I suspect I run out of memory every time. I happened to run make installworld with a DESTDIR pointing to this box using nfs using a more recent athlon 3000 :-) That slow box runs postfix and procmail to a nfs-mounted spool. It runs great without any sign indicating bad memory; did not run a memcheck though. Increasing swap didn't solve this matter. Hth. Cheers, Robert PS: recommend to check out releng_6_2 if able; just to be sure.