-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Drake doesn't build with Bazel 5.3 #17763
Comments
Also note that |
Note that this is an acute problem for macOS Homebrew users, since a brew upgrade with give them bazel 5.3 and everything will be broken. |
See bazelbuild/bazel#16008 (comment) for probable cause. See also bazelbuild/bazel#16153 for the pending fix (maybe). |
Some other necessary follow-up, for the record:
|
The remaining action here is to upgrade to Bazel 5.3.1 patch release, once upstream releases the fix. For the moment, we'll remain pinned to versions strictly less than 5.3.0. |
This is biting some people (it actually bit me on one machine, too). The bazel issue linked above has been closed. what is the remaining action for Drake? |
For macOS, I assume? Drake's macOS install_prereqs install The remaining action is to remove the 5.1.0 pin once Bazel 5.3.1 ships. |
The necessary bazel fix was adopted into the bazel 5.3.1 release branch but 5.3.1 has not been released due to one remaining release blocking bug. |
I've confirmed that re-running drake's |
Hmm. Maybe upgrading |
I'll test tonight to make sure that |
Maybe it's ok afterall.
I suspect that the machine where |
Ubuntu only: I've noticed that bazel 5.3.1 caused the Presentation:
An important symptom is that the locations deep in the I'll see what I can do about at least reporting errors when the problem happens. |
Interesting timing! I was just checking that 5.3.1 fixes the shared libraries problem, in order to push this upgrade over the finish line. All of the normal build & test stuff I've tested manually (+ macOS) seems to pass OK now, so the kcov problem is the only thing holding us back from 5.3.1. |
While I continue to investigate, here's a quick test for broken output data. It exploits the fact that
|
It looks to me like I'll look at providing a patch. |
Bazel fixed the regression as of 5.3.1. Drake is upgraded to 5.3.1 as of #18004. |
What happened?
Building Drake with Bazel 5.3 fails during lcmtypes generation, due to
lcm-gen
not findinglibdrake_lcm.so
.This appears to be due to the path parsing changes introduced in bazelbuild/bazel#16008 .
Notably, there does not seem to be any correct value for
tools/workspace/lcm/package.BUILD.bazel
:113.This does not affect mainline Drake CI on ubuntu, which uses a pinned bazel version. However it affects the Mac
Montereyand drake-external-examples builds, which use the bazel apt site's default bazel package.Version
No response
What operating system are you using?
Ubuntu 20.04
What installation option are you using?
compiled from source code using Bazel
Relevant log output
bazel-out/host/bin/external/lcm/lcm-gen: error while loading shared libraries: libdrake_lcm.so: cannot open shared object file: No such file or directory
The text was updated successfully, but these errors were encountered: