On Thu, Jan 10, 2013 at 1:51 AM, luigi scarso wrote:
On Thu, Jan 10, 2013 at 1:41 AM, Mojca Miklavec wrote:
On Thu, Jan 10, 2013 at 12:55 AM, Mojca Miklavec wrote: I have found a partial solution:
Following these instructions:
#elif LJ_TARGET_OSX || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
/* OSX and FreeBSD mmap() use a naive first-fit linear search. ** That's perfect for us. Except that -pagezero_size must be set for OSX, ** otherwise the lower 4GB are blocked. And the 32GB RLIMIT_DATA needs ** to be reduced to 250MB on FreeBSD. */
export LDFLAGS=" -pagezero_size 10000 -image_base 100000000" ./buildjit.sh --debug I suggest to build the stock luajit , (see http://lua-users.org/lists/lua-l/2012-03/msg00756.html ) if it works than it's a problem of luajittex, otherwise of luajit.
I don't know how to properly test luajit. Simple lua scripts run fine. I suspect that it's really about missing LDFLAGS in LuaJITTeX (or about changing the code upstream in such a way that those flags wouldn't be required ;).
luajittex --luaonly "/Users/ConTeXt/tex/texmf-osx-64/bin/mtxrun" --script context a.tex
mtx-context | run 1: luatex --fmt="/Users/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luajittex/cont-en" --jobname="a" --lua="/Users/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luajittex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./a.tex" --c:input="./a.tex" --c:kindofrun=1 "cont-yes.mkiv" This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) ^^^^^^^^^^^^^^^ Why LuaTeX ?
I'm sorry and thanks for pointing it out. My bad. I only copy-pasted part of the command (starting with "luajittex") for debugging purposes. I now tried again with "context a.tex" and it seems to work properly. So it seems that export LDFLAGS=" -pagezero_size 10000 -image_base 100000000" solves the problem completely, at least on hello-world documents. But those two flags should probably be added by default then? Mojca