Bug 24662 - gcc unable to bootstrap and build as 64 bit binary
Summary: gcc unable to bootstrap and build as 64 bit binary
Alias: None
Product: gcc
Classification: Unclassified
Component: regression (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2005-11-04 01:44 UTC by Tom Gall
Modified: 2005-11-04 04:52 UTC (History)
1 user (show)

See Also:
Host: powerpc64-linux
Target: powerpc64-linux
Build: powerpc64-linux
Known to work:
Known to fail:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Tom Gall 2005-11-04 01:44:10 UTC
In the past with 3.3 and 3.4 gcc could be build as a 64 bit binary on ppc64. gentoo-ppc64 as a distro is a full 64 bit environment. 

I've been doing some early explorations on gcc 4.x for our next release of gentoo-ppc64 and found that gcc no longer is able to bootstrap or even build in a pure 64 bit environment. 

As a request could we get this functionality back? 

As an added bonus I would appreciate if we could bootstrap a bi-arch (aka multilib) 32/64 compiler from a pure 64 bit environment as well. This is also not possible today.
Comment 1 Andrew Pinski 2005-11-04 01:49:09 UTC

For a pure 64bit PPC GNU/Linux, you need --disable-multilib (and maybe --with-cpu=default64) as you don't have a 32bit glibc.

Unless I am misunderstanding what you mean by a pure 64bit PPC GNU/Linux distro.

--with-cpu=default64 will do what you think it does and builds a 64 bit compiler that is a 64bits binary.
Comment 2 Tom Gall 2005-11-04 02:51:06 UTC
I'll give that whirl...  I think I was mistakenly using --disable-biarch!  :-/
Comment 3 Tom Gall 2005-11-04 04:52:58 UTC
fresh subversion code + right param seems to fix it ...  least for the pure 64 bit case. I'll get to the multilib from 64 bit case in a few days.