I try to build the toolchain, using a 2004.3 LiveCD, for the second time. The first time everything compiled just fine with gcc 3.3.4. When i try to rebuild everything with gcc-3.4.3-r1 I get an internal compiler error at almost the end of compilation of gcc-3.4.3-r1. Reproducible: Always Steps to Reproduce: 1. Emerge the first version of the toolchain; env-update && source /etc/profile && emerge -C linux-headers && emerge linux26-headers && emerge gcc-config glibc binutils gcc 2. Select the new version of gcc with gcc-config; gcc-config 2 3. Try compiling the toolchain with the new version of gcc; env-update && source /etc/profile && emerge glibc binutils gcc Actual Results: In file included from /var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/tsystem.h:44, from /var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/gcc/crtstuff.c:62: /var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/include/stddef.h:213: internal compiler error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/gcc-3.4.3-r1/temp/cc8TJOoS.out file, please attach this to your bugreport. make[1]: *** [crtbegin.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc' make: *** [all-gcc] Error 2 !!! ERROR: sys-devel/gcc-3.4.3-r1 failed. !!! Function gcc_do_make, Line 1047, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. livecd root # emerge info Portage 2.0.51-r2 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.8-nitro5-livecd i686) ================================================================= System uname: 2.6.8-nitro5-livecd i686 Mobile Pentium II Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r2 Headers: sys-kernel/linux26-headers-2.6.8.1-r2 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.pudas.net/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi apm arts avi berkdb bitmap-fonts cdr crypt cups encode f77 font-server foomaticdb fortran freetype gdbm gif gnome gpm gtk gtk2 hal ide imlib ipv6 ithreads jpeg kde ldap libg++ libwww mad mikmod mmx motif mpeg ncurses nls nptl nptlonly oggvorbis opengl oss pam pdflib perl png pthreads python qt quicktime readline samba screensaver sdl spell sse ssl svga tcpd truetype truetype-fonts type1-fonts userlocales x86 xml2 xmms xv zlib"
Created attachment 48624 [details] Preprocessed source
does it always fail on the exact same file? Are you sure your hardware isn't fubar? Can youu try gcc-3.4.3 and gcc-3.4.3.20050110?
Yes - it does always fail on the same file. It has failed 3-4 times now, with different settings (such as CFLAGS). I just tried to emerge it again, with a new version of portage (2.0.51-r2 -> 2.0.51-r12). I am pretty sure there is nothing wrong with my hardware. Everything else I have tried to emerge works. Before deciding to install Gentoo I had a RedHat 7.3 installation with ~200 days of uptime. I will try to emerge the other versions of gcc now, I will come back with the results.
gcc-3.4.3.20050110 failed to compile with the exact same error message: In file included from /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/tsystem.h:44, from /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/gcc/crtstuff.c:62: ./include/stddef.h:213: internal compiler error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/gcc-3.4.3.20050110/temp/cc7f8w6d.out file, please attach this to your bugreport. make[2]: *** [crtbegin.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make[1]: *** [stageprofile_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.3.20050110 failed. !!! Function gcc_do_make, Line 1035, Exitcode 2 !!! make failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message. I will try to emerge gcc-3.4.3 now.
Same thing with gcc-3.4.3: In file included from /var/tmp/portage/gcc-3.4.3/work/gcc-3.4.3/gcc/tsystem.h:44, from /var/tmp/portage/gcc-3.4.3/work/gcc-3.4.3/gcc/crtstuff.c:62: ./include/stddef.h:213: internal compiler error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/gcc-3.4.3/temp/ccx8w7ll.out file, please attach this to your bugreport. make[2]: *** [crtbegin.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3/work/build/gcc' make[1]: *** [stageprofile_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.3 failed. !!! Function gcc_do_make, Line 1035, Exitcode 2 !!! make failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message.
can you post more of the emerge tail? I need to see the command line that caused those error messages.
Created attachment 48669 [details] Portage complete log file.
That preprocessed source compiles fine for me... can you attatch the assebly it generates './xgcc -S file.c' and give file.s
Created attachment 50612 [details] profile 2005.0 used compilation of new gcc with gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) failed
Is this still an issue for anyone with the newest stable versions of GCC?
*** Bug 120445 has been marked as a duplicate of this bug. ***
*** Bug 120750 has been marked as a duplicate of this bug. ***
Reopen wrt Bug 120445 and Bug 120750...
No more complaints, so I'm assuming this is fixed. I can't reproduce it.
I have the same issue: ./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/var/tmp/portage/gcc-3.4.5/work/build/gcc/../ld -fno-stack-protector -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc -I/var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/. -I/var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \ -c /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o In file included from /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/tsystem.h:44, from /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/crtstuff.c:62: ./include/stddef.h:213: internal compiler error: Ung
I have the same issue: ./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/var/tmp/portage/gcc-3.4.5/work/build/gcc/../ld -fno-stack-protector -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc -I/var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/. -I/var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \ -c /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o In file included from /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/tsystem.h:44, from /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/gcc/crtstuff.c:62: ./include/stddef.h:213: internal compiler error: Ungültiger Maschinenbefehl Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/gcc-3.4.5/temp/ccbzYokH.out file, please attach this to your bugreport. Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo" LANG="de_DE@euro" LC_ALL="de_DE@euro" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/var/tmp/portage-pkg" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib acpi alsa apache2 arts audiofile avi bitmap-fonts bzip2 cdr cli crypt ctype cups curl dba dri dvd eds emboss encode ethereal exif expat faad fam fastbuild ffmpeg flac foomaticdb force-cgi-redirect ftp gd gdbm gif gimpprint glut gmp gstreamer gtk idn imagemagick imlib ipv6 java jpeg junit kde lcms libg++ libwww memlimit mhash mikmod mmx mng mp3 mpeg mysql ncurses nls nptl odbc ogg opengl pam pcre pdflib perl png posix python qt recode samba sdl session simplexml slang snmp soap sockets spell spl ssl tcpd threads tiff tokenizer truetype truetype-fonts type1-fonts udev vorbis xine xml xml2 xmms xsl xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY My profile is 2006.0, any suggestions?
i solved this problem with setting -march=i686 instead of -march=athlon-xp Seems to be a gcc bug, check this: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15780
same problem here with Pentium III: Portage 2.1_pre5-r2 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r2 i686) ================================================================= System uname: 2.6.14-gentoo-r2 i686 Pentium II (Deschutes) Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe -fno-ident -fomit-frame-pointer -momit-leaf-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/fax /usr/share/config /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fno-ident -fomit-frame-pointer -momit-leaf-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ngi.it http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.sdv.fr http://www.gigaload.org/gentoo.org/ http://gentoo.tiscali.nl/gentoo/ http://ftp.isu.edu.tw/pub/Linux/Gentoo http://www.zentek-international.com/mirrors/gentoo/ http://gentoo.binarycompass.org ftp://gentoo.csie.mcu.edu.tw/gentoo/ http://ftp.du.se/pub/os/gentoo http://mirror.uni-c.dk/gentoo/" MAKEOPTS="-j3 -s" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow acl apache2 apm arts authdaemon avi berkdb chroot clamav cli crypt ctype cups dba dri eds emboss encode esd expat fastbuild flash foomaticdb force-cgi-redirect fortran ftp gcj gd gif gpm gstreamer imap imlib isdnlog java jpeg kerberos ldap libg++ libwww mad memlimit mikmod mmx mp3 mpeg mysql ncurses nls nptl nptlonly oav objc odbc ogg oss pam pam_chroot pcre pdflib perl php png posix postgres ppds pppd pwdb python quicktime quotas readline samba sasl session sftplogging simplexml soap sockets spell spl sqlite ssl tokenizer truetype truetype-fonts udev unicode vhosts vorbis x86 xml xmms xsl zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY