CONFIG_TARGET_x86_64=y Error: pointer size mismatch in cross-build.
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
make[3]: Entering directory '/home/openwrt-5-x86/feeds/packages/lang/luajit'
rm -f /home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3/.built
touch /home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3/.built_check
make -j1 -C /home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3 HOST_CC="gcc -O2 -I/home/openwrt-5-x86/staging_dir/host/include -I/home/openwrt-5-x86/staging_dir/hostpkg/include -I/home/openwrt-5-x86/staging_dir/target-x86_64_musl/host/include " CROSS="x86_64-openwrt-linux-musl-" DPREFIX=/home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3/ipkg-install/usr PREFIX=/usr TARGET_SYS=Linux TARGET_CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3=LuaJIT-2.1.0-beta3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" BUILDMODE=dynamic
make[4]: Entering directory '/home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3'
==== Building LuaJIT 2.1.0-beta3 ====
make -C src
make[5]: Entering directory '/home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3/src'
BUILDVM lj_vm.S
Error: pointer size mismatch in cross-build.
Try: make HOST_CC="gcc -m32" CROSS=...
make[5]: *** [Makefile:646: lj_vm.S] Error 1
make[5]: Leaving directory '/home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3/src'
make[4]: *** [Makefile:113: default] Error 2
make[4]: Leaving directory '/home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3'
make[3]: *** [Makefile:92: /home/openwrt-5-x86/build_dir/target-x86_64_musl/LuaJIT-2.1.0-beta3/.built] Error 2
make[3]: Leaving directory '/home/openwrt-5-x86/feeds/packages/lang/luajit'
time: package/feeds/packages/luajit/compile#1.49#1.18#2.29
ERROR: package/feeds/packages/luajit failed to build.
make[2]: *** [package/Makefile:120: package/feeds/packages/luajit/compile] Error 1
make[2]: Leaving directory '/home/openwrt-5-x86'
make[1]: *** [package/Makefile:114: /home/openwrt-5-x86/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/openwrt-5-x86'
make: *** [/home/openwrt-5-x86/include/toplevel.mk:232:world] Error 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in feeds/packages/lang/luajit/Makefile and the LuaJIT src Makefile at the lj_vm.S target reported at line 646. Reproduce the package compile for CONFIG_TARGET_x86_64=y, inspect the HOST_CC and CROSS values shown in the failure, and verify that the luajit package builds successfully for the x86_64 musl target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100