Sage fails to build under Darwin 10 (Mac OS X "Snow Leopard") because of a few small bugs in several of the packages. Here are the fixes, sorry if someone has posted these before, but it would be nice if the 3.4.1 tarball built out of the box :)
It still won't finish building, but the remaining issues are more in- depth (if you want to actually fix them – you can hack around them by editing system headers) and they are probably solved in later python releases, so I might leave them alone and wait for someone to update the included python if there are plans to do so soon. If not, tell me, and I can hack something together by Wednesday. I thought I'd post what I have, so here it is: 1) readline has issues detecting the OS. This is a known problem and was fixed a while ago, but sage uses an old version. Here's a simple fix (assuming you're in the sage-3.4.1 directory): cd spkg/standard tar xf readline-5.2.p6.spkg cd readline-5.2.p6 sed -i "" -e "s/== '9'/-ge '9'/g" spkg-install cd .. rm readline-5.2.p6.spkg tar cjf readline-5.2.p6.spkg readline-5.2.p6 rm -rf readline-5.2.p6 2) GMP's config.guess fails to run its piece of assembly code to auto- detect the CPU type because of some architectural issues (I think cc is trying to link a multi-architecture object against a single architecture object, failing silently, and declaring the CPU 32-bit only). Again, from the sage-3.4.1 directory: cd spkg/standard tar xf gmp-mpir-1.1.spkg patch -p0 --- gmp-mpir-1.1/src/config.guess +++ gmp-mpir-1.1/src/config.guess @@ -735,7 +735,7 @@ } EOF - if ($CC_FOR_BUILD ${dummy}1.s ${dummy}2.c -o $dummy) >/dev/null 2>&1; then + if ($CC_FOR_BUILD -arch i386 ${dummy}1.s ${dummy}2.c -o $dummy) >/ dev/null 2>&1; then # On 80386 and early 80486 cpuid is not available and will result in a # SIGILL message, hence 2>/dev/null. # ^D rm gmp-mpir-1.1.spkg tar cjf gmp-mpir-1.1.spkg gmp-mpir-1.1 rm -rf gmp-mpir-1.1 3) -Wno-long-double isn't an option in Snow Leopard's cc. cd spkg/standard tar xf python-2.5.2.p9.spkg sed -i "" -e "s/-Wno-long-double//g" python-2.5.2.p9/src/configure rm python-2.5.2.p9.spkg tar cjf python-2.5.2.p9.spkg python-2.5.2.p9 rm -rf python-2.5.2.p9 --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---