John Cremona on Wed, 21 Jul 2010 13:26:43 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

platform issues

Sorry for the deluge of emails to pari-devel.  The following were
reported by David Kirkby whose aim include  making sure that all code
included in Sage satisfies various worthy conditions, one of which is
to build on Solaris machines.  The following come from discussion
relating to getting pari-2.4.3 into Sage.

1. "Hi, John or someone else can perhaps convey this to the Pari
developers. Would it be possible for them to add the -fPIC option on
at least all Solaris systems. (Both SPARC and x86). If code goes into
a shared library, it should be compiled position independent. It is
unreliable if this is not done. There's some relevant information
about this here.

I believe it would be more reliable to build with -fPIC when the code
is going into a shared library - irrespective of the platform. What
one should ensure though is there is not a mixture of PIC and non-PIC
code, as that can be unreliable too.

I've not had a chance to look at the other issues, but as far as I can
see, this update completely breaks a 64-bit build on Solaris or

I've also noticed that Pari reports that readline is not working on
Solaris systems. Yet the readline is definitely working in my Sage
builds on Solaris. Several parts of Sage link against readline (Pari,
gap, Singular, ECL, Python ...). None of them believe that readline is
broken, but Pari does. "

2. "Looking at the error message above: solaris-ix86-rlv23868: fatal: open failed: No
such file or directory
./Configure[79]: .: line 38: 24072: Killed

and comparing it to the GMP libraries that were installed, the version
numbers do not match. Pari is looking for but I have the
following GMP related files:

drkirkby@hawk:~/sage-4.5/local/lib$ ls -ld libgmp*
-rwxr-xr-x+  1 drkirkby staff        803 Jul 16 13:10
lrwxrwxrwx   1 drkirkby staff         15 Jul 16 13:10 ->
lrwxrwxrwx   1 drkirkby staff         15 Jul 16 13:10 ->
-rwxr-xr-x+  1 drkirkby staff     549536 Jul 16 13:10
-rwxr-xr-x+  1 drkirkby staff        919 Jul 16 13:10
lrwxrwxrwx   1 drkirkby staff         17 Jul 16 13:10 ->
lrwxrwxrwx   1 drkirkby staff         17 Jul 16 13:10 ->
-rwxr-xr-x+  1 drkirkby staff      26712 Jul 16 13:10

i.e. there is nothing like a version 10. The installed libraries have
a 3.x in them, but Pari is looking for a .10.

I've installed bison on the system, so the error message about a
missing bison is not appearing any more, but that has not resolve

    * The readline issue, which I've had for ages. OR
    * The gmp library issue, which is unique to this update, and does
not show up in the version in Sage. "