-
Notifications
You must be signed in to change notification settings - Fork 143
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
Holmake: Exception: Subscript
when building HOL with -j12 or greater (but not -j11 or lower)
#1158
Comments
Fascinating. Does it reproduce with I guess there's an error still lurking in the way Holmake prints its little display of running processes to the screen (see an earlier one at b51b4f1). If you run with a smaller |
I can confirm that it reproduces on |
The problem is definitely with the display: if you run
the pretty displaying doesn't happen because it doesn't think it's writing to a terminal and the build goes fine. |
I tried to build HOL with a terminal 1/3rd as wide (with To be more precise, I'm running the build inside of a local tmux session, and furthermore the build is going through a local daemon (nix-daemon), which connects over ssh to another nix-daemon on a remote machine, which actually does the build inside a sandbox and captures the output log of the build (and in this specific case, it also sends it in real-time to my terminal). So I heavily suspect that my actual terminal size has no effect on the build behavior and I would be slightly disappointed if it did (since it would interfere with all the efforts that NixOS has made to make builds as reproducible as possible, even though it still has countless limitations). EDIT: sorry, I misread your question. I will try reproducing with a narrower terminal and with EDIT 2: I can now confirm that in my setup, it succeeds with a terminal 1/3rd as wide and with But as I mentioned before, that's probably to be expected given my setup. So the bug might still be related to the terminal width, it's just that it seems that I have no easy way of changing it due to how the build is being done. |
Holmake explicitly makes shell calls to If you can resize your terminal so as to affect the numbers it gets out of those calls (it tries It's still clearly a bug, and I think/hope it should be easy to fix. |
When building HOL from the master branch (commit 4b009e0), it's failing for me with this error:
I noticed that this always happened when I built HOL with the command
bin/build --expk -j32
, but if I built HOL withbin/build --expk
, then it succeeded. I then also noticed that it succeeded with-j4
.So after a few tries, I determined that it always seems to fail with that error when using
-j12
or greater, and it always seems to succeed with-j11
or lower.This appears to be 100% reproducible so far.
The text was updated successfully, but these errors were encountered: