Created attachment 488294 [details] emerge --info Hello. Cross-emerge fails with the following message: host/minilua ../dynasm/dynasm.lua -D JIT -D FFI -D DUALNUM -D VER=50 -o host/buildvm_arch.h vm_arm.dasc arm-unknown-linux-gnueabi-gcc -O2 -fomit-frame-pointer -Wall -O2 -pipe -fomit-frame-pointer -frecord-gcc-switches -Wimplicit-function-declaration -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U_FORTIFY_SOURCE -DLUA_ROOT=\"/usr\" -DLUA_MULTILIB=\"lib\" -fno-stack-protector -c -o lib_init.o lib_init.c HOSTCC host/buildvm.o x86_64-pc-linux-gnu-gcc -O2 -fomit-frame-pointer -Wall -O2 -pipe -fomit-frame-pointer -frecord-gcc-switches -Wimplicit-function-declaration -I. -DLUAJIT_TARGET=LUAJIT_ARCH_arm -DLJ_ARCH_HASFPU=0 -DLJ_ABI_SOFTFP=1 -c -o host/buildvm.o host/buildvm.c HOSTLINK host/buildvm x86_64-pc-linux-gnu-gcc -Wl,--hash-style=gnu -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=...
Created attachment 488296 [details] arm-unknown-linux-gnueabi-emerge --info
Created attachment 488298 [details] build.log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fab286b0d2af2756716e4ba8d8c9aa569f9c6b4 commit 6fab286b0d2af2756716e4ba8d8c9aa569f9c6b4 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2023-11-04 16:17:15 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2023-11-13 22:13:07 +0000 dev-lang/luajit: Fix cross-compiling from 64-bit to 32-bit This will only work with a multilib build host toolchain, so probably just amd64 and ppc64, but it's better than nothing. Multilib profiles specify an explicit target rather than just -m32 in LDFLAGS, but this should still do the right thing, and there's probably no way to query the build profile. Closes: https://bugs.gentoo.org/627332 Signed-off-by: James Le Cuirot <chewi@gentoo.org> dev-lang/luajit/luajit-2.1.0_beta3_p20220613.ebuild | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)