Building luajit-2.0.2 on x32

  • From: Bertrand Jacquin <beber@xxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 24 Jan 2014 01:42:09 +0100

Hi,

luajit-2.0.2 does not build on x32 ARCH [1][2] (don't confuse with x86).

  make -j1 Q= PREFIX=/usr DESTDIR=/var/tmp/portage/dev-lang/luajit-2.0.2/image/ 
HOST_CC=x86_64-pc-linux-gnux32-gcc STATIC_CC=x86_64-pc-linux-gnux32-gcc 
'DYNAMIC_CC=x86_64-pc-linux-gnux32-gcc -fPIC' 
TARGET_LD=x86_64-pc-linux-gnux32-gcc 'TARGET_AR=x86_64-pc-linux-gnux32-ar rcus' 
TARGET_STRIP=true 
INSTALL_LIB=/var/tmp/portage/dev-lang/luajit-2.0.2/image/usr/libx32 XCFLAGS=
  ...
        HOSTLINK  host/buildvm
        x86_64-pc-linux-gnux32-gcc  -Wl,-O1 -Wl,--as-needed   -o host/buildvm 
host/buildvm.o host/buildvm_asm.o host/buildvm_peobj.o host/buildvm_lib.o 
host/buildvm_fold.o   
        BUILDVM   lj_vm.s
        host/buildvm -m elfasm -o lj_vm.s
        Error: pointer size mismatch in cross-build.
        Try: make HOST_CC="gcc -m32" CROSS=...

        Makefile:606: recipe for target 'lj_vm.s' failed
        make[1]: *** [lj_vm.s] Error 1

host/buildvm report it is a cross-build but is not, the full system here
is x32 (multilib with amd64).

Any plan to support x32 in the long list of supported architecture ?

Report have originally be done on Gentoo bug tracker [3].

Thanks

[1]: http://en.wikipedia.org/wiki/X32_ABI
[2]: https://sites.google.com/site/x32abi/
[3]: https://bugs.gentoo.org/show_bug.cgi?id=498784

-- 
Beber

Other related posts: