#9042: Cython fails to build on OpenSolaris x64
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.4.3
Component: solaris | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Changes (by robertwb):
* status: needs_work => needs_review
Comment:
New package posted (same place). FYI
{{{
# HG changeset patch
# User Robert Bradshaw <[email protected]>
# Date 1274775281 25200
# Node ID 9be0b02f70c56491e84f45c2dd113f267c6c4ed6
# Parent 241ae2ebd744e682efb62a11effceb1f7f0e2bb2
The -m64 flag is needed in OPT to build distutils extensions.
diff -r 241ae2ebd744 -r 9be0b02f70c5 spkg-install
--- a/spkg-install Thu Mar 04 18:25:19 2010 -0800
+++ b/spkg-install Tue May 25 01:14:41 2010 -0700
@@ -147,7 +147,7 @@
elif [ `uname` = "SunOS" ]; then
if [ "x$SAGE64" = xyes ]; then
echo "64 bit Open Solaris build enabled"
- OPT="-g -O3 -Wall -Wstrict-prototypes"; export OPT
+ OPT="-g -O3 -m64 -Wall -Wstrict-prototypes"; export OPT
./configure $EXTRAFLAGS --prefix="$SAGE_LOCAL" \
--enable-unicode=ucs4 --with-gcc="gcc -m64"
else
}}}
and
{{{
# HG changeset patch
# User Robert Bradshaw <[email protected]>
# Date 1274775421 25200
# Node ID 81a7be63099e031ff2c0bbe4fb20f4f4f8988e0b
# Parent 9be0b02f70c56491e84f45c2dd113f267c6c4ed6
Make sure distutils builtin modules work before trying hashlib.
diff -r 9be0b02f70c5 -r 81a7be63099e spkg-install
--- a/spkg-install Tue May 25 01:14:41 2010 -0700
+++ b/spkg-install Tue May 25 01:17:01 2010 -0700
@@ -208,6 +208,16 @@
echo "Sleeping for three seconds before testing python"
sleep 3
+# Make sure extension modules were built correctly.
+python -c "import math"
+
+if [ $? -eq 0 -a -f "$SAGE_LOCAL/bin/python" ]; then
+ echo "math module OK"
+else
+ echo "math module failed to import"
+ exit 1
+fi
+
# Make sure sufficient crypto support is available in the built python.
# This is critical.
python -c "import hashlib"
}}}
are the changes.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9042#comment:6>
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.