Skip to content
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

fix c_lib on Cygwin #8843

Closed
mwhansen opened this issue May 3, 2010 · 9 comments
Closed

fix c_lib on Cygwin #8843

mwhansen opened this issue May 3, 2010 · 9 comments

Comments

@mwhansen
Copy link
Contributor

mwhansen commented May 3, 2010

Cygwin can't load shared libraries via symlinks. Therefore, we have to actually copy libcsage.so/csage.dll over to $SAGE_LOCAL/lib/. Note that currently the "install" target in SConstruct does nothing.

CC: @williamstein

Component: porting: Cygwin

Author: Mike Hansen

Reviewer: William Stein

Merged: sage-4.4.3.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/8843

@mwhansen mwhansen added this to the sage-4.4.3 milestone May 3, 2010
@williamstein
Copy link
Contributor

comment:2

Unfortunately, after applying this, libcsage just doesn't build anymore.

@mwhansen
Copy link
Contributor Author

Attachment: trac_8843-c_lib.patch.gz

@mwhansen
Copy link
Contributor Author

Reviewer: William Stein

@mwhansen
Copy link
Contributor Author

comment:3

I've posted a new patch which should work.

@williamstein
Copy link
Contributor

comment:4

Doesn't work:

Installing c_lib
g++ -o libcsage.so -shared src/convert.os src/interrupt.os src/mpn_pylong.os src/mpz_pylong.os src/mpz_longlong.os src/stdsage.os src/gmp_globals.os src/ZZ_pylong.os src/ntl_wrap.os -L/mnt/usb1/scratch/wstein/build/release/4.4.3/sage-4.4.3.alpha0/local/lib -L/mnt/usb1/scratch/wstein/build/release/4.4.3/sage-4.4.3.alpha0/local/lib/python/config -lntl -lgmp -lpari -lpython2.6
/usr/bin/ld: /mnt/usb1/scratch/wstein/build/release/4.4.3/sage-4.4.3.alpha0/local/lib/libpython2.6.a(exceptions.o): relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/mnt/usb1/scratch/wstein/build/release/4.4.3/sage-4.4.3.alpha0/local/lib/libpython2.6.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
scons: *** [libcsage.so] Error 1
ERROR: There was an error building c_lib.

However, Mike says there is a Python spkg that may fix this...

@williamstein
Copy link
Contributor

Merged: 4.4.3.alpha0

@williamstein
Copy link
Contributor

Changed reviewer from William Stein to wstein

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented May 27, 2010

Changed merged from 4.4.3.alpha0 to sage-4.4.3.alpha0

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented May 27, 2010

Changed reviewer from wstein to William Stein

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants