Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8843 closed defect (fixed)

fix c_lib on Cygwin

Reported by: Mike Hansen Owned by: tbd
Priority: major Milestone: sage-4.4.3
Component: porting: Cygwin Keywords:
Cc: wstein Merged in: sage-4.4.3.alpha0
Authors: Mike Hansen Reviewers: William Stein
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

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.

Attachments (1)

trac_8843-c_lib.patch (1.6 KB) - added by Mike Hansen 12 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by Mike Hansen

Status: newneeds_review

comment:2 Changed 12 years ago by William Stein

Status: needs_reviewneeds_work

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

Changed 12 years ago by Mike Hansen

Attachment: trac_8843-c_lib.patch added

comment:3 Changed 12 years ago by Mike Hansen

Cc: wstein added
Reviewers: William Stein
Status: needs_workneeds_review

I've posted a new patch which should work.

comment:4 Changed 12 years ago by William Stein

Status: needs_reviewneeds_work

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...

comment:5 Changed 12 years ago by William Stein

Merged in: 4.4.3.alpha0
Resolution: fixed
Reviewers: William Steinwstein
Status: needs_workclosed

comment:6 Changed 12 years ago by Minh Van Nguyen

Merged in: 4.4.3.alpha0sage-4.4.3.alpha0
Reviewers: wsteinWilliam Stein
Note: See TracTickets for help on using tickets.