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

cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes #3248

Closed
williamstein opened this issue May 17, 2008 · 5 comments

Comments

@williamstein
Copy link
Contributor

  1. Something involving the python library in SConstruct that affect c_lib

  2. Something library ordering issues that break matrix_real_double_dense in setup.py

  3. Choosing ATLAS instead of GSL by default in setup.py

CC: @craigcitro

Component: porting: Cygwin

Keywords: editor_wstein

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

@williamstein
Copy link
Contributor Author

Attachment: sage-3248.patch.gz

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 17, 2008

comment:1

This patch as is exposes some bugs in the way we build python:

g++ -o libcsage.so -shared src/convert.os src/interrupt.os src/mpn_pylong.os 
src/mpz_pylong.os src/stdsage.os src/gmp_globals.os src/ZZ_pylong.os src/ntl_wrap.os 
-L/scratch/mabshoff/release-cycle/sage-3.0.2.alpha1/local/lib 
-L/scratch/mabshoff/release-cycle/sage-3.0.2.alpha1/local/lib/python/config -lntl 
-lgmp -lpari -lpython2.5
/usr/bin/ld: /scratch/mabshoff/release-cycle/sage-3.0.2.alpha1/local/lib/python/config
/libpython2.5.a(exceptions.o): relocation R_X86_64_32 against `_Py_NoneStruct' can not 
be used when making a shared object; recompile with -fPIC
/scratch/mabshoff/release-cycle/sage-3.0.2.alpha1/local/lib/python/config/libpython2.5.a: 
could not read symbols: Bad value
collect2: ld returned 1 exit status
scons: *** [libcsage.so] Error 1

----------------------------------------------------------
sage: Building and installing modified SAGE library files.


Installing c_lib
g++ -o libcsage.so -shared src/convert.os src/interrupt.os src/mpn_pylong.os 
src/mpz_pylong.os src/stdsage.os src/gmp_globals.os src/ZZ_pylong.os src/ntl_wrap.os 
-L/scratch/mabshoff/release-cycle/sage-3.0.2.alpha1/local/lib 
-L/scratch/mabshoff/release-cycle/sage-3.0.2.alpha1/local/lib/python/config -lntl 
-lgmp -lpari -lpython2.5
/usr/bin/ld: /scratch/mabshoff/release-cycle/sage-3.0.2.alpha1/local/lib/python/config
/libpython2.5.a(exceptions.o): relocation R_X86_64_32 against `_Py_NoneStruct' can not 
be used when making a shared object; recompile with -fPIC
/scratch/mabshoff/release-cycle/sage-3.0.2.alpha1/local/lib/python/config/libpython2.5.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.

The likely solution is to force "-fPIC" on the python build, but I need to dig around.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jun 13, 2008

comment:2

We need to track this down and fix it.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes [mixed review] cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes Jun 13, 2008
@craigcitro
Copy link
Member

Changed keywords from none to editor_wstein

@williamstein
Copy link
Contributor Author

comment:5

This is nearly 2 years old. My work with Mike Hansen on Windows porting greatly supersedes this. So I'm closing this.

@sagetrac-mvngu sagetrac-mvngu mannequin changed the title [mixed review] cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes Jan 18, 2010
@sagetrac-mvngu sagetrac-mvngu mannequin removed this from the sage-4.3.1 milestone Jan 18, 2010
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