#9097: c_lib in Sage library fails to build on OpenSolaris x64
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: new
Priority: major | Milestone:
Component: solaris | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
== Build environment ==
* Sun Ultra 27 3.33 GHz Intel W3580 Xeon. Quad core. 8 threads. 12 GB RAM
* !OpenSolaris 2009.06 snv_111b X86
* Sage 4.4.2
* gcc 4.4.4
== How gcc 4.4.4 was configured ==
Since the configuration of gcc is fairly critical on !OpenSolaris, here's
how it was built.
{{{
drkir...@hawk:~/sage-4.4.2$ gcc -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../gcc-4.4.4/configure --prefix=/usr/local/gcc-4.4.4
--with-as=/usr/local/binutils-2.20/bin/as --with-ld=/usr/ccs/bin/ld
--with-gmp=/usr/local --with-mpfr=/usr/local
Thread model: posix
gcc version 4.4.4 (GCC)
}}}
gcc 4.3.4 was failing to build iconv.
== The problem ==
{{{
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."
scons: *** [src/interrupt.pic.o] Error 1
*** TOUCHING ALL CYTHON (.pyx) FILES ***
gcc -o src/interrupt.pic.o -c -fPIC
-I/export/home/drkirkby/sage-4.4.2/local/include
-I/export/home/drkirkby/sage-4.4.2/local/include/python2.6
-I/export/home/drkirkby/sage-4.4.2/local/include/NTL -Iinclude
src/interrupt.c
In file included from
/export/home/drkirkby/sage-4.4.2/local/include/python2.6/Python.h:58,
from include/stdsage.h:35,
from src/interrupt.c:12:
/export/home/drkirkby/sage-4.4.2/local/include/python2.6/pyport.h:685:2:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
scons: *** [src/interrupt.pic.o] Error 1
Building Sage on Solaris in 64-bit mode
Creating SAGE_LOCAL/lib/sage-64.txt since it does not exist
Detected SAGE64 flag
Building Sage on Solaris in 64-bit mode
----------------------------------------------------------
sage: Building and installing modified Sage library files.
Installing c_lib
gcc -o src/interrupt.pic.o -c -fPIC
-I/export/home/drkirkby/sage-4.4.2/local/include
-I/export/home/drkirkby/sage-4.4.2/local/include/python2.6
-I/export/home/drkirkby/sage-4.4.2/local/include/NTL -Iinclude
src/interrupt.c
In file included from
/export/home/drkirkby/sage-4.4.2/local/include/python2.6/Python.h:58,
from include/stdsage.h:35,
from src/interrupt.c:12:
/export/home/drkirkby/sage-4.4.2/local/include/python2.6/pyport.h:685:2:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
scons: *** [src/interrupt.pic.o] Error 1
ERROR: There was an error building c_lib.
ERROR installing SAGE
real 0m4.020s
user 0m1.014s
sys 0m2.138s
sage: An error occurred while installing sage-4.4.2
}}}
== Likely cause ==
It looks as though the -m64 option is not getting through to the library.
Since that uses SCons to build, and I don't understand SCons (and very few
people seem to), this could be a pig to fix.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9097>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.