Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378375 (PR45941) - [4.5/ICE] sys-devel/gcc-4.5.3 fails to compile itself on mips n64 no-multilib at lto-streamer-in.o
Summary: [4.5/ICE] sys-devel/gcc-4.5.3 fails to compile itself on mips n64 no-multilib...
Status: RESOLVED UPSTREAM
Alias: PR45941
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR45941
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 17:49 UTC by Sebastian Luther (few)
Modified: 2012-05-25 02:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
compressed build.log (sys-devel:gcc-4.5.3:20110807-133405.log.bz2,74.60 KB, application/octet-stream)
2011-08-08 17:49 UTC, Sebastian Luther (few)
Details
compressed preprocessed source (lto-streamer-in.i.bz2,138.75 KB, application/octet-stream)
2011-08-08 19:02 UTC, Sebastian Luther (few)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Luther (few) 2011-08-08 17:49:26 UTC
Created attachment 282593 [details]
compressed build.log

/local/tmp/portage/sys-devel/gcc-4.5.3/work/build/./prev-gcc/xgcc -B/local/tmp/portage/sys-devel/gcc-4.5.3/work/build/./prev-gcc/ -B/usr/mips64el-gentoo-linux-gnu/bin/ -B/usr/mips64el-gentoo-linux-gnu/bin/ -B/usr/mips64el-gentoo-linux-gnu/lib/ -isystem /usr/mips64el-gentoo-linux-gnu/include -isystem /usr/mips64el-gentoo-linux-gnu/sys-include    -c   -mabi=64 -mips64 -O2 -gtoggle -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I. -I/local/tmp/portage/sys-devel/gcc-4.5.3/work/gcc-4.5.3/gcc -I/local/tmp/portage/sys-devel/gcc-4.5.3/work/gcc-4.5.3/gcc/. -I/local/tmp/portage/sys-devel/gcc-4.5.3/work/gcc-4.5.3/gcc/../include -I/local/tmp/portage/sys-devel/gcc-4.5.3/work/gcc-4.5.3/gcc/../libcpp/include  -I/local/tmp/portage/sys-devel/gcc-4.5.3/work/gcc-4.5.3/gcc/../libdecnumber -I/local/tmp/portage/sys-devel/gcc-4.5.3/work/gcc-4.5.3/gcc/../libdecnumber/dpd -I../libdecnumber     /local/tmp/portage/sys-devel/gcc-4.5.3/work/gcc-4.5.3/gcc/lto-streamer-in.c -o lto-streamer-in.o
xgcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.

Works with -O1 instead of -O2.
gcc-4.5.2 fails in the same way. gcc-4.6.1 works.

Portage 2.1.10.10 (default/linux/mips/10.0/n64, gcc-4.6.1, unavailable, 2.6.18.8-sc-lustre-perfmon mips64)
=================================================================
System uname: Linux-2.6.18.8-sc-lustre-perfmon-mips64-SiCortex_ICE9B_V1.0_FPU_V0.1-with-gentoo-1.12.12
Timestamp of tree: Sun, 07 Aug 2011 12:30:01 +0000
app-shells/bash:                  3.2_p33
dev-lang/python:                  2.4.4-r13, 2.7.2-r2
dev-util/pkgconfig:               0.21-r1
sys-apps/baselayout:              1.12.12
sys-apps/sandbox:                 2.5
sys-devel/autoconf:               2.68
sys-devel/automake:               1.9.6-r2, 1.10.1-r1, 1.11.1-r1
sys-devel/binutils:               2.18-r2, 2.21.1
sys-devel/gcc:                    4.1.2, 4.6.1
sys-devel/gcc-config:             1.4.1-r1
sys-devel/libtool:                2.2.6b::x-update-overlay
sys-devel/make:                   3.81
sys-kernel/sicortex-mips-headers: 5.0.0.3.56726-r4::<unknown repository> (virtual/os-headers)
sys-libs/glibc:                   2.13-r4
Repositories: gentoo x-sicortex-overlay
ACCEPT_KEYWORDS="amd64 mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="mips64el-gentoo-linux-gnu"
CFLAGS="-O2"
CHOST="mips64el-gentoo-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2"
DISTDIR="/local/distfiles"
EMERGE_DEFAULT_OPTS="--ask --tree --jobs=3 --keep-going"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo                 http://gentoo.osuosl.org/                 http://www.gtlib.gatech.edu/pub/gentoo                 http://distro.ibiblio.org/pub/linux/distributions/gentoo/                 http://gentoo.chem.wisc.edu/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
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="/local/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/sicortex-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups cxx gdbm gpm iconv ipv6 mips modules mudflap ncurses nls nptl nptlonly pam pcre perl pppd python readline session ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="au1x00" 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev impact newport dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sebastian Luther (few) 2011-08-08 18:08:38 UTC
Might be this gcc bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45941
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2011-08-08 18:49:16 UTC
Can you add -save-temps to the commandline and attach the preprocessed source?
Comment 3 Sebastian Luther (few) 2011-08-08 19:02:20 UTC
Created attachment 282603 [details]
compressed preprocessed source
Comment 4 Matt Turner gentoo-dev 2011-08-15 04:27:11 UTC
(In reply to comment #3)
> Created attachment 282603 [details]
> compressed preprocessed source

Confirmed with mips64el-unknown-linux-gnu-4.5.2 and 4.5.3 from crossdev on an amd64 system.

Notes:
 - only happens with -O2 -mabi=64 (any other -O level, including -O3, or -mabi=... won't trigger it)
 - does not happen with mips64-unknown-linux-gnu (tried 4.5.2, 4.5.3, and 4.6.1)
 - does not happen with 4.6.1

I'll update the suspected upstream bug report with this information.
Comment 5 Martin Cmelik 2011-10-21 14:44:27 UTC
Hi,

we discuss this problem on forums and it seems that problem is with -march.
GCC will be compiled with -march=native but it fails with others as "unknown march type"

Please read more information here: http://forums.gentoo.org/viewtopic-t-898044-start-25-postdays-0-postorder-asc-highlight-.html

Thank you
Comment 6 Elijah "Armageddon" El Lazkani (amd64 AT) 2011-10-21 14:48:13 UTC
Do not CC arches on your own.
Comment 7 Matt Turner gentoo-dev 2011-10-21 14:59:09 UTC
(In reply to comment #6)
> Do not CC arches on your own.

And don't remove mips@ from CC. :|
Comment 8 Matt Turner gentoo-dev 2012-05-25 02:34:39 UTC
Upstream doesn't give a shit, apparently, and gcc-4.6 is now unmasked.