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

[ignore] Enable from-source patchelf in wheel builds #19265

Conversation

svenevs
Copy link
Contributor

@svenevs svenevs commented Apr 24, 2023

Reviving parts of #18163 to help enable testing for patchelf folks if desired.

Relates: #19261

To test, you will need to

  1. Install bazel. Currently drake's setup scripts do this, you will likely need exactly bazel 6.1.1.
  2. Install docker-ce and docker-buildx-plugin. Bazel ultimately launches a docker build. This can only be done on linux. The mac build is much harder to orchestrate, windows not supported.
  3. You must have an ssh agent running: eval $(ssh-agent -s)
  4. You can launch the build using bazel run //tools/wheel:builder -- --python 38 0.1.0 (make sure to cd to the top-level drake git repository to run that command).

Do note that this may not be a good working test case, there is a lot of machinery and the wheel build takes a long time (it also builds VTK and a bunch of dependencies, in addition to drake...). However, we would happily test any new commit, see review comment below -- if there is a commit pushed, I can funnel it through our CI or build it locally fairly easily.


This change is Reviewable

Reviving parts of RobotLocomotion#18163 to help enable testing for `patchelf`
folks if desired.
@svenevs
Copy link
Contributor Author

svenevs commented Apr 24, 2023

@drake-jenkins-bot linux-focal-unprovisioned-gcc-wheel-experimental-release please.

this build is expected to fail, using commit of 0.18.0 which is what is broken

@svenevs
Copy link
Contributor Author

svenevs commented Apr 24, 2023

[3:44:14 PM] ImportError: libtbb-fb00472a.so.12.6: ELF load command address/offset not properly aligned

Successful failure as desired from https://drake-jenkins.csail.mit.edu/job/linux-focal-unprovisioned-gcc-wheel-experimental-release/18/consoleFull

Comment on lines +10 to +11
set(patchelf_url "https://github.com/NixOS/patchelf/tarball/99c24238981b7b1084313aca8f5c493bb46f302c")
set(patchelf_md5 "9fa63224f9b73060ef6bd37f8effea8c")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In order to test anything, a commit has to be pushed due to the other mechanics of the build. You will need to curl -LO https://github.com/NixOS/patchelf/tarball/${commit} and get the corresponding md5sum of said artifact, otherwise the build will reject well before any errors come up.

@jwnimmer-tri
Copy link
Collaborator

#19261 (comment)

@svenevs svenevs deleted the test/enable-unreleased-patchelf-testing branch June 20, 2023 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants