bazel: Switch to tcl9, don't use runfiles anymore.#10094
bazel: Switch to tcl9, don't use runfiles anymore.#10094maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the openmp and tcl_lang dependencies to newer versions and enables the use_zipfs flag by default in bazel/BUILD. Feedback was provided to remove an outdated inline comment that is no longer accurate following the Tcl 9 migration.
|
clang-tidy review says "All clean, LGTM! 👍" |
7a747da to
74fc11a
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
maliberty
left a comment
There was a problem hiding this comment.
Does this help reduced the symlinking done when running tests?
|
Yes. It reduces the symlinks to zero. |
|
(at least for |
|
mmh, testing locally Maybe there is an issue mapping with swig under Tcl 9 ? |
|
This happens when calling Is there something special that we need to do to hage Searcch.tcl see the definition in |
|
Looks like CI also fails with this as well. |
|
I see it in ./sta/util/Util.i I don't know why it isn't found. |
Pull request was converted to draft
Pull request was converted to draft
|
Will convert to draft for now and have a look separately when I find some time. |
|
Tried with latest swig 4.4.1 (which I am about to push to BCR), but that does not make a difference. |
74fc11a to
8710f38
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
If we can get OpenSTA synced to head of Parallax upstream (and also ideally The-OpenROAD-Project/OpenSTA#341 merge), then this can be unblocked as then Tcl 9 will work fully. |
|
We sync osta fairly recently. Is there a specific commit you need? |
|
Essentially the latest one: parallaxsw/OpenSTA@e629909 |
|
@dsengupta0628 please look at updating osta. |
|
Is there a timelime for the upstream merge of sta ? |
I had started merging from the latest code in 4/16, that ended up with some compilation issues with our OpenSTA test infrastructure- once resolved, I pulled in the OpenROAD/OpenSTA master and now I found 7-8 regression failures. I am resolving them one by one. Once this is resolved, I will pull in the current latest changes from upstream too. It is ongoing effort right now |
|
We now can store a zipped set of tcl files for init.tcl and readline, so we don't need runfiles anymore. Also advantage: the bazel-bin/openroad binary is now self-complete, so it can be copied anywhere as it does not need to find the tcl files relative to the binary anymore. Signed-off-by: Henner Zeller <h.zeller@acm.org>
8710f38 to
25ffb41
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
Now that a fresh upstream STA is referenced in the submodule, this now should work and is ready to review. After this, the binary can be put anywhere, and just works there without needing tcl files (or even a local tcl installation); including tclreadline. This is true not only for bazel build -c opt :openroad src/sta:opensta
install bazel-bin/openroad bazel-bin/src/sta/opensta /tmp
/tmp/openroad # <- works and initializes tcl
/tmp/opensta # also this one |
|
FYI @oharboe for your install scripts. |
We now can store a zipped set of tcl files for init.tcl and readline, so we don't need runfiles anymore.
Also advantage: the bazel-bin/openroad binary is now self-complete, so it can be copied anywhere as it does not need to find the tcl files relative to the binary anymore.
While at it, also update
openmp: the previous version had some runfile that is actually not needed. So that helps us entirely not needing any runfiles anymore.