Differences between revisions 1 and 70 (spanning 69 versions)
Revision 1 as of 2007-11-22 05:02:41
Size: 1587
Editor: was
Comment:
Revision 70 as of 2009-04-21 23:24:14
Size: 2233
Comment: add build instructions, known problems
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 * export CFLAGS="-arch x86_64" 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 5: Line 5:
 * building python {{{
For some pointers on how to get python to build in 64 bit mode see
 * [[/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 9:
http://mail.python.org/pipermail/pythonmac-sig/2007-June/019045.html 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 10: Line 11:
To quote (which is actually about 64 bit on *Tiger*): == Build Instructions ==
Line 12: Line 13:
<quote>
The build is universal, but for me only one of the two archictures
actually worked: I did my build on an Intel system and the 64-bit
build worked on that machine, but didn't work on a G5 mac. That's
probably something shallow, but as that machine doesn't have the
Xcode installed and is on the other side of a slow network connection
I haven't tried to debug this yet.
The fortran.spkg shipped with Sage does not work. So, unpack the sources, delete the fortan spkg and drop in
Line 20: Line 15:
1) Edit the configure script, look for "-arch i386" and "-arch ppc"
and change that those to "-arch ppc64" and "-arch x86_64". You'll
have to make multiple changes to the configure file.
 http://sage.math.washington.edu/home/mabshoff/spkgs/fortran-OSX64-20090120.spkg
Line 24: Line 17:
2) Build using: Then:
Line 26: Line 19:
       $ mkdir build
       $ cd build
       $ CFLAGS="-arch ppc64 -arch x86_64" ../configure \
           --enable-universalsdk \
           --disable-toolbox-glue --prefix=/opt/python25-64bit
       $ make
       $ make install
 * export SAGE64=yes
 * make
Line 34: Line 22:
3) Optionally: run "make testall" to run the unittests and check
pyconfig.h to check the various SIZEOF definitions.
== Known Problems ==
Line 37: Line 24:
You now have a 64-bit build of python in /opt/python25-64bit.
}}}
 * Sage 3.4: segfaults at startup due to libSingular problems (it is basically the same segfault that happened on exit in Sage 3.3)
 * 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
Line 40: Line 29:
== spkg status ==
Line 41: Line 31:
 * Cython {{{ 20:58 < mabshoff> There is also a bug in the way Cython builds its extensions.
20:58 < mabshoff> It needs to use the flags python was build with, not some random stuff people thing
20:58 < mabshoff> think is good.
20:58 < mabshoff> I told Robert about it.
}}}
All of the fixes below are in Sage 3.3.alpha3 or later.

=== spkgs with solution ===

 * f2c: #3185
 * tachyon: #3227
 * flintqs: #3229
 * zn_poly: #3199

=== Done (incomplete list) ===

A list of spkgs with trac ticker numbers in case the fix was recorded.

 * eclib: #3173
 * flint-1.06: #3174
 * zlib: #3175
 * gd: #1621
 * gdmodule: #3180
 * singular: #3194
 * polybori: #3195
 * 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
 * mpfi
 * prereq: #3172
 * termcap: #3171
 * readline: #3170
 * sqlite: #3176
 * python: #3177
 * libpng: #3179
 * freetype: #3178
 * iml: #3181
 * givaro: #3182 [additional LDFLAGS work]
 * linbox: #3183
 * numpy: #3186
 * matplotlib: #3187
 * mpfi: #3188
 * pycrypto: #3189
 * zodb: #3190
 * quaddouble: #3191
 * python_gnutls: #3192
 * libm4fri: #3197
 * ecm: #3198
 * lcalc: #3224:
 * cddlib: #3225
 * gfan: #3226
 * r: #3196
 * twisted: #3193 [the problem previously mentioned are fixed in an updated python.spkg at #3318]

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:

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: segfaults at startup due to libSingular problems (it is basically the same segfault that happened on exit in Sage 3.3)
  • 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

spkg status

All of the fixes below are in Sage 3.3.alpha3 or later.

spkgs with solution

  • f2c: #3185
  • tachyon: #3227
  • flintqs: #3229
  • zn_poly: #3199

Done (incomplete list)

A list of spkgs with trac ticker numbers in case the fix was recorded.

  • eclib: #3173
  • flint-1.06: #3174
  • zlib: #3175
  • gd: #1621
  • gdmodule: #3180
  • singular: #3194
  • polybori: #3195
  • 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
  • mpfi
  • prereq: #3172
  • termcap: #3171
  • readline: #3170
  • sqlite: #3176
  • python: #3177
  • libpng: #3179
  • freetype: #3178
  • iml: #3181
  • givaro: #3182 [additional LDFLAGS work]
  • linbox: #3183
  • numpy: #3186
  • matplotlib: #3187
  • mpfi: #3188
  • pycrypto: #3189
  • zodb: #3190
  • quaddouble: #3191
  • python_gnutls: #3192
  • libm4fri: #3197
  • ecm: #3198
  • lcalc: #3224:
  • cddlib: #3225
  • gfan: #3226
  • r: #3196
  • twisted: #3193 [the problem previously mentioned are fixed in an updated python.spkg at #3318]