Skip to content

Build failure on macOS Big Sur #677

@carlocab

Description

@carlocab

Building from the latest commit on the v2.1 branch on macOS Big Sur produces the following error:

❯ make clean && make
/Library/Developer/CommandLineTools/usr/bin/make -C src clean
rm -f luajit libluajit.a libluajit.so host/minilua host/buildvm lj_vm.S lj_bcdef.h lj_ffdef.h lj_libdef.h lj_recdef.h lj_folddef.h host/buildvm_arch.h jit/vmdef.lua *.o host/*.o *.obj *.lib *.exp *.dll *.exe *.manifest *.pdb *.ilk
==== Building LuaJIT 2.1.0-beta3 ====
/Library/Developer/CommandLineTools/usr/bin/make -C src
HOSTCC    host/minilua.o
HOSTLINK  host/minilua
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
ASM       lj_vm.o
CC        lj_assert.o
CC        lj_gc.o
BUILDVM   lj_ffdef.h
CC        lj_err.o
lj_err.c:469:2: error: "Broken build system -- only use the provided Makefiles!"
#error "Broken build system -- only use the provided Makefiles!"
 ^
1 error generated.
make[1]: *** [lj_err.o] Error 1
make: *** [default] Error 2

I have MACOSX_DEPLOYMENT_TARGET=11.1 set.

I attempted a git bisect, which lead to the following commit:

e131936133c58de4426c595db2341caf5a1665b5 is the first bad commit
commit e131936133c58de4426c595db2341caf5a1665b5
Author: Mike Pall <mike>
Date:   Tue Mar 23 00:22:34 2021 +0100

    Cleanup and enable external unwinding for more platforms.

 doc/extensions.html |  22 +---
 src/Makefile        |  11 +-
 src/lj_arch.h       |  33 +++---
 src/lj_err.c        | 321 +++++++++++++++++++++++++++-------------------------
 4 files changed, 197 insertions(+), 190 deletions(-)

However, the commit can't be cleanly reverted, so it's not quite clear to me whether that is, in fact, the source of the problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions