-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make sure that the read task is done when precompiling #29024
Conversation
Simple IO redirection is fine. 👍 |
well, I have trouble in backporting it to the v1.0.0 commit. |
Just using the one from this PR should be fine. |
503d422
to
76ca692
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new generate_precompile.jl
is fine on FreeBSD's poudriere
.
😨 |
haha, I feel sleepy. |
76ca692
to
e6577d6
Compare
@iblis17 can you try again please, there was a flaw with the previous commit |
I copy it into the v1.0.0 commit, and run |
When the process started by |
Hm, Can you try the branch at https://github.com/JuliaLang/julia/tree/kc/debug_precompile. It contains some debug output so we can see what the REPL does and if it chokes somewhere along the way. |
[1] Here are my instructions about building it with v1.0.0 git checkout kc/debug_precompile
cp contrib/generate_precompile.jl /tmp/tmp.jl
git checkout v1.0.0
cp /tmp/tmp.jl contrib/generate_precompile.jl
(g)make -j 4 # or (g)make -j 4 > /tmp/test.log |
In case of hang, I only can see this
|
SIGINFO told me that v1.0.0 was choked by
|
I figured out an extra patch to get it work with v1.0.0 diff --git a/contrib/generate_precompile.jl b/contrib/generate_precompile.jl
index 0bbb3b8065..11e9de09ae 100644
--- a/contrib/generate_precompile.jl
+++ b/contrib/generate_precompile.jl
@@ -88,9 +88,7 @@ function generate_precompile_statements()
"TERM" => "") do
if have_repl
p = run(`$(julia_cmd()) -O0 --trace-compile=$precompile_file --sysimage $sysimg
- --compile=all --startup-file=no --color=yes
- -e 'import REPL; REPL.Terminals.is_precompiling[] = true'
- -i`,
+ --compile=all --startup-file=no --color=yes`,
slave, slave, slave; wait=false)
readuntil(master, "julia>", keep=true)
t = @async begin |
Alright, I get it now and everything is fine :). The reason it doesn't work with copying the file to 1.0 is because the change at #28608 is needed, as well. So cherry picking the commit from that PR and then this one should be enough to get things working. |
(cherry picked from commit 4c02077)
(cherry picked from commit 4c02077)
(cherry picked from commit 4c02077)
(cherry picked from commit 4c02077)
Should fix #29016.
Would be good if you could try this @iblis17.
https://github.com/JuliaLang/julia/pull/29024/files?w=1