Re: [MPFR] Mac OS X power pc issue with C99

2018-02-19 Thread Vincent Lefevre
Hi,

On 2018-02-19 09:19:02 -0700, arn...@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  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: [MPFR] Mac OS X power pc issue with C99

2018-02-19 Thread paul zimmermann
   Dear Arnold,

the "duplicate symbol ___gmpz_abs" seems to be a frequent issue on Mac OS:

http://mail-index.netbsd.org/pkgsrc-users/2008/11/20/msg008688.html
https://groups.google.com/forum/#!topic/sage-devel/LVASCTPZnXw
http://avr.2057.n7.nabble.com/Trouble-compiling-avr-gcc-gt-4-4-4-on-Mac-OS-X-Leopard-with-gcc-4-2-td8706i20.html

The most useful answer I found is that one:

https://gmplib.org/list-archives/gmp-bugs/2010-January/001747.html

Hope this helps,
Paul Zimmermann
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: [MPFR] Mac OS X power pc issue with C99

2018-02-19 Thread Torbjörn Granlund
paul zimmermann  writes:

 Dear Arnold,
  
  the "duplicate symbol ___gmpz_abs" seems to be a frequent issue on Mac OS:
  
  http://mail-index.netbsd.org/pkgsrc-users/2008/11/20/msg008688.html
  https://groups.google.com/forum/#!topic/sage-devel/LVASCTPZnXw
  
http://avr.2057.n7.nabble.com/Trouble-compiling-avr-gcc-gt-4-4-4-on-Mac-OS-X-Leopard-with-gcc-4-2-td8706i20.html
  
  The most useful answer I found is that one:
  
  https://gmplib.org/list-archives/gmp-bugs/2010-January/001747.html
  
[Admin: Please note that as per previous announcements, we don't put bug
reports for extremely obsolete GMP releases on the list.  Therefore,
there is no need to follow up on such reports.]

-- 
Torbjörn
Please encrypt, key id 0xC8601622
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs