Closed bac7d3ea-3f1b-4826-8464-f0b53d5e12d2 closed 15 years ago
I should have stated, this is with sage-4.1.alpha2
Description changed:
---
+++
@@ -3,7 +3,6 @@
I built gcc 4.4.0 to use the Sun linker & assembler on my home machine (Sun Blade 2000, Solaris 10 update 6) and it built 61 packages without issue (see list at the bottom).
On 't2', I only get 6 built
-
dir-0.1 @@ -16,8 +15,7 @@ readline-5.2.p6
-Before pari is generating more than 94,000 error messages!
-
+before pari is generating more than 94,000 error messages!
Building and install PARI
This has now been resolved, thanks to Marc Glisse's help after I posted the query to comp.unix.solaris. The PARI code was missing the gcc compiler flag -fPIC. Why PARI built on my own Blade 2000 but not on the 16-core T5240 (t2.math.washington.edu) is not clear to me.
Here's a patch, which adds -fPIC to one of the files used to generate the Makefile that PARI uses.
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/pari/
Basically all my patch does is to add this to the top of spkg-install, which adds -fPIC
# As of PARI 2.3.3, the compiler flag -fPIC is not added on Solaris, but it needs to be. It basically adds:
if [ `uname` = "SunOS" ]; then
sed 's/-fomit-frame-pointer/-fomit-frame-pointer -fPIC/g' src/config/get_cc > src/config/get_cc.$$
mv src/config/get_cc.$$ src/config/get_cc
fi
and remove that below
# PARI doesn't set PIC correctly on Solaris, so we do this.
if [ `uname` = "SunOS" ]; then
CFLAGS=$CFLAGS" -fPIC"
export CFLAGS
fi
since the latter code was not working, despite it's obvious attempts to add -fPIC
David Kirkby
Changed keywords from solaris pari to solaris pari fPIC
It was noted by Minh Nguyen that there were a couple of junk files (spkg-install.orig & spkg-install.patch). These have now been removed.
The package can be found at
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/pari/pari-2.3.3.p1.spkg
Could someone add that with hg for me, as I don't yet know how to use it (sorry).
I meaningful comment would be "Adds -fPIC to allow building on Solaris. Removes a previous unsuccessful attempt at adding -fPIC"
Dave
Author: David Kirkby
Reviewer: Minh Van Nguyen
Replying to @sagetrac-drkirkby:
It was noted by Minh Nguyen that there were a couple of junk files (spkg-install.orig & spkg-install.patch). These have now been removed.
The package can be found at
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/pari/pari-2.3.3.p1.spkg
Could someone add that with hg for me, as I don't yet know how to use it (sorry).
I meaningful comment would be "Adds -fPIC to allow building on Solaris. Removes a previous unsuccessful attempt at adding -fPIC"
I've committed the changes in your name. I also did some minor formatting and fixed some typos. The new spkg is up at http://sage.math.washington.edu/home/mvngu/patch/pari-2.3.3.p1.spkg Wow! The new spkg with your changes successfully builds on t2 and sage.math. All tests passed on sage.math. Thanks, David!
Thank you too. The changes were limited to Solaris, so should have no effect on another platform.
Dave
Just to let people know, this has been merged in sage-4.1.1-alpha0. I can't close this ticket because I don't have the privilege to do so. Sorry, folks :-(
Merged: sage-4.1.1.alpha0
Well, is is a bit of an odd one.
I built gcc 4.4.0 to use the Sun linker & assembler on my home machine (Sun Blade 2000, Solaris 10 update 6) and it built 61 packages without issue (see list at the bottom).
On 't2', I only get 6 built
before pari is generating more than 94,000 error messages!
Just for the record, on my home machine, which uses a later version of Solaris 10, but identical versions of Sage and gcc, I got this many packages installed before problems.
Anyway, this is an issue which appears to be unique to t2, so will not to be resolved.
Component: porting: Solaris
Keywords: solaris pari fPIC
Author: David Kirkby
Reviewer: Minh Van Nguyen
Merged: sage-4.1.1.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6445