asdf-vm/asdf-erlang

fatal error: 'x86/x86assembler.h' file not found (macOS Ventura / Sonoma)

Nicd opened this issue · 2 comments

I'm unable to install either Erlang 25 or 26 with asdf on a macOS M1 machine seemingly out of the blue. The error in the log is:

gmake[4]: Entering directory '/Users/nicd/.asdf/plugins/erlang/kerl-home/builds/asdf_26.1.2/otp_src_26.1.2/erts/emulator'
gmake[4]: *** No rule to make target 'x86/x86assembler.h', needed by 'obj/aarch64-apple-darwin23.1.0/opt/jit/beam_asm_global.o'.  Stop.
gmake[4]: *** Waiting for unfinished jobs....
 CC     obj/aarch64-apple-darwin23.1.0/opt/jit/erl_main.o
 CC     obj/aarch64-apple-darwin23.1.0/opt/jit/preload.o
 CC     obj/aarch64-apple-darwin23.1.0/opt/jit/erl_process.o
 CC     obj/aarch64-apple-darwin23.1.0/opt/jit/asm_load.o
 CXX    aarch64-apple-darwin23.1.0/opt/jit/asmjit/asmjit.hpp.gch
In file included from aarch64-apple-darwin23.1.0/opt/jit/asmjit/asmjit.hpp:30:
aarch64-apple-darwin23.1.0/opt/jit/asmjit/./x86.h:84:10: fatal error: 'x86/x86assembler.h' file not found
#include "x86/x86assembler.h"
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[4]: *** [aarch64-apple-darwin23.1.0/Makefile:948: aarch64-apple-darwin23.1.0/opt/jit/asmjit/asmjit.hpp.gch] Error 1

This happened on Ventura and still happens on Sonoma. Currently I'm unable to run any Erlang version because of this, as 25 won't run on Sonoma due to the JIT and 26 can't be installed.

What would you like me to try?

The same thing happens when I try kerl directly, so I guess I'll move the bug there.

Moved to kerl/kerl#494