Opened 13 years ago

Closed 11 years ago

Last modified 11 years ago

#3248 closed defect (duplicate)

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

Reported by: was Owned by: mabshoff
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: porting: Cygwin Keywords: editor_wstein
Cc: craigcitro Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

  1. Something involving the python library in SConstruct that affect c_lib
  1. Something library ordering issues that break matrix_real_double_dense in setup.py
  1. Choosing ATLAS instead of GSL by default in setup.py

Attachments (1)

sage-3248.patch (2.0 KB) - added by was 13 years ago.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by was

comment:1 Changed 13 years ago 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

comment:2 Changed 13 years ago 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

comment:3 Changed 13 years ago by craigcitro

  • Keywords editor_wstein added

comment:4 Changed 12 years ago by craigcitro

  • Cc craigcitro added

comment:5 Changed 11 years ago by was

  • Report Upstream set to N/A
  • Resolution set to duplicate
  • Status changed from needs_work to closed

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

comment:6 Changed 11 years ago by mvngu

  • Milestone changed from sage-4.3.1 to sage-duplicate/invalid/wontfix
  • Summary changed from [with patch; mixed review] cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes to cygwin -- fix some sagelib setup.py issues and Sconstruct issues involving library includes
Note: See TracTickets for help on using tickets.