-
Notifications
You must be signed in to change notification settings - Fork 760
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
python ld flags not detected... #4068
Comments
Can you describe what you're doing and what the problem is here in some more detail? |
i tried to built a wheel of rpds-py with maturin for testing purposes, but the linker crashes with unresolved symbols.
after adding the python libs manually to $RUSTFLAGS the linker runs ok. i might be completely wrong, but i expexted this to happen automatically.
|
Python extension modules should not link I don't know anything about AIX, does its linker require all symbols resolved when building a shared library? |
hmm...definitly not...run time linking is no problem...but this is a good point...will check back with the ibm guys |
In AIX, Python extension modules still links to libpython. The reason behind this is python is not built using runtime linking (-brtl) in AIX as it introduces slowness in symbol resolution. So the extension modules requires libpython linking, otherwise the modules will not be useable when python is embedded. |
Makes sense, we already have an exemption for Android and we can add the same for AIX. |
os: AIX
rust: rustc 1.76.0-dev (fcce8cab4 2023-12-26) (IBM SDK for Rust on AIX)
maturin: 1.5.1
python ldflags are not detected, build fails...
after adding it to rustflags build succeeds...
root@nimvie: /tmp/rpds_py-0.18.0 # python3.9-config --ldflags
-L/usr/opt/python3/lib -lpython3.9 -lintl -ldl -lm -lm
The text was updated successfully, but these errors were encountered: