#7095: os x 10.6 port -- numerous mysterious errors caused by weird "abort trap"
issue
-----------------------+----------------------------------------------------
Reporter: was | Owner: tbd
Type: defect | Status: needs_work
Priority: blocker | Milestone: sage-4.3.1
Component: porting | Keywords:
Work_issues: | Author: Craig Citro, John Palmieri, Francis
Clarke, William Stein
Upstream: N/A | Reviewer: David Kirkby
Merged: |
-----------------------+----------------------------------------------------
Changes (by GeorgSWeber):
* status: positive_review => needs_work
Comment:
Good work so far, but it seems that at least the numpy spkg also needs to
be updated, e.g. by adding the lines:
{{{
if [ `uname` = "Darwin" ]; then
# set MACOSX_DEPLOYMENT_TARGET -- if set incorrectly, this can
# cause lots of random "Abort trap" issues on OSX. see trac
# #7095 for an example.
MACOSX_VERSION=`uname -r | awk -F. '{print $1}'`
MACOSX_DEPLOYMENT_TARGET=10.$[$MACOSX_VERSION-4]
export MACOSX_DEPLOYMENT_TARGET
fi
}}}
from the python spkg-install also to the numpy spg-install.
More precisely, on my MacIntel with OS X 10.4, I just tried to build
sage-4.3.1.rc0 from scratch, with only the two new spkgs from this ticket
thrown in. The build choked on numpy with:
{{{
...
gcc -L/Users/Shared/sage/test/sage-4.3.1.rc0_7095/sage-4.3.1.rc0/local/lib
-bundle -undefined dynamic_lookup
build/temp.macosx-10.4-i386-2.6/numpy/random/mtrand/mtrand.o
build/temp.macosx-10.4-i386-2.6/numpy/random/mtrand/randomkit.o
build/temp.macosx-10.4-i386-2.6/numpy/random/mtrand/initarray.o
build/temp.macosx-10.4-i386-2.6/numpy/random/mtrand/distributions.o
-Lbuild/temp.macosx-10.4-i386-2.6 -o
build/lib.macosx-10.4-i386-2.6/numpy/random/mtrand.so
running scons
running build_scripts
creating build/scripts.macosx-10.4-i386-2.6
Creating build/scripts.macosx-10.4-i386-2.6/f2py
adding 'build/scripts.macosx-10.4-i386-2.6/f2py' to scripts
changing mode of build/scripts.macosx-10.4-i386-2.6/f2py from 644 to 755
error: Can't install when cross-compiling
Error building numpy.
real 1m5.507s
user 0m55.447s
sys 0m5.804s
sage: An error occurred while installing numpy-1.3.0.p2
...
}}}
But after setting "export MACOSX_DEPLOYMENT_TARGET=10.4" manually on the
command line, then issuing another "make", the build would run OK for
numpy and continue (not finished yet, currently at the singular spkg).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7095#comment:49>
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.