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
Might be this gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45941
Can you add -save-temps to the commandline and attach the preprocessed source?
Created attachment 282603 [details] compressed preprocessed source
(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.
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
Do not CC arches on your own.
(In reply to comment #6) > Do not CC arches on your own. And don't remove mips@ from CC. :|
Upstream doesn't give a shit, apparently, and gcc-4.6 is now unmasked.