Changes for pari 2.5.0

Vincent Lefevre vincent-opdarw at vinc17.org
Mon Jul 4 06:36:48 PDT 2011


Hi Jeremy,

On 2011-07-03 17:31:46 -0700, Jeremy Huddleston wrote:
> Hey vincent,
> 
> I noticed that the banner printed in pari incorrectly identifies the compiler when building with clang.
> 
> I is being reported as "gcc-3.0":
> 
>                                                               GP/PARI CALCULATOR Version 2.5.0 (released)
>                                                       i386 running darwin (x86-64/GMP-5.0.2 kernel) 64-bit version
>                                              compiled: Jul  3 2011, gcc-3.0 (tags/Apple/clang-####) (based on LLVM 3.0svn)
>                                                              (readline v6.2 enabled, extended help enabled)
[...]

I've just reported a bug upstream, which should appear here:

  http://pari.math.u-bordeaux.fr/cgi-bin/pkgreport.cgi?pkg=pari-stable

I've said the following:

I think that what happens is that PARI detects that the compiler is
compatible with gcc because running gnu.c succeeds and its version
information is just:

  3.0 (tags/Apple/clang-####) (based on LLVM 3.0svn)

(that comes from the config/get_cc script). When building PARI,
I suppose that the following line was written in some file
work/pari-2.5.0/Odarwin-.../pari.cfg

  __gnuc__='3.0 (tags/Apple/clang-####) (based on LLVM 3.0svn)'

The config/paricfg.h.SH script contains:

  echo "#define GCC_VERSION \"$__gnuc__\"" >> $file

So, basically, PARI's config scripts don't get enough information
about what the real GCC-compatible compiler is.

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


More information about the macports-dev mailing list