On Thu, Jan 3, 2013 at 3:11 PM, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
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

ah ok, cross compiling from mac to mac. 
 
> 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 ;) ;) ;)

lilypond.org/gub has a  i686-apple-darwin8-gcc cross-compiler from linux intel to mac intel and the --arch switch works.
I've already  used it to cross compile  luatex from linux to mac  i386 (it was more that an year ago, maybe I've also sent to you a binary iirc).


 
> 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 ...)

ok, both deleted.


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

hm strange, on  my vm suse 32bit it was ok (latest distro). I will check again.
Can you check with what happen with
$>cd buildjit/libs/luajit
$>make
?


Exactly the same happens on Sparc Solaris.

see before.
 
I don't know if it's the case, but
 LuaJIT has vm written in assembly.
I don't expect that it will work on every platform as Luatex.

--
luigi