Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 199651

Summary: sys-devel/gcc-4.1.2 fails to compile (with power3 profile from 2007.1)
Product: Gentoo Linux Reporter: Markus Rothe (RETIRED) <corsair>
Component: Current packagesAssignee: ppc64 architecture team <ppc64>
Status: VERIFIED UPSTREAM    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
libgcc2.s (comes from -save-temps)

Description Markus Rothe (RETIRED) gentoo-dev 2007-11-19 13:40:24 UTC
Hello,

I have mentioned this to tgall yesterday and he told me to recompile glibc. Unfortunately this didn't fixed it.

The problem is that sys-devel/gcc-4.1.2 fails to compile:

{standard input}: Assembler messages:
{standard input}:85: Warning: Unary operator - ignored because bad operand follows
{standard input}:85: Warning: zero assumed for missing expression
{standard input}:86: Error: Unrecognized opcode: `bi'
{standard input}:96: Error: Unrecognized opcode: `bi'
{standard input}:1199: Error: unassigned file number 2


looking a the asm file created with -save-temps it looks like the bi is garbage at that position. (I'll attach the temp file)

# emerge --info
Portage 2.1.3.19 (default-linux/ppc/dev/ppc64/2007.1/64bit-userland/desktop/power3, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22.6 ppc64)
=================================================================
System uname: 2.6.22.6 ppc64 POWER3 (630+)
Timestamp of tree: Sun, 18 Nov 2007 16:00:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power3 -mtune=power3"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mcpu=power3 -mtune=power3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal ibm iconv ipv6 isdnlog jpeg kde ldap mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre perl png ppc64 pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" 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="dummy fbdev mach64 mga nv r128 radeon vega"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2007-11-19 13:41:03 UTC
Created attachment 136372 [details]
build.log
Comment 2 Markus Rothe (RETIRED) gentoo-dev 2007-11-19 13:41:57 UTC
Created attachment 136374 [details]
libgcc2.s (comes from -save-temps)
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2007-11-20 15:50:40 UTC
removing -mcpu=power3 -mtune=power3 from CFLAGS fixed the problem for me.
Comment 4 Tom Gall (RETIRED) gentoo-dev 2008-01-17 18:27:22 UTC
for later versions of gcc this is fixed. For the older profiles it's an issue. I'll remove and we'll target a new minimal gcc version for 2008.0 where this isn't a problem.

Regards,

Tom