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

False positive missing PyInit_XXX symbol in native library on arm64 macOS 12 #672

Closed
messense opened this issue Nov 9, 2021 · 0 comments · Fixed by #673
Closed

False positive missing PyInit_XXX symbol in native library on arm64 macOS 12 #672

messense opened this issue Nov 9, 2021 · 0 comments · Fixed by #673
Labels
bug Something isn't working

Comments

@messense
Copy link
Member

messense commented Nov 9, 2021

❯ uname -a
Darwin m1.lan 21.2.0 Darwin Kernel Version 21.2.0: Wed Oct 20 00:23:21 PDT 2021; root:xnu-8019.60.40.0.1~26/RELEASE_ARM64_T8101 arm64
❯ cargo run build --no-sdist -m test-crates/pyo3-pure/Cargo.toml
    Finished dev [unoptimized + debuginfo] target(s) in 0.06s
     Running `target/debug/maturin build --no-sdist -m test-crates/pyo3-pure/Cargo.toml`
🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.6
🐍 Not using a specific python interpreter (With abi3, an interpreter is only required on windows)
📡 Using build options bindings from pyproject.toml
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
⚠️  Warning: Couldn't find the symbol `PyInit_pyo3_pure` in the native library. Python will fail to import this module. If you're using pyo3, check that `#[pymodule]` uses `pyo3_pure` as module name
📖 Found type stub file at pyo3_pure.pyi
📦 Built wheel for abi3 Python ≥ 3.6 to /Users/messense/Projects/maturin/test-crates/pyo3-pure/target/wheels/pyo3_pure-2.1.2-cp36-abi3-macosx_11_0_arm64.whl

Doesn't seem to happen on x86_64 macOS.

@messense messense added the bug Something isn't working label Nov 9, 2021
@messense messense changed the title Falso positive missing PyInit_XXX symbol in native library on arm64 macOS False positive missing PyInit_XXX symbol in native library on arm64 macOS Nov 9, 2021
@messense messense changed the title False positive missing PyInit_XXX symbol in native library on arm64 macOS False positive missing PyInit_XXX symbol in native library on arm64 macOS 12 Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant