I've been trying to build the official 4.1.0 release on my G3 and G4 MacOS
10.4.5 systems with the configure command:

$ ../gcc-4.1.0/configure --prefix=/Users/malcolmp/prefix/gcc-4.1-world

This eventually fails when trying to build libstdc++-v3.  The last few lines of
output are:

--------------------------------------------------------------------------------
dding multilib support to Makefile in ../../../gcc-4.1.0/libstdc++-v3
multidirs=ppc64
with_multisubdir=
Running configure in multilib subdirs ppc64
pwd: /Users/malcolmp/src/objdir/powerpc-apple-darwin8.5.0/libstdc++-v3
Running configure in multilib subdir ppc64
pwd: /Users/malcolmp/src/objdir/powerpc-apple-darwin8.5.0
mkdir ppc64
configure: creating cache ./config.cache
checking build system type... powerpc-apple-darwin8.5.0
checking host system type... powerpc-apple-darwin8.5.0
checking target system type... powerpc-apple-darwin8.5.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for powerpc-apple-darwin8.5.0-gcc...
/Users/malcolmp/src/objdir/./gcc/xgcc -B/Users/malcolmp/src/objdir/./gcc/
-B/Users/malcolmp/prefix/gcc-4.1-world/powerpc-apple-darwin8.5.0/bin/
-B/Users/malcolmp/prefix/gcc-4.1-world/powerpc-apple-darwin8.5.0/lib/ -isystem
/Users/malcolmp/prefix/gcc-4.1-world/powerpc-apple-darwin8.5.0/include -isystem
/Users/malcolmp/prefix/gcc-4.1-world/powerpc-apple-darwin8.5.0/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: *** [all] Error 2
--------------------------------------------------------------------------------

It looks like configure is performing a test compile with 'xgcc -m64' and
trying to run the result.  Obviously this fails on these 32-bit cpus.

The same source and the same configure flags builds without error on my 10.4.5
G5 system.


-- 
           Summary: Build fails trying to run ppc64 binaries on powerpc-
                    apple-darwin8.5.0
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: malcolmpurvis at optushome dot com dot au
 GCC build triplet: powerpc-apple-darwin8.5.0
  GCC host triplet: powerpc-apple-darwin8.5.0
GCC target triplet: powerpc-apple-darwin8.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26628

Reply via email to