-
Notifications
You must be signed in to change notification settings - Fork 551
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
tcl: add a fallback from hardcoded TCLRL_LIBRARY path #5950
tcl: add a fallback from hardcoded TCLRL_LIBRARY path #5950
Conversation
Signed-off-by: Øyvind Harboe <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
@oharboe why is this needed? If TCL readline is installed correctly the TCLRL_LIBRARY should be defined in the header: I would like to know better what the actual issue was that this is addressing, since in a headless build for bazel, why add tclreadline? |
It is the final hack at the end of a long story...
Will fix.
Thanks! I think I can do without a proc entirely. Will fix.
In bazel we also use the user-interface. In bazel-orfs we use the Docker image(as it is the point in the CI infrastructure that we can pick up a build), but we run the docker image without docker, which is possible if you run through some hoops. This is the niggling little edge case that we didn't find out a way to sort out otherwise. It doesn't change the behavior for any case where the library is found today, so hopefully the cruft will be acceptable. |
Signed-off-by: Øyvind Harboe <[email protected]>
If this cruft is to be "acceptable" I think it's worth knowing what the story is. Keep in mind there are no comments or anything describing the issue, so the next person who encounters this code will wonder why this is needed. This feels like there is an issue with your tclreadline install and it would be better to fix that than have some code that isn't in opensta or the tclshrl builds. |
clang-tidy review says "All clean, LGTM! 👍" |
@gadfort Added some gory details on why we have to look up the path dynamically. |
Signed-off-by: Øyvind Harboe <[email protected]>
c50f37e
to
cdfabc7
Compare
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
@maliberty I don't understand the pr-merge failure, pr-head passes and this PR is on top of the most recent master, so pr-merge and pr-head should be identical. |
// https://github.com/The-OpenROAD-Project/bazel-orfs/blob/main/docker.BUILD.bazel | ||
// for the details on how this is done. |
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.
I don't see any details there that explain how it is done. Its just a list of files and there is no mention of docker.
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.
Documentation on how this is done belongs in bazel-orfs. Admittedly it could be better.
// TL;DR it is possible to run the OpenROAD binary from within the | ||
// official Docker image on a different distribution than the | ||
// distribution within the Docker image. |
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.
Why do you want to do this?
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.
Because running docker in bazel-orfs is extremely problematic; don't do it. Because I want CI, docker provides this. Because this is a solution that exists and is working, less this niggling litt nit.
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.
As to your question why I "want to dothis", I think it is more of a question as to which poison I want to pick. I have picked this poison.
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.
it seems like there is something not right about the usecase, which is leading to this solution. Personally, I would prefer not to bring this in, if the solution is to properly build OpenROAD for bazel (or whatever platform) instead of building on one platform and moving the binary around.
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.
It is not one or the other; there's no conflict here.
This PR is boarding up a broken window (lack of resources for CI + programming), longer term I hope to clean up bazel-orfs.
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.
How does @QuantamHD handle the OpenROAD build for his bazel setup? He must have encountered a similar issue
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.
I believe they use a monorepo and build from source.
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.
I also saw some patching of OpenROAD going on, so my short answer is that it would take a bit of time to investigate what they are doing.
In the future, I'd like to see an officially maintained bazel build of OpenROAD with an artifact repository that I can use, just like Docker images. Would save tons of building time for anyone involved + be single source of truth + better chance of everyone running the exact same version w.r.t. bug reports and communicating in the community...
Perhaps bazel_hdl could use it too?
That's not happening tomorrow though...
This is a good point. The sta app will not work with this approach. I believe you are sta for power reporting. |
Signed-off-by: Øyvind Harboe <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
@maliberty mystery pr-merge error? |
I see the same two tests failed in many builds: I think it worth taking a look at it doesn't seem to be some random flakiness. |
@maliberty I propose to merge this as-is or that I wait for #5961 to be merged, then merge with master and do a rebuild of this PR. |
clang-tidy review says "All clean, LGTM! 👍" |
@maliberty Fixed! |
TL;DR This fixes the last niggling little deployment problem with non-Ubuntu systems and bazel-orfs GUI.
Not pretty, but good 'nuf to use around the house.