5830
Comment: add givaro update ticket
|
1566
add link to Sage 4.0 status page
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
= spkg with open issues/manual workarounds = Sage 3.0.2.alpha1 port to 64 bit OSX: |
This page is about the seemingly endless port of Sage to 64 bit OSX. Here is a list of build notes for various releases: |
Line 6: | Line 5: |
== gmp-4.2.1.p12 == | * [[/sage-4.0|Sage 4.0 notes]] * [[/sage-3.4.2|Sage 3.4.2 notes]] - this is outdated * [[/sage-3.3|Sage 3.3 notes]] - this is outdated * [[/sage-3.2.3|Sage 3.2.3 notes]] - this is outdated * [[/sage-3.0.2|Sage 3.0.2 notes]] - this is outdated |
Line 8: | Line 11: |
{{{ broken, need to update to 4.2.2, skip patching add ABI=64, otherwise set ABI=32 Maybe: Our gmp 4.2.1 is FUBAR, i.e. Cygwin problems Important: add {{{extern __inline__ gmp-h.in}}} fix for Darwin }}} |
Note that it is possible to get Sage working to some extend, but it would be nice to get this port done once and for all. The main problem is for Sage to pass all of its doctests. |
Line 15: | Line 13: |
== fortran-20071120.p3 == | == Build Instructions == |
Line 17: | Line 15: |
gfortran: need 64 bit run time and compiler - special build on bsd in gfortran-4.2.2/dist | The fortran.spkg shipped with Sage does not work. So, unpack the sources, delete the fortan spkg and drop in |
Line 19: | Line 17: |
* copy {{{~/gfortran-4.2.2/dist}}} into {{{$SAGE_LOCAL}}} * extend {{{DYLD_LIBRARY_PATH=local/lib/x86_64/:$DYLD_LIBRARY_PATH}}} * Add "-m64" to sage_fortran options, link x86_64 libgfortran.dylib * rm {{{$SAGE_LOCAL/lib/libssp*, $SAGE_LOCAL/lib/libssp*, $SAGE_LOCAL/lib/libgfortran.2*}}} |
http://sage.math.washington.edu/home/mabshoff/spkgs/fortran-OSX64-20090120.spkg |
Line 24: | Line 19: |
== spkgs with solution == | Then: |
Line 26: | Line 21: |
* prereq: #3172 * termcap: #3171 * readline: #3170 * eclib: #3173 * flint-1.06: #3174 * zlib: #3175 * sqlite: #3176 * python: #3177 * libpng: #3179 * freetype: #3178 * gd: #1621 * gdmodule: #3180 * iml: #3181 * givaro: #3182 [additional LDFLAGS work] |
* export SAGE64=yes * make |
Line 41: | Line 24: |
== ToDo == | == Known Problems == |
Line 43: | Line 26: |
== linbox-20070915.p3 == {{{ if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then echo "64 bit MacIntel" CFLAGS="-O2 -g -m64 "; export CFLAGS CXXFLAGS="-O2 -g -m64 "; export CXXFLAGS CPPFLAGS="-O2 -g -m64 "; export CPPFLAGS fi }}} |
* Sage 3.4.2: Builds out of the box, but needs various patches to start up and pass all but one doctest - see [[/sage-3.4.2|Sage 3.4.2 notes]]. * Sage 3.4.1: * FLINT.spkg fails to build due to buglet in spkg-check. A fix is at #5817 * segfaults at startup due to libSingular problems - same issue as above. Relevant ticket: #5839. This ticket does not fix the problem, but exposes other race conditions in the dealloc code in libSingular on x86-64, i.e. sage.math * Sage 3.4: segfaults at startup due to libSingular problems (it is basically the same segfault that happened on exit in Sage 3.3) |
Line 53: | Line 32: |
== f2c-20070816 == | == spkg status == |
Line 55: | Line 34: |
uncomment "CFLAGS = -O" in f2c/makefile uncomment "CFLAGS = -O -fPIC" in libf2c/makefile {{{ if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then echo "64 bit MacIntel" CFLAGS="-O2 -g -m64 " else CFLAGS="-fPIC" fi }}} Dual architecture static lib is created, but f2c works == mpfi == {{{ if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then echo "64 bit MacIntel" CFLAGS="-O2 -g -m64 "; export CFLAGS CXXFLAGS="-O2 -g -m64 "; export CXXFLAGS CPPFLAGS="-O2 -g -m64 "; export CPPFLAGS fi }}} == quaddouble-2.2.p7 == {{{ CXXFLAGS='-fPIC -O3 -Dx86 -m64' export CXXFLAGS }}} == twisted-2.5.0.p8 == depends on pymactoolbox.h? {{{ gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -m64 -I/Users/mabshoff/sage-2.10.alpha2/local/include/python2.5 -c twisted/internet/cfsupport/cfsupport.c -o build/temp.macosx-10.3-i386-2.5/twisted/internet/cfsupport/cfsupport.o -w In file included from twisted/internet/cfsupport/cfsupport.c:8: /Users/mabshoff/sage-2.10.alpha2/local/include/python2.5/pymactoolbox.h:138: error: syntax error before ‘Track’ /Users/mabshoff/sage-2.10.alpha2/local/include/python2.5/pymactoolbox.h:140: error: syntax error before ‘Movie’ /Users/mabshoff/sage-2.10.alpha2/local/include/python2.5/pymactoolbox.h:142: error: syntax error before ‘MovieController’ /Users/mabshoff/sage-2.10.alpha2/local/include/python2.5/pymactoolbox.h:146: error: syntax error before ‘UserData’ /Users/mabshoff/sage-2.10.alpha2/local/include/python2.5/pymactoolbox.h:148: error: syntax error before ‘Media’ error: command 'gcc' failed with exit status 1 Error: Subprocess exited with result 1 for project core Error installing Twisted networking framework real 0m5.832s user 0m1.288s sys 0m0.744s sage: An error occurred while installing twisted-2.5.0.p8 Please email sage-devel http://groups.google.com/group/sage-devel explaining the problem and send the relevant part of of /Users/mabshoff/sage-2.10.alpha2/install.log. Describe your computer, operating system, etc. If you want to try to fix the problem, yourself *don't* just cd to /Users/mabshoff/sage-2.10.alpha2/spkg/build/twisted-2.5.0.p8 and type 'make'. Instead type "/Users/mabshoff/sage-2.10.alpha2/sage -sh" in order to set all environment variables correctly, then cd to /Users/mabshoff/sage-2.10.alpha2/spkg/build/twisted-2.5.0.p8 (When you are done debugging, you can type "exit" to leave the subshell.) make[1]: *** [installed/twisted-2.5.0.p8] Error 1 }}} == singular-3-0-4-1-20071209.p3 == {{{ CXXFLAGS="$CXXFLAGS -fPIC -O3 -g -m64"; export CXXFLAGS CFLAGS="$CFLAGS -fPIC -O3 -g -m64"; export CFLAGS CPPFLAGS="$CXXFLAGS -fPIC -O3 -g -m64"; export CPPFLAGS }}} LDFLAGS? == polybori == {{{ 64 bit MacIntel Starting build... Running build_polybori... scons: Reading SConscript files ... KeyError: 'PYTHONHOME': File "/Users/mabshoff/sage-2.10.alpha2/spkg/standard/polybori-0.1-r6/src/PolyBoRi-0.1/SConstruct", line 105: env=Environment(ENV = {'PATH': os.environ['PATH']}, options=opts,tools = tools, toolpath = '.') File "/Users/mabshoff/sage-2.10.alpha2/local/lib/scons-0.97/SCons/Environment.py", line 779: options.Update(self) File "/Users/mabshoff/sage-2.10.alpha2/local/lib/scons-0.97/SCons/Options/__init__.py", line 145: execfile(filename, values) File "custom.py", line 13: PYPREFIX=os.environ['PYTHONHOME'] File "/Users/mabshoff/sage-2.10.alpha2/local/lib/python2.5/UserDict.py", line 22: raise KeyError(key) Error building PolyBoRi. }}} == sagelib == sage -b: devel/sage/c_lib/SConstruct {{{ ## We want the debug and optimization flags, since debug symbols are so useful, etc. env.Append( CFLAGS="-O2 -g -m64" ) env.Append( CXXFLAGS="-O2 -g -m64" ) }}} == libm4fri == {{{ CFLAGS="$CFLAGS -fPIC $INCLUDES -L$SAGE_LOCAL/lib -m64" CXXFLAGS="$CXXFLAGS -fPIC $INCLUDES -L$SAGE_LOCAL/lib -m64" CPPFLAGS="$INCLUDES -m64" }}} ##################################################################### == numpy, scipy & friends == With Python 2.5.2. compiler with {{{--with-gcc="gcc -m64"}}} numpy builds fine. More investigation is needed here. == Done (incomplete list) == * gsl-1.10 * libfplll * mpfr-2.3.0.p0 * ntl-5.4.2 * symmetrica-2.0.p2 * pari-2.3.3 * libgpg_error * libgcrypt * opencdk * gnutls-1.6.3 |
The following has been moved to a subpage [[/spkgfixes|here]]. |
OSX 64-bit
This page is about the seemingly endless port of Sage to 64 bit OSX. Here is a list of build notes for various releases:
Sage 3.4.2 notes - this is outdated
Sage 3.3 notes - this is outdated
Sage 3.2.3 notes - this is outdated
Sage 3.0.2 notes - this is outdated
Note that it is possible to get Sage working to some extend, but it would be nice to get this port done once and for all. The main problem is for Sage to pass all of its doctests.
Build Instructions
The fortran.spkg shipped with Sage does not work. So, unpack the sources, delete the fortan spkg and drop in
Then:
- export SAGE64=yes
- make
Known Problems
Sage 3.4.2: Builds out of the box, but needs various patches to start up and pass all but one doctest - see Sage 3.4.2 notes.
- Sage 3.4.1:
- FLINT.spkg fails to build due to buglet in spkg-check. A fix is at #5817
- segfaults at startup due to libSingular problems - same issue as above. Relevant ticket: #5839. This ticket does not fix the problem, but exposes other race conditions in the dealloc code in libSingular on x86-64, i.e. sage.math
- Sage 3.4: segfaults at startup due to libSingular problems (it is basically the same segfault that happened on exit in Sage 3.3)
spkg status
The following has been moved to a subpage here.