[MPFR] Mac OS X power pc issue with C99

Vincent Lefevre vincent at vinc17.net
Mon Feb 19 16:49:47 UTC 2018


Hi,

On 2018-02-19 09:19:02 -0700, arnold at skeeve.com wrote:
> Hi. On this system:
> 
> $ uname -a
> Darwin arnold-robbinss-powerbook-g4-12.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 Power Macintosh
> 
> $ gcc --version
> powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> GMP 4.3.1 and MPFR 3.1.0
> 
> If I configure gawk with c99, I get link problems. This can be seen
> in gawk-4.1.4. (I disabled MPFR for gawk 4.2.0 for this system). I get
> 
> $ make
> make 'CFLAGS=-g -O2 -DNDEBUG' 'LDFLAGS=' all-recursive
> Making all in .
> c99  -g -O2 -DNDEBUG   -o gawk array.o awkgram.o builtin.o cint_array.o command.o debug.o dfa.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o getopt.o getopt1.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o random.o re.o regex.o replace.o str_array.o symbol.o version.o  -L/usr/local/lib -lintl -liconv -lc  -lreadline -lmpfr -lgmp 
> ld: duplicate symbol ___gmpz_abs in awkgram.o and array.o
> collect2: ld returned 1 exit status
> make[2]: *** [gawk] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> Any ideas or suggestions? Will newer versions of GMP / MPFR still work
> on this platform?

This seems neither a GMP bug, nor a MPFR bug, because the problem
is between awkgram.o and array.o. They seem to define a symbol name
reserved for GMP (I assume that if gmp.h did this, this would have
been detected at least by MPFR tests).

Moreover, GMP 4.3.1 and MPFR 3.1.0 are old...

> Please include me on all replies as I am not subscribed to these two
> lists.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the gmp-bugs mailing list