Bug 49582

Summary: configure-target-libquadmath fail on powerpc-darwin8
Product: gcc Reporter: David Fang <fang>
Component: bootstrapAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 4.6.1   
Target Milestone: ---   
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

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
 --enable-languages=c,c++,fortran,lto,objc,obj-c++,java
 --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
--disable-libjava-multilib

(where %p=/sw)

My build log shows:

Adding multilib support to Makefile in ../../../gcc-4.6
.1/libquadmath
multidirs=ppc64
with_multisubdir=
Running configure in multilib subdirs ppc64
pwd: /Volumes/Mercedes2/sw/src/fink.build/gcc46-4.6.1-1000/darwin_objdir/powerpc
-apple-darwin8.11.0/libquadmath
Running configure in multilib subdir ppc64
pwd: /Volumes/Mercedes2/sw/src/fink.build/gcc46-4.6.1-1000/darwin_objdir/powerpc
-apple-darwin8.11.0
no
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
powerpc-apple-darwin8.11.0
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
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
yes
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
2/sw/src/fink.build/gcc46-4.6.1-1000/darwin_objdir/powerpc-apple-darwin8.11.0/pp
c64/libquadmath':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
yes
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?
Comment 3 Eric Gallager 2017-10-19 12:54:30 UTC
(In reply to Eric Gallager from comment #2)
> 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?

With no answer to the 1st question, I'm gonna assume the answer to my 2nd question is "yes" and close this bug as a duplicate of bug 37704.

*** This bug has been marked as a duplicate of bug 37704 ***