JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.79k stars 5.49k forks source link

Abort trap while building the sysimage on M1 Mac (when `JULIA_NUM_THREADS` is set) #56599

Closed ararslan closed 3 hours ago

ararslan commented 3 hours ago

I can no longer build Julia from source on an M1 Mac with macOS 14.7; I hit an abort trap when building the sysimage. I believe this started happening when the compiler was separated out recently. Interestingly, I can build successfully on an M2 Mac with macOS 14.6.

Steps to reproduce

git pull
git clean -fdx
make -j4 USECCACHE=1

Result (usual output before this part is omitted)

Compiling the compiler. This may take several minutes ...
Base.Compiler ──── 114.936 seconds
flparse.jl
    JULIA usr/lib/julia/sys.ji

[65695] signal 6: Abort trap: 6
in expression starting at none:0
/bin/sh: line 1: 65695 Abort trap: 6           JULIA_BINDIR=/Users/aarslan/Projects/julia/usr/bin WINEPATH="/Users/aarslan/Projects/julia/usr/bin;$WINEPATH" /Users/aarslan/Projects/julia/usr/bin/julia -g1 -O1 -C "native" --output-ji /Users/aarslan/Projects/julia/usr/lib/julia/sys.ji.tmp --startup-file=no --warn-overwrite=yes --sysimage /Users/aarslan/Projects/julia/usr/lib/julia/basecompiler.ji sysimg.jl ./
*** This error might be fixed by running `make clean`. If the error persists, try `make cleanall`. ***
make[1]: *** [/Users/aarslan/Projects/julia/usr/lib/julia/sys.ji] Error 1
make: *** [julia-sysimg-ji] Error 2
oscardssmith commented 3 hours ago

dup of https://github.com/JuliaLang/julia/issues/56533

ararslan commented 2 hours ago

Oops, thanks!