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

Fix maturin failing to handle empty sysroot #1589

Merged
merged 1 commit into from
May 3, 2023

Conversation

roblabla
Copy link
Contributor

@roblabla roblabla commented May 3, 2023

I'm using nixpkgs' gcc as a cross-compilation linker, and unfortunately, it's causing maturin's wheel repair to fail with the following error:

💥 maturin failed
  Caused by: Cannot repair wheel, because required library libgcc_s.so.1 could not be located.

After some investigation, it appears that, when trying to autodetect the sysroot, maturin runs $CC --print-sysroot. Unfortunately, the version of gcc used by nixpkgs will simply print an empty string in this case, causing the build to fail. With this patch, however, it all works and generates a working wheel.

@netlify
Copy link

netlify bot commented May 3, 2023

Deploy Preview for maturin-guide ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ca97e16
🔍 Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/6452b2022674410008d5eabb
😎 Deploy Preview https://deploy-preview-1589--maturin-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@messense messense merged commit b1fd845 into PyO3:main May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants