User account creation filtered due to spam.

Bug 49582 - configure-target-libquadmath fail on powerpc-darwin8
Summary: configure-target-libquadmath fail on powerpc-darwin8
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.6.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2011-06-29 17:29 UTC by David Fang
Modified: 2017-07-20 00:51 UTC (History)
2 users (show)

See Also:
Host: powerpc-apple-darwin8
Target: powerpc-apple-darwin8
Build: powerpc-apple-darwin8
Known to work:
Known to fail:
Last reconfirmed: 2017-07-20 00:00:00


Note You need to log in before you can comment on or make changes to this bug.
Description David Fang 2011-06-29 17:29:55 UTC
With release 4.6.1, on powerpc-darwin8, I get a build failure during libquadmath.

Configuring with:
 --prefix=%p/lib/gcc4.6 --mandir=%p/share/man --infodir=%p/lib/gcc4.6/info
 --with-gmp=%p --with-libiconv-prefix=%p --with-ppl=%p --with-cloog=%p --with-mpc=%p --with-system-zlib
 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.6 --enable-cloog-backend=isl --with-dwarf2

(where %p=/sw)

My build log shows:

Adding multilib support to Makefile in ../../../gcc-4.6
Running configure in multilib subdirs ppc64
pwd: /Volumes/Mercedes2/sw/src/
Running configure in multilib subdir ppc64
pwd: /Volumes/Mercedes2/sw/src/
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for sysctl... configure: creating cache ./config.cache
checking build system type... yes
checking host system type... checking for sysmp... powerpc-apple-darwin8.11.0
checking target system type... powerpc-apple-darwin8.11.0
checking for a BSD-compatible install... /sw/bin/ginstall -c
checking whether build environment is sane... no
checking for table... yes
checking for a thread-safe mkdir -p... /sw/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... checking for times... yes
checking for --enable-version-specific-runtime-libs... no
checking for style of include used by make... GNU
checking for powerpc-apple-darwin8.11.0-gcc... /Volumes/Mercedes2/sw/src/fink.bu
ild/gcc46-4.6.1-1000/darwin_objdir/./gcc/xgcc -B/Volumes/Mercedes2/sw/src/fink.b
uild/gcc46-4.6.1-1000/darwin_objdir/./gcc/ -B/sw/lib/gcc4.6/powerpc-apple-darwin
8.11.0/bin/ -B/sw/lib/gcc4.6/powerpc-apple-darwin8.11.0/lib/ -isystem /sw/lib/gc
c4.6/powerpc-apple-darwin8.11.0/include -isystem /sw/lib/gcc4.6/powerpc-apple-da
rwin8.11.0/sys-include  -m64
checking for wait3... checking for C compiler default output file name... yes
checking for wait4... a.out
checking whether the C compiler works... configure: error: in `/Volumes/Mercedes
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
checking whether basename is declared... make[1]: *** [configure-target-libquadm
ath] Error 1
make[1]: *** Waiting for unfinished jobs....

(apologies if output is jumbled from parallel make)

The -m64 on a 32b-only arch is likely the issue.

Is libquadmath supported on 32b?  If so, how can we eliminate the -m64 from the build?
Comment 1 David Fang 2011-06-29 17:57:34 UTC
My 32b-only powerpc arch is a G4, which really should have multilib disabled for most components.  I couldn't find an option to --disable-libquadmath-multilib.
Comment 2 Eric Gallager 2017-07-20 00:51:07 UTC
I can't reproduce this failure with gcc8 on i386-apple-darwin9.8.0; could you try again please? Also could this be combined with bug 37704 for a more generic multilib disabling flag that handles other directories besides libquadmath?