Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627332 - dev-lang/luajit-2.0.4 with crossdev - Error: pointer size mismatch in cross-build.
Summary: dev-lang/luajit-2.0.4 with crossdev - Error: pointer size mismatch in cross-b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-08 14:42 UTC by Coacher
Modified: 2023-11-13 22:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info,7.12 KB, text/plain)
2017-08-08 14:42 UTC, Coacher
Details
arm-unknown-linux-gnueabi-emerge --info (cross-info,2.61 KB, text/plain)
2017-08-08 14:42 UTC, Coacher
Details
build.log (build.log,32.48 KB, text/plain)
2017-08-08 14:43 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2017-08-08 14:42:08 UTC
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=...
Comment 1 Coacher 2017-08-08 14:42:47 UTC
Created attachment 488296 [details]
arm-unknown-linux-gnueabi-emerge --info
Comment 2 Coacher 2017-08-08 14:43:05 UTC
Created attachment 488298 [details]
build.log
Comment 3 Larry the Git Cow gentoo-dev 2023-11-13 22:15:35 UTC
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(-)