On Thu, Jan 10, 2013 at 1:41 AM, Mojca Miklavec
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.
The code now initialises properly and only breaks much later on at
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 ? -- luigi