Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283041 (PR37344) - sys-devel/gcc-4.4.* fails to rebuild itself on SPARC
Summary: sys-devel/gcc-4.4.* fails to rebuild itself on SPARC
Status: RESOLVED FIXED
Alias: PR37344
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR42775
Whiteboard:
Keywords:
Depends on:
Blocks: 278687
  Show dependency tree
 
Reported: 2009-08-28 15:58 UTC by Raúl Porcel (RETIRED)
Modified: 2010-08-01 03:05 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,545.71 KB, text/plain)
2009-08-28 16:42 UTC, Raúl Porcel (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raúl Porcel (RETIRED) gentoo-dev 2009-08-28 15:58:39 UTC
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
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2009-08-28 16:42:19 UTC
Created attachment 202520 [details]
build.log
Comment 2 Raúl Porcel (RETIRED) gentoo-dev 2009-08-29 16:21:44 UTC
It's PR37344
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2009-11-03 16:44:18 UTC
same with 4.4.2
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2010-01-08 20:03:32 UTC
bumb?
Comment 5 SpanKY gentoo-dev 2010-01-08 23:16:41 UTC
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
Comment 6 laurent 2010-01-17 16:00:38 UTC
Created: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42775
Comment 7 Raúl Porcel (RETIRED) gentoo-dev 2010-06-08 18:49:24 UTC
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...
Comment 8 SpanKY gentoo-dev 2010-06-08 22:10:52 UTC
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
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2010-07-07 17:02:19 UTC
what about STAGE1_CFLAGS=-O0?
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2010-07-18 16:16:08 UTC
(In reply to comment #9)
> what about STAGE1_CFLAGS=-O0?
> 

It works fine too
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2010-07-18 21:26:27 UTC
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
Comment 12 Raúl Porcel (RETIRED) gentoo-dev 2010-07-24 15:56:43 UTC
WFM, plz2apply!