Ticket #3248 (new defect)

Opened 8 months ago

Last modified 1 month ago

[with patch; mixed review] cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes

Reported by: was Assigned to: mabshoff
Priority: major Milestone: sage-3.4
Component: cygwin Keywords: editor_wstein
Cc: craigcitro

Description

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

Attachments

sage-3248.patch (2.0 kB) - added by was on 05/17/2008 01:56:29 PM.

Change History

05/17/2008 01:56:29 PM changed by was

  • attachment sage-3248.patch added.

05/17/2008 02:50:13 PM changed by mabshoff

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

06/13/2008 10:46:07 AM changed by mabshoff

  • summary changed from [with patch; needs review] cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes to [with patch; mixed review] cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes.

We need to track this down and fix it.

Cheers,

Michael

06/19/2008 09:54:45 PM changed by craigcitro

  • keywords set to editor_wstein.

11/26/2008 03:44:29 PM changed by craigcitro

  • cc set to craigcitro.