Looks like it sigbuses. Build log to follow... Steps to reproduce: 1. Extract fresh stage3 tarball 2. Add ACCEPT_KEYWORDS="~sparc" to /etc/make.conf 3. emerge gcc 4. gcc-config sparc-unknown-linux-gnu-4.4.1; source /etc/profile, etc... 5. emerge -evuDN world Portage 2.1.6.13 (default/linux/sparc/2008.0, gcc-4.4.1, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 sparc64) ================================================================= System uname: Linux-2.6.28-gentoo-r5-sparc64-sun4v-with-glibc2.0 Timestamp of tree: Fri, 28 Aug 2009 03:00:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.5.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.10.2 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.27-r2 ACCEPT_KEYWORDS="sparc ~sparc" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=ultrasparc -pipe" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc/dispatch-conf.conf /etc/make.conf /etc/portage" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mcpu=ultrasparc -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg cleanpkgdir distclean distlocks fixpackages genpkgindex parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://gentoo.osuosl.org/pub/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j33" PKGDIR="/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://raptor.gentoo.org/gentoo-portage" USE="acl berkdb bindist bzip2 cli cracklib crypt cups dlloader dri fortran gcc64 gdbm gpm iconv ipv6 isdnlog mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session sparc spl ssl sysfs tcpd unicode xorg 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="vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 202520 [details] build.log
It's PR37344
same with 4.4.2
bumb?
there's no patch here and there's no clear patch listed upstream, just ideas try the patch upstream and see if it fixes the sparc problem, then post it here so it can be included
Created: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
Mike, This happens when using STAGE1_CFLAGS=-O . Works with -O2, could we make an exception on sparc and use -O2 on STAGE1_CFLAGS on gcc-4.4 and above? I don't think this is going to get fixed soon...
i hate this BS. i'm guessing you want something like: + elif tc_version_is_at_least 4.4 && [[ ${CTARGET} == sparc*linux* ]] ; then + STAGE1_CFLAGS=${STAGE1_CFLAGS-"-O2"} #283041 else STAGE1_CFLAGS=${STAGE1_CFLAGS-"-O"} fi
what about STAGE1_CFLAGS=-O0?
(In reply to comment #9) > what about STAGE1_CFLAGS=-O0? > It works fine too
then i have to suggest: --- toolchain.eclass 5 Jul 2010 22:25:09 -0000 1.434 +++ toolchain.eclass 18 Jul 2010 21:24:42 -0000 @@ -1481,8 +1481,6 @@ elif [[ $(gcc-version) == "3.4" && ${GCC_BRANCH_VER} == "3.4" ]] && gcc-specs-ssp ; then # See bug #79852 STAGE1_CFLAGS=${STAGE1_CFLAGS-"-O2"} - else - STAGE1_CFLAGS=${STAGE1_CFLAGS-"-O"} fi if is_crosscompile; then
WFM, plz2apply!
Fixed. http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?r1=1.436&r2=1.437