New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS X 10.7 Lion: Maxima fails to build #11966
Comments
comment:1
My first guess about a way to solve this problem was to add the two lines
to the top of the file |
Dependencies: 11884 |
comment:2
Here's an spkg with the patch. This built fine for me on OS X 10.7.2 (taking 23 minutes). http://sage.math.washington.edu/home/wstein/patches/maxima-5.23.2.p1.spkg |
This comment has been minimized.
This comment has been minimized.
comment:3
I realize that Sage doesn't start yet (#11967). But can you try
and see if the Maxima standalone binary works fine? If not, we have problems, but presumably it will. |
Author: William Stein |
Changed dependencies from 11884 to #11884 |
comment:5
Should we apply the patch on all platforms? (Which the spkg currently does.) |
comment:6
Replying to @nexttime:
Good question, which I wondered about. It seems to work on other platforms, and logically it makes sense to me that it should be the right thing to do. However, I'm not very knowledgable about the subtleties of lisp compilation. |
Milestone sage-4.7.3 deleted |
comment:8
Replying to @williamstein:
The patch seems to be necessary (when building with the new ECL from git / #11884) on other platforms as well. |
comment:9
FWIW, I made a "reviewer" p2 spkg with some fixes to / clean-up of $ ./sage -t -long devel/sage/sage/interfaces/maxima*
sage -t -long "devel/sage/sage/interfaces/maxima.py"
...
sage -t -long "devel/sage/sage/interfaces/maxima_lib.py"
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libcsage.so(print_backtrace+0x31)[0x7f000546c817]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libcsage.so(sigdie+0x14)[0x7f000546c849]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libcsage.so(sage_signal_handler+0x20e)[0x7f000546c474]
/lib/libpthread.so.0(+0xf8f0)[0x7f00070ab8f0]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libgc.so.1(GC_free+0x40)[0x7effd69d1a50]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libecl.so.11.1(ecl_dealloc+0x16)[0x7effd6e3c786]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/python/site-packages/sage/misc/randstate.so(+0x38a8)[0x7f00036268a8]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/python/site-packages/sage/misc/randstate.so(+0x6fd2)[0x7f0003629fd2]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/python/site-packages/sage/misc/randstate.so(+0x7439)[0x7f000362a439]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4dca)[0x7f00073a0e1a]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x888)[0x7f00073a2948]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4ba4)[0x7f00073a0bf4]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x888)[0x7f00073a2948]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(+0x71c2b)[0x7f000732ac2b]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyObject_Call+0x52)[0x7f00073011a2]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(+0x5a8bd)[0x7f00073138bd]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyObject_Call+0x52)[0x7f00073011a2]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x464c)[0x7f00073a069c]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x888)[0x7f00073a2948]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4ba4)[0x7f00073a0bf4]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x888)[0x7f00073a2948]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4ba4)[0x7f00073a0bf4]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x888)[0x7f00073a2948]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4ba4)[0x7f00073a0bf4]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x888)[0x7f00073a2948]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyEval_EvalCode+0x32)[0x7f00073a2a22]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyRun_FileExFlags+0xb0)[0x7f00073c45a0]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(PyRun_SimpleFileExFlags+0x1ff)[0x7f00073c504f]
/home/leif/Sage/sage-4.7.2.rc0-gcc-4.5.1/local/lib/libpython2.6.so.1.0(Py_Main+0xb2c)[0x7f00073d3d3c]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f00066adc4d]
python[0x400619]
------------------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off(). You might
want to run Sage under gdb with 'sage -gdb' to debug this.
Sage will now terminate.
------------------------------------------------------------------------
Segmentation fault
[3.4 s]
----------------------------------------------------------------------
The following tests failed:
sage -t -long "devel/sage/sage/interfaces/maxima.py"
sage -t -long "devel/sage/sage/interfaces/maxima_abstract.py"
sage -t -long "devel/sage/sage/interfaces/maxima_lib.py" I think that's most probably "just" due to ECL (or Boehm GC?), i.e. #11884, so I could otherwise give this ticket a positive review... ;-) Anyway, someone would have to look at my reviewer changes. Btw., there's an $ du -sch /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/{es,pt}*
9.9M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/es
7.3M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/es.utf8
8.2M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/pt
8.8M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/pt_BR
6.5M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/pt_BR.utf8
6.0M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/pt.utf8
47M total |
Reviewer: Leif Leonhardy |
Attachment: maxima-5.23.2.p1-p2.diff.gz Diff between William's p1 and my p2. For reference / review. |
This comment has been minimized.
This comment has been minimized.
comment:11
Replying to @nexttime:
Oooops, one should perhaps run $ ./sage -t -long devel/sage/sage/interfaces/maxima*
sage -t -long "devel/sage/sage/interfaces/maxima.py"
[25.7 s]
sage -t -long "devel/sage/sage/interfaces/maxima_abstract.py"
[38.4 s]
sage -t -long "devel/sage/sage/interfaces/maxima_lib.py"
[5.2 s]
----------------------------------------------------------------------
All tests passed! By the way, the new ECL + patched Maxima spkgs work with both the boehm_gc-7.2.alpha6.p0 (from #11883) and the boehm_gc-7.1.p7 spkg.
That still applies.
$ du -sch /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/{es,pt}*
9.9M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/es
7.3M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/es.utf8
8.2M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/pt
8.8M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/pt_BR
6.5M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/pt_BR.utf8
6.0M /home/leif/Sage/spkgs/maxima-5.23.2.p2/src/doc/info/pt.utf8
47M total If nobody objects, I can make a stripped spkg with these files removed (and The relevant languages are Portuguese (Portugal and Brazil) and Spanish: #!/usr/bin/env python
import os, sys, time
def cmd(x):
print x
if os.system(x):
print "(Failed.)"
for X in ['es', 'es.utf8', 'pt', 'pt.utf8', 'pt_BR', 'pt_BR.utf8']:
cmd('rm -rf "src/doc/info/%s/"*'%X)
open('src/doc/info/%s/Makefile.in'%X,'w').write('all:\n\tls\n\n') |
This comment has been minimized.
This comment has been minimized.
comment:13
Both spkgs (new ECL and Maxima 5.23.2.p2) also build on Solaris SPARC (32-bit mode), and all long tests pass in
|
comment:14
Replying to @nexttime:
On Ubuntu 10.04.3 I get:
(Although I'm not that sure how clean the installation is, but IIRC the last |
comment:15
Replying to @nexttime:
Weird. After building Sage 4.7.2 (final) from scratch with the two spkgs, all tests (
|
comment:16
By the way, have you tried using this spkg without the ECL spkg from #11884? It worked for me (with a build from scratch) on sage.math, hawk (OpenSolaris) and various skynet machines (cleo, eno, silius, taurus; tests passed on all of these except for silius, which has other problems, and cleo, because it hasn't made it that far yet, but it's about 90% done and all tests have passed so far). I'm also building on mark2 (Solaris), but it is really slow; the maxima build just completed successfully. Maybe some time tomorrow we'll know about doctests there... I wonder if we should remove the dependency on #11884. |
Changed dependencies from #11884 to none |
comment:17
Replying to @jhpalmieri:
Nope, since it would be surprising if it did not work... :-)
Breaking the cycle... |
comment:18
I've built this on a bunch of different systems, both with and without the new ecl spkg at #11884. I'm giving it (Leif's changes, in particular) a positive review. |
Changed reviewer from Leif Leonhardy to Leif Leonhardy, John Palmieri |
Merged: sage-4.8.alpha2 |
comment:20
So, somewhat weirdly, since this was tested a lot on various platforms, with #11884 and this spkg, I get an error on PPC OS X 10.4. Error is
This error looks a LOT like the error in #11884 on the same platform. |
comment:21
And yes, this is after using the correct spkg on #11884. |
comment:22
Incidentally, the binary works fine from the command line; it's just the library that failed to install. |
comment:23
Important question: does it make sense to merge this without merging the new ECL package (#11884) also? |
comment:26
I tested this on a number of systems (not OS X 10.4 PPC, though) without the new ECL package, and it worked just fine. So except for testing on OS X 10.4 PPC, I think it makes sense to merge it independently of ECL. |
comment:27
And it builds fine with or without #11884 on that platform, and Maxima works, though I didn't run the testsuite - it takes so long to build, and maxima.py times out always :) And I think Jeroen has tested it on PPC OS X 10.4. |
comment:28
I am planning to start testing a tentative sage-4.8.alpha2 tomorrow, which includes this ticket. So if all goes well, the new Maxima will be merged in sage-4.8.alpha2 without the new ECL. For ECL, we have to see what upstream says... |
(The home base for this ticket is the Lion ticket #11881.)
See the discussion at #11884. To fix this we may need to slightly modify the Maxima spkg, at least for now.
New spkg: http://sage.math.washington.edu/home/leif/Sage/spkgs/maxima-5.23.2.p2.spkg
md5sum:
f87e697e9497ccf69a91ae77c9b5a591
maxima-5.23.2.p2 (Leif Leonhardy, November 3rd 2011)
Actually the new patch isn't specific to MacOS X 10.7 / Lion,
but necessary when building with the new ECL version from git
(ecl-11.1.2.git.20111030.spkg, see Fix ECL so it builds on OS X Lion #11884).
spkg-install
.maxima-5.23.2.p1 (William Stein, 31 October 2011)
CC: @nexttime
Component: porting
Author: William Stein
Reviewer: Leif Leonhardy, John Palmieri
Merged: sage-4.8.alpha2
Issue created by migration from https://trac.sagemath.org/ticket/11966
The text was updated successfully, but these errors were encountered: