Summary: | [4.4/ICE/hppa] >sys-devel/gcc-4.4.0 ICEs in check_dep, at sched-deps.c:3447 on hppa when building libgcc | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeroen Roovers (RETIRED) <jer> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hppa, luckyluke |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | HPPA | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
config.log
sys-devel:gcc-4.4.0:20090604-122540.log.gz conftest.s Same problem in 4.4.3 |
Description
Jeroen Roovers (RETIRED)
2009-06-04 16:28:26 UTC
Created attachment 193547 [details]
config.log
Created attachment 193549 [details]
sys-devel:gcc-4.4.0:20090604-122540.log.gz
Created attachment 193554 [details] conftest.s elmer ~/ice-272645 # /mnt/alt/portage-tmp/portage/sys-devel/gcc-4.4.0/work/build/./gcc/xgcc -B/mnt/alt/portage-tmp/portage/sys-devel/gcc-4.4.0/work/build/./gcc/ -B/usr/hppa2.0-unknown-linux-gnu/bin/ -B/usr/hppa2.0-unknown-linux-gnu/lib/ -isystem /usr/hppa2.0-unknown-linux-gnu/include -isystem /usr/hppa2.0-unknown-linux-gnu/sys-include -E -O2 -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall conftest.c # 1 "conftest.c" # 1 "/root/ice-272645//" # 1 "<built-in>" # 1 "<command-line>" # 1 "conftest.c" # 10 "conftest.c" int main () { ; return 0; } elmer ~/ice-272645 # /mnt/alt/portage-tmp/portage/sys-devel/gcc-4.4.0/work/build/./gcc/xgcc -B/mnt/alt/portage-tmp/portage/sys-devel/gcc-4.4.0/work/build/./gcc/ -B/usr/hppa2.0-unknown-linux-gnu/bin/ -B/usr/hppa2.0-unknown-linux-gnu/lib/ -isystem /usr/hppa2.0-unknown-linux-gnu/include -isystem /usr/hppa2.0-unknown-linux-gnu/sys-include -S -O2 -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall conftest.c conftest.c: In function ‘main’: conftest.c:16: internal compiler error: in check_dep, at sched-deps.c:3447 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. elmer ~/ice-272645 # /mnt/alt/portage-tmp/portage/sys-devel/gcc-4.4.0/work/build/./gcc/xgcc -B/mnt/alt/portage-tmp/portage/sys-devel/gcc-4.4.0/work/build/./gcc/ -B/usr/hppa2.0-unknown-linux-gnu/bin/ -B/usr/hppa2.0-unknown-linux-gnu/lib/ -isystem /usr/hppa2.0-unknown-linux-gnu/include -isystem /usr/hppa2.0-unknown-linux-gnu/sys-include -c -O2 -pipe -mschedule=8000 -march=2.0 -g -ggdb -Wall conftest.c conftest.c: In function ‘main’: conftest.c:16: internal compiler error: in check_dep, at sched-deps.c:3447 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. GCC rebuilds fine for me: hake / # emerge --info Portage 2.1.6.13 (default/linux/hppa/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.23-gentoo-r8 parisc) ================================================================= System uname: Linux-2.6.23-gentoo-r8-parisc-PA8600_-PCX-W+-with-gentoo-2.0.1 Timestamp of tree: Mon, 08 Jun 2009 06:30:01 +0000 app-shells/bash: 4.0_p24 dev-lang/python: 2.4.4-r13, 2.5.2-r8, 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r2 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="hppa ~hppa" CBUILD="hppa2.0-unknown-linux-gnu" CFLAGS="-O2 -pipe -march=2.0" CHOST="hppa2.0-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb bzip2 cli cracklib crypt cups firefox foomaticdb fortran gdbm gpm hppa iconv imlib ipv6 isdnlog libwww midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spell spl ssl sysfs tcpd unicode xml2 xorg xulrunner zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY I screwed up and as you can see compiled gcc-4.4 with gcc-4.3. Rebuilding 4.4 with 4.4 results in the same exact failure as Jer ran into. It looks like gcc is miscompiling itself. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39355 seems related. Hmmm, I have just successfully rebuilt sys-devel/gcc-4.2.4-r1 using sys-devel/gcc-4.4.0 (following the IUSE=nptl changes). (In reply to comment #7) > Hmmm, I have just successfully rebuilt sys-devel/gcc-4.2.4-r1 using > sys-devel/gcc-4.4.0 (following the IUSE=nptl changes). Hmm, sys-devel/gcc-4.4.0 miscompiles all older kernels as well as itself, it seems. No build failure, just creates an unusable libgcc_s. (In reply to comment #8) Er, I intended to say sys-devel/gcc-4.4.0 miscompiles all older *compilers* [...] 8-) gcc-4.4 is marked -hppa now. Appears to have been fixed elsewhere[1]. Now how do I go about finding in which release this revision[1] will be? The bug says 4.5.0, so a backport to 4.4.1 would be nice. [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40908 [2] http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150228 gcc 4.4.1 exhibits the same problem. Created attachment 221803 [details]
Same problem in 4.4.3
I tried the patch mentioned in comment #11 but it doesn't solve the issue. Fixed by setting STAGE1_CFLAGS=-O0, gcc-4.4.4-r1 is now marked ~hppa, after testing and after news that some distros always set STAGE1_CFLAGS=-O0. |