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

Bug 61272

Summary: libstdc++-v3-3.3.3-r1 will fail when using -mcpu=G5
Product: Gentoo Linux Reporter: Markus Rothe (RETIRED) <corsair>
Component: New packagesAssignee: ppc64 architecture team <ppc64>
Status: VERIFIED WONTFIX    
Severity: normal    
Priority: High    
Version: 2004.2   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Markus Rothe (RETIRED) gentoo-dev 2004-08-22 10:24:07 UTC
Hi,

just tried to install libstdc++-v3-3.3.3-r1. But it failed with this line:

checking whether the C compiler ( /var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/xgcc -B/var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/ -B/usr/powerpc64-unknown-linux-gnu/bin/ -B/usr/powerpc64-unknown-linux-gnu/lib/ -isystem /usr/powerpc64-unknown-linux-gnu/include -O2 -mcpu=G5 -pipe -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-target-libiberty] Error 1

!!! Error: sys-libs/libstdc++-v3-3.3.3-r1 failed.
!!! Function src_compile, Line 169, Exitcode 2
!!! (no error message)

Seems to be the same problem as seen on amd64... I added this line to the ebuild and it works now:

    replace-flags -mcpu=G5 -mtune=G5

but there might be other -mcpu types be affected, so I guess the solution to this problem in the ebuild would be similar to the solution for amd64.

So maybe this works:

if use ppc64
then
  setting="`get-flag mcpu`"
  [ ! -z "$setting" ] && filter flags -mcpu="${setting}" -mtune="${setting}"
fi

Markus
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2004-08-22 10:29:00 UTC
by the way: the error occured while bootstrapping...

Markus
Comment 2 Tom Gall (RETIRED) gentoo-dev 2004-08-22 12:52:54 UTC
ahh .. yeah you can't use -mcpu=xxxx .  -mtune=970 is effectively the same thing according to alanm.  -mcpu is turning on some 32 bit flags and such I gather so that's why you don't want to use it 

It's a bug sure but a bug upstream that i don't think they are going to address.
Comment 3 Tom Gall (RETIRED) gentoo-dev 2004-08-22 21:11:38 UTC
stick a fork in it