#1547 maxima-5.17.1 ensure_space fails


I "only" have 4 GiB of RAM, so when I try to compile, it can't allocate 8 GiB. Compilation summary below. SBCL 1.0.14-gentoo.

SBCL enabled. Executable name: "sbcl"
default lisp: sbcl
wish executable name: "none"
make -j3 --jobs=4 --load-average=4
Making all in src
make[1]: Entering directory `/var/tmp/portage/sci-mathematics/maxima-5.17.1/work/maxima-5.17.1/src'
test -d binary-sbcl || mkdir binary-sbcl
sbcl --noinform --noprint --eval '(progn (load "../lisp-utils/defsystem.lisp") (load "../lisp-utils/make-depends.lisp") (funcall (intern "CREATE-DEPENDENCY-FILE" :mk) "binary-sbcl/maxima.core" "sbcl-depends.mk") (sb-ext:quit))'
mmap: Cannot allocate memory
ensure_space: failed to validate 8589869056 bytes at 0x1000000000
(hint: Try "ulimit -a"; maybe you should increase memory limits.)
make[1]: *** [sbcl-depends.mk] Error 1
make[1]: Leaving directory `/var/tmp/portage/sci-mathematics/maxima-5.17.1/work/maxima-5.17.1/src'
make: *** [all-recursive] Error 1


  • Raymond Toy

    Raymond Toy - 2008-12-22

    Does sbcl run by itself, without trying to build maxima?

    This error appears to be a problem with sbcl on Gentoo and not maxima.

  • Robert Dodier

    Robert Dodier - 2008-12-25

    I get the same error on my Fedora system.

    echo 0 > /proc/sys/kernel/exec-shield

    causes Linux to allow SBCL to run. You might have to do something different on Gentoo.

    The problem has something to do with the way SBCL wants to use memory. In the good/bad old days, you could allocate a big chunk of memory and do whatever you wanted in there. I guess there are more restrictions now, in particular, executing code in data areas is prohibited. I don't know exactly what SBCL is doing to trigger the error.

    The error message is misleading; the problem almost certainly cannot be resolved by ulimit.

    A random webpage I found about this problem: http://briancarper.net/2008/01/26/sbcl-on-debian-sucks/

    Closing this report as "won't fix" since it is not a problem in Maxima.

  • Robert Dodier

    Robert Dodier - 2008-12-25
    • status: open --> closed
  • Scott McMurray

    Scott McMurray - 2008-12-25

    You're right, sbcl doesn't run at all.

    I found the problem, though; I had over-commit memory at 2, rather than 0.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks