-
Notifications
You must be signed in to change notification settings - Fork 48
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
Update rules flex/bison to latest. #385
Conversation
89936b9
to
468ad4c
Compare
Not sure what is going on; apparently it can't find v3.3.2
Just looking at the regular bison, there is such a file in the source:
There is probably some implicit assumption in the verilator dependency to access it, but unclear where. |
So to reproduce
will fail with this. |
Adding @abrisco who probably knows what is going on. |
I ran into the same when I tried to upgrade to |
Found this when searching for the error online, found something that may be related. It's worth a try setting this envvar: conan-io/conan-center-index#1498 (comment). Although was this an error from bazel or bison? |
I wouldn't expect this to be in runfiles. What is causing it to look there? As you can see there's no data dependencies on the target and thus there would be no runfiles bazel_rules_hdl/dependency_support/verilator/private/BUILD.bazel Lines 9 to 13 in 02ac9da
What is the full error Bazel spits out? I would also advise moving away from Bazel 6. I don't know why it was pinned back but the last PR I made (using Bazel ~7.3) everything worked just fine. |
Full error message is the following. It happens in verilator which seems to attempt to access bison data:
(And I agree, bazel 6 support should be phased out for this repo. I am currently working on lining up all the things for this to happen) |
I think this comes down to jmillikin/rules_bison@ce9ddfd. |
If this is the case then probably deleting --- a/dependency_support/verilator/private/verilator_bisonpre.py
+++ b/dependency_support/verilator/private/verilator_bisonpre.py
@@ -1,13 +1,20 @@
"""A wrapper for bisonpre that reduces noise in console logs."""
+import os
import subprocess
import sys
def main() -> None:
"""The main entrypoint"""
+
+ env = dict(os.environ)
+ if "RUNFILES_DIR" in env:
+ del env["RUNFILES_DIR"]
+
result = subprocess.run(
[sys.executable] + sys.argv[1:],
+ env=env,
check=False,
stderr=subprocess.STDOUT,
stdout=subprocess.PIPE, |
Co-authored-by: Andre Brisco <andre.brisco@protonmail.com
468ad4c
to
d72d5e2
Compare
Applied @abrisco 's patch, works for me locally now. Let's see what the CI thinks. |
Adding @mikesinouye to review; looks like the last change fixed it. |
Very nice!! |
No description provided.