luajit2: cross-build on macOS does not work
Open
Nobody has claimed this yet.
bug
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Package Name
luajit2
Maintainer
@jmarcet
OpenWrt Version
snapshot
OpenWrt Target/Subtarget
mvebu/cortex-a9
Steps to Reproduce
- Have macOS
- Try to compile luajit2
Actual Behaviour
Right now, it fails:
==== Building LuaJIT 2.1 ====
make -C src
make[4]: Entering directory '/Volumes/OpenWrt/omnia-hbd/build/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/luajit2-2.1.2024.08.15/src'
HOSTCC host/minilua.o
HOSTLINK host/minilua
VERSION luajit.h
DYNASM host/buildvm_arch.h
HOSTCC host/buildvm.o
HOSTCC host/buildvm_asm.o
HOSTCC host/buildvm_peobj.o
HOSTCC host/buildvm_lib.o
HOSTCC host/buildvm_fold.o
HOSTLINK host/buildvm
BUILDVM lj_vm.S
Error: pointer size mismatch in cross-build.
Try: make HOST_CC="gcc -m32" CROSS=...
make[4]: *** [Makefile:695: lj_vm.S] Error 1
maybe: @httpstorm can help with this one. :-)
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
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 with the luajit2 build in the package repository and the src/Makefile rule reported at line 695. Reproduce the cross-build on macOS, trace the pointer-size mismatch, and verify that luajit2 builds successfully for the mvebu/cortex-a9 target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100