Skip to content
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

[setup] Restructure Ubuntu dependencies on clang-9 #16622

Merged
merged 1 commit into from
Feb 21, 2022

Conversation

jwnimmer-tri
Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri commented Feb 18, 2022

Towards #16606.


This change is Reviewable

@jwnimmer-tri jwnimmer-tri added status: do not merge status: do not review release notes: fix This pull request contains fixes (no new features) labels Feb 18, 2022
@jwnimmer-tri jwnimmer-tri changed the title [setup] Add libomp-9-dev to match with clang-9 [setup] Restructure Ubuntu dependencies on clang-9 Feb 18, 2022
@jwnimmer-tri

This comment was marked as outdated.

@jwnimmer-tri
Copy link
Collaborator Author

jwnimmer-tri commented Feb 18, 2022

Interesting, our Unprovisioned Clang CMake builds pass --without-test-only, but still expect Clang to be there. I guess I'll need something slightly more subtle here.

Edit: I've now split this into --without-clang, so it's a separate option, for now opt-out.

On Ubuntu, move clang-9 into a separate "--with-clang" designation,
which is enabled by default to maintain our current behavior. In the
future, we should probably switch it off by default, to save download
time and disk space during builds.

Note that we still unconditionally require Clang's parsing library
and clang-format binary to be installed during a source build,
because we use those during the pydrake build.

Add libomp-9-dev alongside clang-9. That allows us to use -fopenmp;
otherwise, we would have linker errors.

Remove vestigial and broken --without-doc-only option.
@jwnimmer-tri
Copy link
Collaborator Author

@drake-jenkins-bot linux-bionic-unprovisioned-clang-cmake-experimental-release please
@drake-jenkins-bot linux-bionic-unprovisioned-gcc-cmake-experimental-release please
@drake-jenkins-bot linux-focal-unprovisioned-clang-cmake-experimental-debug please
@drake-jenkins-bot linux-focal-unprovisioned-clang-cmake-experimental-release please
@drake-jenkins-bot linux-focal-unprovisioned-gcc-cmake-experimental-release please
@drake-jenkins-bot linux-bionic-unprovisioned-gcc-bazel-experimental-debug please
@drake-jenkins-bot linux-bionic-unprovisioned-gcc-bazel-experimental-snopt-packaging please
@drake-jenkins-bot linux-focal-unprovisioned-gcc-bazel-experimental-debug please
@drake-jenkins-bot linux-focal-unprovisioned-gcc-bazel-experimental-documentation please
@drake-jenkins-bot linux-focal-unprovisioned-gcc-bazel-experimental-snopt-packaging please
@drake-jenkins-bot linux-bionic-unprovisioned-clang-bazel-experimental-debug please
@drake-jenkins-bot linux-bionic-unprovisioned-clang-bazel-experimental-everything-release please
@drake-jenkins-bot linux-bionic-unprovisioned-clang-bazel-experimental-gurobi-release please
@drake-jenkins-bot linux-bionic-unprovisioned-clang-bazel-experimental-mosek-release please
@drake-jenkins-bot linux-bionic-unprovisioned-clang-bazel-experimental-release please
@drake-jenkins-bot linux-bionic-unprovisioned-clang-bazel-experimental-snopt-release please
@drake-jenkins-bot linux-focal-unprovisioned-clang-bazel-experimental-debug please
@drake-jenkins-bot linux-focal-unprovisioned-clang-bazel-experimental-everything-release please
@drake-jenkins-bot linux-focal-unprovisioned-clang-bazel-experimental-gurobi-release please
@drake-jenkins-bot linux-focal-unprovisioned-clang-bazel-experimental-mosek-release please
@drake-jenkins-bot linux-focal-unprovisioned-clang-bazel-experimental-release please
@drake-jenkins-bot linux-focal-unprovisioned-clang-bazel-experimental-snopt-release please

@jwnimmer-tri jwnimmer-tri marked this pull request as ready for review February 18, 2022 21:34
@jwnimmer-tri
Copy link
Collaborator Author

+@rpoyner-tri for feature review, please.

Copy link
Contributor

@rpoyner-tri rpoyner-tri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 7 of 7 files at r1, all commit messages.
Reviewable status: needs at least two assigned reviewers, labeled "do not merge" (waiting on @jwnimmer-tri)

@jwnimmer-tri
Copy link
Collaborator Author

+@EricCousineau-TRI for platform review per schedule, please.

After reviews are complete, I'll help coordinate the CI updating dance for landing this. We might just be able to merge it straight-away. I'll figure that out later on.

Copy link
Contributor

@EricCousineau-TRI EricCousineau-TRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: platform

Reviewed 6 of 7 files at r1, all commit messages.
Reviewable status: labeled "do not merge" (waiting on @jwnimmer-tri)

@jwnimmer-tri
Copy link
Collaborator Author

jwnimmer-tri commented Feb 21, 2022

Since this is a monotonic addition of packages, with no need (yet) for anything else that depends on them, we can safely merge this now without an extra CI interlock. I'll do that now and then open an issue for the CI image updates.

=> #16642

@jwnimmer-tri jwnimmer-tri merged commit a743198 into RobotLocomotion:master Feb 21, 2022
@jwnimmer-tri jwnimmer-tri deleted the setup-clang-omp branch February 21, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium release notes: fix This pull request contains fixes (no new features)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants