Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326877 - sys-kernel/gentoo-sources-2.6.32-r7 fails to compile with gcc-4.4.4
Summary: sys-kernel/gentoo-sources-2.6.32-r7 fails to compile with gcc-4.4.4
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-04 14:49 UTC by Anthony Basile
Modified: 2010-07-04 21:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Basile gentoo-dev 2010-07-04 14:49:10 UTC
When compiling any gentoo-sources-2.6.32 with gcc-4.4.4 (or any spec of gcc-4.4.4-r1) on 32-bit userland ppc, the build fails with

  CC      arch/powerpc/platforms/chrp/setup.o
cc1: warnings being treated as errors
arch/powerpc/platforms/chrp/setup.c: In function 'chrp_event_scan':
arch/powerpc/platforms/chrp/setup.c:378: error: the frame size of 1040 bytes is larger than 1024 bytes
make[2]: *** [arch/powerpc/platforms/chrp/setup.o] Error 1
make[1]: *** [arch/powerpc/platforms/chrp] Error 2
make: *** [arch/powerpc/platforms] Error 2

This is apparently a long standing bug and was hit by Coviello at cruxppc.org for >=2.6.31.  See

http://article.gmane.org/gmane.linux.ports.ppc64.devel/61517/match=

This problem does not affect gcc-4.3*.  You can also work around this problem by disabling CONFIG_PPC_CHRP which may be undesirable.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-devel/gcc-4.4.4 (or 4.4.4-r1)
2. emerge gentoo-sources (currently 2.6.32-r7 is stable on ppc)
3. compile kernel
Comment 1 Anthony Basile gentoo-dev 2010-07-04 14:50:13 UTC
gentoo-ppc linux # emerge --info
Portage 2.1.8.3 (hardened/linux/powerpc/ppc32/10.0, gcc-4.4.4-vanilla, glibc-2.11.2-r0, 2.6.32-gentoo-r7 ppc)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-ppc-7450,_altivec_supported-with-gentoo-1.12.13
Timestamp of tree: Sat, 03 Jul 2010 07:00:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.6.3-r1, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://192.168.100.9/pub/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://192.168.100.7/portage"
USE="acl berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gpm hardened iconv modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic ppc pppd python readline reflection session spl ssl sysfs tcpd urandom xorg zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident voodoo" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 2 Anthony Basile gentoo-dev 2010-07-04 14:52:31 UTC
This issue also affects all >=hardened-sources-2.6.32
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2010-07-04 19:43:06 UTC
Post a make V=1 build log please.  Does it work if you turn off -Werror?
Comment 4 SpanKY gentoo-dev 2010-07-04 21:16:10 UTC
i see no indication this is a bug in gcc.  find the fix that went into upstream, or disable the config option as suggested.  i doubt you'll find anyone here that would actually write a fix if upstream hasnt done it.
Comment 5 Anthony Basile gentoo-dev 2010-07-04 21:54:33 UTC
If you turn off -Werror by setting CONFIG_PPC_DISABLE_WERROR=y you get past the error.  I'm going to close this RESOLVED INVALID but will continue to poke around and post here if I find more for the records.