Skip to content

Segfaults when building Julia from scratch with GCC 15 #58466

@jakobnissen

Description

@jakobnissen

This has occurred within the last few (around 4) days. Currently on commit 864aac0 (edit: has been bisected to dbc38d6).
Building Julia from scratch results in all the stdlibs erroring with an error message like below.

The issue persists after running make cleanall, and even after deleting and re-cloning the repo.

This might be an issue with my computer, but I'm stumped as to what it could be.

Julia installed from juliaup runs fine, and returns this versioninfo

Julia Version 1.12.0-beta3
Commit faca79b503a (2025-05-12 06:47 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
      "Manjaro Linux"
  uname: Linux 5.15.182-1-MANJARO #1 SMP PREEMPT Fri May 9 10:56:46 UTC 2025 x86_64 unknown
  CPU: AMD Ryzen 7 4700U with Radeon Graphics:
              speed         user         nice          sys         idle          irq
       #1  1397 MHz      24236 s        640 s       2513 s     220115 s        468 s
       #2  1397 MHz      16619 s        628 s       2490 s     227752 s        458 s
       #3  1397 MHz      17677 s        643 s       2517 s     225905 s       1346 s
       #4  1397 MHz      17449 s        482 s       2420 s     227271 s        430 s
       #5  1423 MHz      20922 s        645 s       2852 s     223002 s        518 s
       #6  1405 MHz      14089 s        584 s       2719 s     229428 s       1121 s
       #7  1397 MHz      14470 s        739 s       2788 s     229332 s        595 s
       #8  1397 MHz      17178 s        574 s       2679 s     227093 s        488 s
  Memory: 15.052658081054688 GB (8425.2890625 MB free)
  Uptime: 118858.09 sec
  Load Avg:  3.26  6.05  3.74
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, znver2)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 8 virtual cores)
Environment:
  JULIA_PKG_PRESERVE_TIERED_INSTALLED = true
  HOME = /home/jakob
  PATH = /home/jakob/.julia/juliaup/bin:/home/jakob/micromamba/condabin:/home/jakob/.julia/juliaup/bin:/home/jakob/.local/bin:/home/jakob/.cargo/bin:/usr/local/bin:/usr/bin:/var/lib/snapd/snap/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/jakob/Downloads/zig-linux-x86_64-0.10.0:/home/jakob/.julia/bin:/home/jakob/Downloads/zig-linux-x86_64-0.10.0:/home/jakob/.julia/bin
  TERM = alacritty

Error message:

Distributed

Failed to precompile Distributed [8ba89e20-285c-5b6f-9357-94700520ee1b] to "/home/jakob/code/julia/usr/share/julia/compiled/v1.13/Distributed/jl_8ebJlC" (ProcessExited(1)).
[120461] signal 11 (1): Segmentation fault
in expression starting at none:0
jl_emit_native_impl at /home/jakob/code/julia/src/aotcompile.cpp:828
jl_create_native_impl at /home/jakob/code/julia/src/aotcompile.cpp:709
jl_precompile_ at /home/jakob/code/julia/src/precompile_utils.c:282
jl_precompile_worklist at /home/jakob/code/julia/src/precompile_utils.c:345 [inlined]
ijl_create_system_image at /home/jakob/code/julia/src/staticdata.c:3501
ijl_write_compiler_output at /home/jakob/code/julia/src/precompile.c:155
ijl_atexit_hook at /home/jakob/code/julia/src/init.c:276
jl_repl_entrypoint at /home/jakob/code/julia/src/jlapi.c:1127
main at /home/jakob/code/julia/cli/loader_exe.c:58
unknown function (ip: 0x7f5d2f1506b4) at /usr/lib/libc.so.6
__libc_start_main at /usr/lib/libc.so.6 (unknown line)
_start at /home/jakob/code/julia/usr/bin/julia (unknown line)
Allocations: 258959 (Pool: 258949; Big: 10); GC: 4

[120461] signal 11 (1): Segmentation fault
in expression starting at none:0
jl_emit_native_impl at /home/jakob/code/julia/src/aotcompile.cpp:828
jl_create_native_impl at /home/jakob/code/julia/src/aotcompile.cpp:709
jl_precompile_ at /home/jakob/code/julia/src/precompile_utils.c:282
jl_precompile_worklist at /home/jakob/code/julia/src/precompile_utils.c:345 [inlined]
ijl_create_system_image at /home/jakob/code/julia/src/staticdata.c:3501
ijl_write_compiler_output at /home/jakob/code/julia/src/precompile.c:155
ijl_atexit_hook at /home/jakob/code/julia/src/init.c:276
jl_repl_entrypoint at /home/jakob/code/julia/src/jlapi.c:1127
main at /home/jakob/code/julia/cli/loader_exe.c:58
unknown function (ip: 0x7f5d2f1506b4) at /usr/lib/libc.so.6
__libc_start_main at /usr/lib/libc.so.6 (unknown line)
_start at /home/jakob/code/julia/usr/bin/julia (unknown line)
Allocations: 258959 (Pool: 258949; Big: 10); GC: 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildingBuild system, or building Julia or its dependenciesheisenbugThis bug occurs unpredictablysystem:linuxAffects only LinuxupstreamThe issue is with an upstream dependency, e.g. LLVM

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions