Summary: | libperl-5.8.4 emerge failed with "internal compiler error" - gcc-3.4.1-r2 used | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vilis Sviklis <vilis.sviklis> |
Component: | [OLD] Core system | Assignee: | Please assign to toolchain <gcc-porting> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | CC: | askwar, magnade, marienz, perl |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Preprocessed source
Preprocessed source C source making my gcc ICE |
Description
Vilis Sviklis
2004-08-05 02:39:59 UTC
Created attachment 36804 [details]
Preprocessed source
Preprocessed source
emerge info output: Gentoo Base System version 1.4.16 Portage 2.0.50-r9 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 i686 Pentium III (Coppermine) Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://ftp.du.se/pub/os/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 acl acpi avi berkdb crypt cups doc encode foomaticdb gdbm gif gpm hardened imlib jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses nls nptl oggvorbis opengl pam pcre pdflib perl pic pie png python quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml2 xmms xv zlib" gcc -v output: Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/specs Configured with: /var/tmp/portage/gcc-3.4.1-r2/work/gcc-3.4.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3 --with-local-prefix=/usr/local --disable-werror --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.1 20040803 (Gentoo Hardened Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5) builds here fine vilis if you would please run it again you said you didnt try it again the error is looking like a hardware problem if it blows up in a different place it is [ebuild R ] sys-devel/libperl-5.8.4 +berkdb -debug +gdbm -threads 0 kB Portage 2.0.51_pre20 (gcc34-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040619-r1, 2.6.7-co-0.6.2 i686 Mobile AMD Athlon(tm) XP 2400+) ================================================================= System uname: 2.6.7-co-0.6.2 i686 Mobile AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.7-r4 Libtools: sys-devel/libtool-1.4.3-r4 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="http://gentoo.llarian.net/ http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo http://gentoo.eliteitminds.com" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://vox.net/gentoo-portage" USE="3dnow X acpi alsa avi berkdb cdr crypt cups dv dvb dvd dvdread encode esd fbcon foomaticdb gdbm gif gnome gtk gtk2 imlib input_devices_synaptics jpeg kde libg++ libwww mad matroska mikmod mmx motif mozilla mpeg ncurses network nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl tcpd theora tiff truetype x86 xml2 xmms xv zlib" I'm sure it's not hardware problem. I'm encountered this problem only when using "hardened pic pie" USE flags. If I remember correctly first emerge -ev world (or system) finished without errors, all next emerges with --emty-tree failed when reemerging libperl. At this time I can't try to repeat this bug again because it takes too long time on Pentium3. If no one encountered this bug maybe we can close it ( maybe I'm not good enough to build gentoo linux with hardened flag ;) ) this isnt a bug this a problem with use flags clashing nothing major. I have a hardened setup and all runs fine. i cant reproduce this with vanilla or hardened gcc on amd64 Created attachment 49915 [details] Preprocessed source Please reopen. I've got the same problem with perl-5.8.6-r2 [-----------------------------------------------------------------------------] `sh cflags "optimize='-march=pentium4 -O2 -pipe -fomit-frame-pointer'" numeric.o` -fPIC numeric.c CCCMD = gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -march=pentium4 -O2 -pipe -fomit-frame-pointer -Wall numeric.c: In function `S_mulexp10': numeric.c:815: internal compiler error: in try_split, at emit-rtl.c:3314 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/perl-5.8.6-r2/temp/ccyy4wVG.out file, please attach this to your bugreport. make: *** [numeric.o] Error 1 !!! ERROR: dev-lang/perl-5.8.6-r2 failed. [-----------------------------------------------------------------------------] Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1.PHP2.06 i686) ================================================================= System uname: 2.6.10-gentoo-r1.PHP2.06 i686 Intel(R) Celeron(R) CPU 2.00GHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 31 2004, 10:25:08)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r3 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" 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="-fomit-frame-pointer -pipe -O2 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sandbox sfperms" GENTOO_MIRRORS="http://php2.ath.cx/~askwar/gentoo-files/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo" LANG="de_DE.UTF-8" LDFLAGS="-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 acl apache2 apm arts async avi bzlib crypt cscope curl curlwrappers diet djbfft encode exif fam flash font-server foomaticdb ftp fwdzone gd gdbm gif hal hardened iconv imagemagick imap imlib immqt-bc ithreads javascript jpeg libedit libg++ libwww lzo lzw lzw-tiff mad maildir mailwrapper mbox mmap mmx mng mysql ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl offensive oggvorbis opengl oss pam parse-clocks pcntl pcre pdflib perl pic pie png posix postgres pwdb python qt quicktime readline recode sasl sdl shared slang sockets spell sse ssl sysvipc tcpd tiff truetype truetype-fonts type1-fonts unicode vhosts xfs xml2 xmms xv zlib linguas_de" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, PORTDIR_OVERLAY [-----------------------------------------------------------------------------] 13:05:53 askwar@alturo:~ $ gcc --version gcc (GCC) 3.4.3 20041125 (Gentoo Hardened Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7) Copyright (C) 2004 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht f Created attachment 49915 [details] Preprocessed source Please reopen. I've got the same problem with perl-5.8.6-r2 [-----------------------------------------------------------------------------] `sh cflags "optimize='-march=pentium4 -O2 -pipe -fomit-frame-pointer'" numeric.o` -fPIC numeric.c CCCMD = gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -march=pentium4 -O2 -pipe -fomit-frame-pointer -Wall numeric.c: In function `S_mulexp10': numeric.c:815: internal compiler error: in try_split, at emit-rtl.c:3314 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/perl-5.8.6-r2/temp/ccyy4wVG.out file, please attach this to your bugreport. make: *** [numeric.o] Error 1 !!! ERROR: dev-lang/perl-5.8.6-r2 failed. [-----------------------------------------------------------------------------] Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1.PHP2.06 i686) ================================================================= System uname: 2.6.10-gentoo-r1.PHP2.06 i686 Intel(R) Celeron(R) CPU 2.00GHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 31 2004, 10:25:08)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r3 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" 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="-fomit-frame-pointer -pipe -O2 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sandbox sfperms" GENTOO_MIRRORS="http://php2.ath.cx/~askwar/gentoo-files/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo" LANG="de_DE.UTF-8" LDFLAGS="-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 acl apache2 apm arts async avi bzlib crypt cscope curl curlwrappers diet djbfft encode exif fam flash font-server foomaticdb ftp fwdzone gd gdbm gif hal hardened iconv imagemagick imap imlib immqt-bc ithreads javascript jpeg libedit libg++ libwww lzo lzw lzw-tiff mad maildir mailwrapper mbox mmap mmx mng mysql ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl offensive oggvorbis opengl oss pam parse-clocks pcntl pcre pdflib perl pic pie png posix postgres pwdb python qt quicktime readline recode sasl sdl shared slang sockets spell sse ssl sysvipc tcpd tiff truetype truetype-fonts type1-fonts unicode vhosts xfs xml2 xmms xv zlib linguas_de" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, PORTDIR_OVERLAY [-----------------------------------------------------------------------------] 13:05:53 askwar@alturo:~ $ gcc --version gcc (GCC) 3.4.3 20041125 (Gentoo Hardened Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7) Copyright (C) 2004 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für VERKAUFBARKEIT oder FÜR SPEZIELLE ZWECKE. This bug also happens, when I unset LDFLAGS (normally, I have it set to -O1). And also, when I unset CFLAGS, so that the Gentoo default CFLAGS="-O2 -mcpu=i686 -pipe" are used. I'm trying to build perl with these flags: 13:13:36 askwar@alturo:~ $ time sudo emerge -vat =dev-lang/perl-5.8.6-r2 These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild U ] dev-lang/perl-5.8.6-r2 [5.8.6-r1] -berkdb -debug -doc +gdbm +ithreads -perlsuid (-uclibc) 0 kB Total size of downloads: 0 kB Created attachment 51387 [details]
C source making my gcc ICE
This is what I narrowed the libperl numeric.c down to. This ice's reproducably
if compiled with -O1. Yes, it's really that simple :(
I ran into this too, and it scares me. I am upgrading the gcc and glibc on this ~x86 install and converting it to hardened. When doing an emerge -e system everything except for perl and libperl seemed to compile successfully. So the toolchain doesn't seem to be completely broken. However the snippet in the previous attachment makes my gcc ICE if compiled with -O1. Everything is fine with -O0. Everything is also fine if I change the source. Strangely enough it does still ICE if I change both "0"'s in it to the same new value, but not if I make the two different. What scares me is that this bit of code is really very simple, way too simple to cause ICE's imo. I'd like to hear if the other people that encountered this bug also get the same ICE with this tiny C file. I'm going to rebuild glibc, binutils and gcc again, then emerge -e system again, and see if everything except for perl and libperl still works. Then I'm going to drop my CFLAGS to -march=athlon-xp -O2 -fomit-frame-pointer -pipe, because I'm not sure if hardened and my CFLAGS are getting along. I will comment if I get any results. Meh, forgot emerge info. Apologies, it's late... Note: the entire base system was merged with this, except for the FEATURES=test. I turned that on and off a couple of times. Portage 2.0.51-r15 (hardened/x86/2.6, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7-m2 i686) ================================================================= System uname: 2.6.10-gentoo-r7-m2 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.6.9 Python: dev-lang/python-2.4-r2 [2.4 (#2, Feb 16 2005, 22:12:54)] ccache version 2.3 [enabled] dev-lang/python: 2.4-r2 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fweb -frename-registers" CHOST="i686-pc-linux-gnu" 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/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fweb -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache confcache distlocks noauto prelink sandbox test userpriv usersandbox verify-rdepend" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://www.gigaload.org/gentoo.org/" LANG="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X alsa ansi bzip2 ccache cdr crypt dlloader emacs faad fbcon flac gnome gtk2 hardened javascript jit jpeg libcaca maildir md5sum mmx mmx2 mng mozdevelop mozsvg mpeg ncurses nethack network nls no-old-linux nptl nptlonly oggvorbis opengl pam png python qemu-fast quicktime readline rtc sdl softmmu spell sse ssl svg symlink tetex truetype truetype-fonts unicode userlocales xml2 xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS |