Skip to content

PyO3 doesn't build on musl targets (Alpine linux) #1109

@alex

Description

@alex

error: cannot produce cdylib for cryptography-rust v0.1.0 (/tmp/pip-req-build-oczfn6un/src/rust) as the target x86_64-unknown-linux-musl does not support these crate types

This was previously reported as #599, however that referred to a different failure, that proc-macro wasn't supported on musl targets. The corresponding Rust issue was closed, and indeed there's now a new error message. I'm hoping to understand where the blocker to moving this ball forward is, and how I can help!

🐛 Bug Reports

🌍 Environment

  • Your operating system and version: Alpine Linux 3.12.0
  • Your Rust version (rustc --version): rustc 1.45.2 (d3fb005a3 2020-07-31)
  • Your PyO3 version: 0.11.1
  • Have you tried using latest PyO3 master (replace version = "0.x.y" with git = "https://github.com/PyO3/pyo3")?: Not yet

💥 Reproducing

pyca/cryptography#5410 see the failing Alpine build https://travis-ci.org/github/pyca/cryptography/jobs/718454323

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions