New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A GNUism in zn_poly-0.9.p0 causes linking problems wiith Sun's linker #6443
Comments
comment:1
It was very easily fixed, with just a bit of code to change a flag is the operating system is Solaris and the linker is Suns. There was already code to apply a patch for OS X, do I just added to that, so spkg-install now has:
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/zn_poly/ |
comment:2
|
comment:3
I've set the default compiler to be gcc 4.2.4, as that is the latest which will build MPFR with no test failures. So to test
which indicates gcc is configured to gnu linker.
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/ntl-5.4.2.p9/ntl-5.4.2.p9.spkg This is needed, as ntl is built in Sage before znpoly.
Check here for a patch. |
Author: David Kirkby |
comment:5
Replying to @sagetrac-drkirkby:
After uncompressing
namely
If you're happy with your changes, then check in your changes with
This will open up an editor. Enter a meaningful commit message. Preferably, your commit message should follow this template
Then create an updated version of your spkg and post a link to that updated version on this ticket. |
comment:6
Replying to @sagetrac-drkirkby:
The spkg at that address has some junks in it. I removed them, checked in changes in David Kirkby's name, and have uploaded an updated version at http://sage.math.washington.edu/home/mvngu/patch/zn_poly-0.9.p1.spkg |
comment:7
This is a
May the Solarisification of Sage... er... I mean the force be with you :-) |
Reviewer: Minh Van Nguyen |
comment:8
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 |
The basic problem is seen below. gcc is called with the -Wl,-soname flag, so -soname gets passed to the linker. But if the linker is the Sun linker, this breaks.
gcc -shared -Wl,-soname,libzn_poly-
cat VERSION
.so -o libzn_poly-cat VERSION
.so src/array.o src/invert.o src/ks_support.o src/mulmid.o src/mulmid_ks.o src/misc.o src/mpn_mulmid.o src/mul.o src/mul_fft.o src/mul_fft_dft.o src/mul_ks.o src/nuss.o src/pack.o src/pmf.o src/pmfvec_fft.o src/tuning.o src/zn_mod.o -L/export/home/drkirkby/sage/sage-4.1.alpha2/local/lib -lgmp -lmld: warning: option -o appears more than once, first setting taken
ld: fatal: file libzn_poly-0.9.so: unknown file type
I should be able to fix this without too many problems.
Component: porting: Solaris
Keywords: GNUism linker flags soname
Author: David Kirkby
Reviewer: Minh Van Nguyen
Merged: sage-4.1.1.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6443
The text was updated successfully, but these errors were encountered: