- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorbuildingBuild system, or building Julia or its dependenciesBuild system, or building Julia or its dependenciessystem:macAffects only macOSAffects only macOS
Description
Cloning and building Julia on the current master (5bf1ca5)
git clone ...
make
leads to
...
JULIA usr/lib/julia/sys-o.a
/bin/sh: line 1: 11329 Segmentation fault: 11 JULIA_BINDIR=/Users/jonas/Projects/julia2/usr/bin WINEPATH="/Users/jonas/Projects/julia2/usr/bin;$WINEPATH" /Users/jonas/Projects/julia2/usr/bin/julia -O3 -C "native" --output-o /Users/jonas/Projects/julia2/usr/lib/julia/sys-o.a.tmp --startup-file=no --warn-overwrite=yes --sysimage /Users/jonas/Projects/julia2/usr/lib/julia/sys.ji /Users/jonas/Projects/julia2/contrib/generate_precompile.jl 1
*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***
make[1]: *** [/Users/jonas/Projects/julia2/usr/lib/julia/sys-o.a] Error 1
make: *** [julia-sysimg-release] Error 2
While working on my "old" clone, I encountered the same problem. make clean
and make cleanall
didn't fix the issue. I didn't try this on the new clone. I also tried creating a Make.user
containing JULIA_PRECOMPILE=0
, but that didn't work either.
I am running macOS 11.5.2 on a 2018 MacBook Pro. From my homebrew Julia installation:
julia> versioninfo()
Julia Version 1.6.2
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorbuildingBuild system, or building Julia or its dependenciesBuild system, or building Julia or its dependenciessystem:macAffects only macOSAffects only macOS
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
vtjnash commentedon Sep 22, 2021
It is likely you have something broken in your environment. Check
env
for something being added.jonas-schulze commentedon Sep 22, 2021
I don't see anything suspicious. 🙁
Edit: thanks for the quick response!
vtjnash commentedon Sep 22, 2021
JULIA_NUM_THREADS
-- the build does not support explicitly launching threadsDilumAluthge commentedon Sep 23, 2021
This seems like an error on our end. If the build doesn't support
JULIA_NUM_THREADS
, then it should ignore it, instead of crashing.DilumAluthge commentedon Sep 23, 2021
I'm reopening this because I think we need to fix this on our end.
vilterp commentedon Sep 23, 2021
For what it's worth, this happens to me even with
JULIA_NUM_THREADS
unset.NHDaly commentedon Sep 23, 2021
@vilterp and, it's worth mentioning, it only started happening to you today, on a build that was working up til yesterday.
DilumAluthge commentedon Sep 23, 2021
It would be great to bisect this.
DilumAluthge commentedon Sep 23, 2021
I am not able to reproduce this locally with the following setup:
I tried both with and without
export JULIA_NUM_THREADS=4
, but I wasn't able to reproduce the build failure either way.@jonas-schulze or @vilterp would you be able to
git bisect
this, since you are able reproduce this failure locally?vilterp commentedon Sep 24, 2021
The thing is, I am now unable to build commits which I was able to build before. It seems like some state on my system is corrupt, which is preventing the build from succeeding.
I tried
make clean
,make cleanall
, and even deleted my checkout and restarted, but to no avail.The only thing I can think of which changed from when it was working to now is that I used to only be building the C source, with
make -C src
andmake -j julia-src-release
.Eventually, I made a change to the Julia source (this is all on #42286), and issued
make
. However, at the time, my C source had a bug in it, so building the sysimage failed. Once I fixed the bug on the C side, I ran into this bug, there the C and sysimage build, but some step afterward segfaults.Is there some state outside of the julia checkout directory itself which could be corrupted, causing my failed builds?
21 remaining items