#8843 closed defect (fixed)
fix c_lib on Cygwin
Reported by: | mhansen | 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: |
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)
Change History (7)
comment:1 Changed 11 years ago by
- Status changed from new to needs_review
comment:2 Changed 11 years ago by
- Status changed from needs_review to needs_work
Changed 11 years ago by
comment:3 Changed 11 years ago by
- Cc wstein added
- Reviewers set to William Stein
- Status changed from needs_work to needs_review
I've posted a new patch which should work.
comment:4 Changed 11 years ago by
- Status changed from needs_review to needs_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 11 years ago by
- Merged in set to 4.4.3.alpha0
- Resolution set to fixed
- Reviewers changed from William Stein to wstein
- Status changed from needs_work to closed
comment:6 Changed 11 years ago by
- Merged in changed from 4.4.3.alpha0 to sage-4.4.3.alpha0
- Reviewers changed from wstein to William Stein
Note: See
TracTickets for help on using
tickets.
Unfortunately, after applying this, libcsage just doesn't build anymore.