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

Wheel build failing for x86_64 and i686 on linux #1057

Closed
1 of 2 tasks
samuelcolvin opened this issue Aug 11, 2022 · 4 comments
Closed
1 of 2 tasks

Wheel build failing for x86_64 and i686 on linux #1057

samuelcolvin opened this issue Aug 11, 2022 · 4 comments

Comments

@samuelcolvin
Copy link

Bug Description

Builds of pydantic-core have just started failing, see this build,

For x86_64, the log has the following:

📦 Including license file "LICENSE"
🍹 Building a mixed python/rust project
💥 maturin failed
  Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
  Caused by: `cargo metadata` exited with an error: /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo)
/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo)
/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo)

For i686 I see:

📦 Including license file "LICENSE"
🍹 Building a mixed python/rust project
💥 maturin failed
  Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
  Caused by: `cargo metadata` exited with an error: /root/.rustup/toolchains/nightly-i686-unknown-linux-gnu/bin/cargo: /lib/libc.so.6: version `GLIBC_2.15' not found (required by /root/.rustup/toolchains/nightly-i686-unknown-linux-gnu/bin/cargo)
/root/.rustup/toolchains/nightly-i686-unknown-linux-gnu/bin/cargo: /lib/libc.so.6: version `GLIBC_2.17' not found (required by /root/.rustup/toolchains/nightly-i686-unknown-linux-gnu/bin/cargo)
Error: The process '/usr/bin/docker' failed with exit code 1

Your Python version (python -V)

the job installs 3.10.6

Your pip version (pip -V)

NA

What bindings you're using

pyo3

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

See the build log.

@samuelcolvin samuelcolvin added the bug Something isn't working label Aug 11, 2022
@samuelcolvin samuelcolvin changed the title Wheel build failing for x86_64 and i686 Wheel build failing for x86_64 and i686 on linux Aug 11, 2022
@messense messense removed the bug Something isn't working label Aug 11, 2022
@messense
Copy link
Member

See my comment here: pydantic/pydantic-core@ae3b707#commitcomment-80926390

This is related to #857.

@samuelcolvin
Copy link
Author

Thanks, sorry for the noise.

@messense
Copy link
Member

messense commented Aug 11, 2022

BTW, switch to build on stable Rust can also resolve that issue. I plan to adjust maturin-action to account for this breaking change in nightly Rust for the auto option.

@samuelcolvin
Copy link
Author

Okay, I think rust stable is a better idea, I'll try to submit a PR.

Currently the pydantic organisation has a backlog of builds, so I'm waiting for that to resolve itself 😓.

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

No branches or pull requests

2 participants