On Thu, Jan 3, 2013 at 2:41 PM, luigi scarso wrote:
On Thu, Jan 3, 2013 at 2:30 PM, Mojca Miklavec wrote:
I'm trying to compile luajittex on Mac OS X, but it fails with
Your make is a GNU-make; I will use that building for MacOs not supported
Any suggestions? ;)
how do you run build.sh ?
For example to get Darwin PowerPC binaries on x86_64 or i386 processor (running Mac OS X): ./build[jit].sh --arch=ppc Of course it is also possible to export the zillions of flags outside of the building script, but ...
MACCROSS sounds to me like cross-compiling from linux to mac, which is not supported
Where do you see any mention of linux??? It's just cross-compiling from one Mac OS X architecture to the other. Also, the flag "--arch=i386" on linux doesn't even remotely imply that the script should be compiling for Mac OS X ;) ;) ;)
Patrick said that it compiles under
Darwin vienna.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
It compiles on x86_64 FreeBSD and Mac OS X for me as well (on Lion), but I cannot "magically compile" for another architecture without deleting those two lines. (But I could still supply a dozen of flags. Maybe that is what I should do at the end anyway ...) On Hans' machine (an old SuSE Linux) it fails with the following error though: make[2]: Leaving directory `/home/me/build-binaries/src/luajittex/buildjit/texk/kpathsea/man' make[1]: Leaving directory `/home/me/build-binaries/src/luajittex/buildjit/texk/kpathsea' make: *** No rule to make target `/home/me/build-binaries/src/luajittex/buildjit/libs/luajit/luajit-build/src/libluajit.a', needed by `libluasocket_a-auxiliar.o'. Stop. strip: buildjit/texk/web2c/luatex: No such file or directory mv: cannot stat `buildjit/texk/web2c/luatex': No such file or directory ls: buildjit/texk/web2c/luajittex: No such file or directory Exactly the same happens on Sparc Solaris. I also experienced an error with ./bin_commit.sh: line 47: return: do_cmd: numeric argument required ./bin_commit.sh: line 47: return: do_cmd: numeric argument required but that is my own syntax(?) error and I didn't yet figure out what exactly is wrong. The easiest solution is to comment out adding the symlinks, but it will be better to find the proper solution, so if anyone has a clue, please feel free to suggest the cure :) create_symlink() { binary="$1" link="$2" if [ ! -f "$link" ]; then return do_cmd "create symlink" ln -s "$binary" "$link" # problematic line fi return 0 } Apart from that you are all welcome to try out building the binaries. Mojca