Gentoo Archives: gentoo-osx

From: Grobian <grobian@g.o>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] bootstrap gcc-apple fails
Date: Fri, 07 Apr 2006 18:37:43
In Reply to: Re: [gentoo-osx] bootstrap gcc-apple fails by Tobias Hahn
Thank you for your detailed info.  I think I was lazy, because I think
you have said all of it already.

I have no G4 machine to test on, only a G5, which might explain why it
works for me, and not for you.  I think the bootstrap script can be made
smarter, such that it detects ppc32 (`sysctl hw.optional.64bitops` ?) to
automatically insert this --disable-multilib configure flag.

On 07-04-2006 19:01:37 +0200, Tobias Hahn wrote:
> Sorry if I wasn't precise enough. > > 1. My hardware is a G4 (i.e. 32bit ppc cpu, no 64bit support) running Mac OS X > 10.4.6, reinstalled in the last month from scratch, i.e. blank hard disk, > formatted HFSX+J. > 2. I have Xcode 2.2 installed. > 3. I am using a special user portage, group portage, to experiment with > portage-prefix. Homedir is /Volumes/portage, again HFSX+J. > 4. I am using portage-alt-prefix-20060406. > 5. I have no special environment, i.e. SHELL=/bin/bash, TERM=xterm-color, > PATH=/bin:/sbin:/usr/bin:/usr/sbin, DEFAULT_PATH etc. unset. > 6. I try to bootstrap portage using the command > $ ./portage-alt-prefix/scripts/ /Volumes/portage/prefix > This script first fetches and compiles odcctools, then gcc-apple-5247. > 7. In particular, this script does not pass --disable-multilib to gcc > configure. > 8. The following make boostrap-lean fails as posted before. As I suspected, I > was not the only one experiencing this bug, even though the reference in my > last mail is to mainline-gnu-gcc. > 9. The gcc-people don't seem to consider this a bug, I filed one with apple, > though, to see what they think. > 10. In the meantime: What's the correct way to --disable-multilib, i.e. a > profile ppc32 and a profile ppc64, hardcoded in bootstrap or a bootstrap > commandline option --disable-multilibs? What are multilibs, i.e. does this mean > the compiler executable will take advantage of 64bit hardware even if compiled > on 32bit hardware or just that the compiler is able to generate fat binaries? > Do we want multilibs in portage or do we want to give the user a choice? It's > Gentoo after all... > > > Am 07.04.2006 um 13:09 schrieb Grobian: > > >I don't really understand. Unless you really want to build the upstream > >GCC release you probably need to give configure that flag, but for > >Apple's GCC it should just work as far as I know. > > > >Did you use the bootstrap script? If so does this failure comes during > >the bootstrap? Have you tried a recent (== a few days ago) version of > >the bootstrap script? > > > >On 07-04-2006 13:43:29 +0200, Tobias Hahn wrote: > >>I'm experiencing bug (I > >>can't > >>understand marking that bug invalid. It's definitely something autoconf > >>should > >>be able to detect. But support for machines that don't understand tail -n > >>seems > >>to be more of a priority to the gcc people...) since I'm still on a G4. > >>Where's > >>the correct point to --disable-multilib (profile, bootstrap-script?) > >> > >>Tobias > >> > >>Adding multilib support to Makefile in ../../../gcc-5247/libstdc++-v3 > >>multidirs=ppc64 > >>with_multisubdir= > >>Running configure in multilib subdirs ppc64 > >>pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8/libstdc++-v3 > >>Running configure in multilib subdir ppc64 > >>pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8 > >>configure: creating cache ./config.cache > >>checking build system type... powerpc-apple-darwin8 > >>checking host system type... powerpc-apple-darwin8 > >>checking target system type... powerpc-apple-darwin8 > >>checking for a BSD-compatible install... /usr/bin/install -c > >>checking whether build environment is sane... yes > >>checking for gawk... no > >>checking for mawk... no > >>checking for nawk... no > >>checking for awk... awk > >>checking whether make sets $(MAKE)... yes > >>checking for powerpc-apple-darwin8-gcc... /tmp/gcc-apple/build/gcc/xgcc > >>-B/tmp/gcc-apple/build/gcc/ -B/tmp/gcc-apple/usr/powerpc-apple-darwin8/bin/ > >>-B/tmp/gcc-apple/usr/powerpc-apple-darwin8/lib/ -isystem > >>/tmp/gcc-apple/usr/powerpc-apple-darwin8/include -isystem > >>/tmp/gcc-apple/usr/powerpc-apple-darwin8/sys-include -m64 > >>checking for C compiler default output file name... a.out > >>checking whether the C compiler works... configure: error: cannot run C > >>compiled programs. > >>If you meant to cross compile, use `--host'. > >>See `config.log' for more details. > >>make[1]: *** [configure-target-libstdc++-v3] Error 1 > >>make[1]: *** Waiting for unfinished jobs.... > >> > >>-- > >>gentoo-osx@g.o mailing list > >> > > > >-- > >Fabian Groffen > >Gentoo for Mac OS X Project > >-- > >gentoo-osx@g.o mailing list > > > > -- > gentoo-osx@g.o mailing list >
-- Fabian Groffen Gentoo for Mac OS X Project -- gentoo-osx@g.o mailing list


Subject Author
Re: [gentoo-osx] bootstrap gcc-apple fails Tobias Hahn <tobhahn@×××.de>