Build failure

Since 683da41, I’m no longer able to build Julia from master (on linux or macOS)

Compiling the compiler. This may take several minutes ...
Base.Compiler ──── 177.213 seconds
flparse.jl
    JULIA usr/lib/julia/sys.ji
Aborted (core dumped)
*** This error might be fixed by running `make clean`. If the error persists, try `make cleanall`. ***
make[1]: *** [sysimage.mk:72: /home/chris/julia.git/usr/lib/julia/sys.ji] Error 1
make: *** [Makefile:114: julia-sysimg-ji] Error 2

Any ideas?

1 Like

I’ve also been seeing this which is very odd since CI seems unaffected

Did you try to run make cleanall?

On CI the build starts from a clean state.

1 Like

In such cases one option is to do git status --ignored, to see all files and directories ignored by Git. One of them must be the culprit, so delete away.

It fails after a fresh clone

1 Like

I think this probably has to do with compiler versions or something, but I don’t know how yet

This should probably be an issue

2 Likes

Works for me on

  • aarch64-darwin with Apple Clang 15
  • aarch64-linux with GCC 11.4
  • x86_64-linux with GCC 11.4 and GCC 14.2
2 Likes

Fails for me on

  • arm64-darwin + clang 16 (macOS 15.1)
  • x86_64 + gcc 13.2 (ubuntu 24.04)
1 Like

Can you show your ENV? It’s fascinating that it fails for you on both platforms both being completely different.

1 Like

Also, do you have a Make.user file?

No

The mac environment is minimal, with only PATH standing out as potentially interesting

PATH=/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin

On both machines, I’m able to successfully build master in a gcc docker container (ie, docker run -it gcc), which happens to have gcc 14.2

Do you have JULIA_NUM_THREADS set as an envar. We identified a bug when building julia with that set.

2 Likes

Building Julia segfaults when `JULIA_NUM_THREADS=4,1` is set · Issue #56533 · JuliaLang/julia · GitHub tracks this. @gbaraldi and I think that the threading is the cause. To confirm, can you run JULIA_NUM_THREADS=1 make and make sure that works?

3 Likes

Yup, that’s it

2 Likes