Problems install gmp 5.0.5 on Powermac Quad with OS X 10.5.8
calderon.christian760 at gmail.com
Mon Oct 22 18:09:58 CEST 2012
Well, I discovered that the problem I was having was with my apple
version of gcc. Apparently it didn't have support for __gnu_inline__
stuff, and that was making everything fail. so I HAVE to use the CC=
part of my configure. I tried again after installing gcc47 from
MacPorts, and everything seemed to go ok, until i tried:
Which is where everything died again. It looked like I was missing
some architecture specific files, as I saw these line in the output of
make check just before it output a bunch of undefined symbol warnings
ld: warning: in /opt/local/lib/gcc47/libgcc_ext.10.5.dylib, missing
required architecture ppc64 in file
ld: warning: in /opt/local/lib/gcc47/gcc/ppc-apple-darwin9/4.7.2/
libgcc.a, file was built for unsupported file format which is not the
architecture being linked (ppc64)
So I will try now to use JUST the CC option and see where that takes me.
Also, I took a look at the url you sent me to, and here is the other
Darwin administrators-power-mac-g5.local 9.8.0 Darwin Kernel Version
9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC
This time I was configuring as so:
./configure CC=gcc-mp-4.7 CXX=g++-mp-4.7 --prefix=/opt/gmp/5.0.5 --
enable-cxx --enable-assert --build=powerpc970-apple-darwin9.8.0
I will attempt to build again using only CC=gcc-mp-4.7 now.
On Oct 22, 2012, at 8:40 AM, Marc Glisse wrote:
> On Sun, 21 Oct 2012, Christian Calderon wrote:
>> The install failed during the make phase of the build. I configured
>> as so:
>> ./configure --prefix=/opt/gmp/5.0.5 --enable-cxx --enable-assert --
>> The configure succeeded, so the next thing I did was:
>> During the make process lots of warnings came up about
>> '__gnu_inline__' being ignored.
>> The last four lines were
>> ld: duplicate symbol ___gmpz_abs in .libs/compat.o and .libs/assert.o
>> collect2: ld returned 1 exit status
>> make: *** [libgmp.la] Error 1
>> make: *** [all-recursive] Error 1
>> make: *** [all] Error 2
> See http://gmplib.org/manual/Reporting-Bugs.html , we need more info.
>> Is this because of the --enable-assert option?
> Probably not, but the first thing to try before reporting a bug is
> to remove as many configure options as you can (start with no option
> at all).
> Marc Glisse
More information about the gmp-bugs