building julia fails for x86_64 on macOS 15 (Xcode 16): error: non-private labels cannot appear between .cfi_startproc / .cfi_endproc pairs
I get the following error trying to build julia on an Intel MacBook after migrating to macOS 15 :
:info:build make[1]: *** [loader_trampolines.o] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_julia/julia/work/julia-1.10.5/cli'
:info:build make: *** [julia-cli-release] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_julia/julia/work/julia-1.10.5'
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_julia/julia/work/julia-1.10.5" && /usr/bin/make -j8 -w
:info:build Exit code: 2
:error:build Failed to build julia: command execution failed
:debug:build Error code: CHILDSTATUS 67279 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build (procedure "portbuild::build_main" line 10)
:debug:build invoked from within
:debug:build "$procedure $targetname"
The current Xcode can't build certain older versions of llvm/clang unless they are patched. There are a number of current PRs applying the needed patch to older MacPorts versions of llvm.
It looks like Julia contains a bundled llvm -- presumably it needs a similar fix.