-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
libblst does not get statically linked when sccache is present #260
Comments
Since this has gone uncommented on for a year, I supplied the details to ChatGPT o1 for any ideas or approaches, included below the fold Click to showThis kind of error—where symbols turn up missing or become globally visible in unexpected ways when using 1) sccache Not Reproducing the Exact Compile Environment
Possible fix:
2) Different Link-Time Optimization or Visibility FlagsSome libraries rely on LTO or Possible fix:
3) Mix of Static and Dynamic LinkingIf Possible fix:
4) A Bug in the Library’s
|
Bug Description
per title, a project which depends on the
blst
package ends up withGLOBAL
(as reported byreadelf
) references toblst_p2_to_affine
instead ofLOCAL
symbols when compiling with sccache enabled in a github action (usingmaturin-action
). the resulting wheel fails at runtime withImportError... undefined symbol: blst_p2_to_affine
Your maturin version (
maturin --version
)1.5.1
Your Python version (
python -V
)n/a
Your pip version (
pip -V
)n/a
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
https://github.com/paradigmxyz/pyrevm/actions/runs/8680598504
i've archived the log for linux-x86_64 at https://gist.github.com/charles-cooper/2fd01dc60fabea7815e8b8cc62fc8652. the same problem exists for both cffi and pyo3 (i did not check other bindings).
The text was updated successfully, but these errors were encountered: