PyO3 / maturin-action

GitHub Action to install and run a custom maturin command with built-in support for cross compilation
MIT License
123 stars 31 forks source link

libblst does not get statically linked when sccache is present #260

Open charles-cooper opened 2 months ago

charles-cooper commented 2 months ago

Bug Description

per title, a project which depends on the blst package ends up with GLOBAL (as reported by readelf) references to blst_p2_to_affine instead of LOCAL symbols when compiling with sccache enabled in a github action (using maturin-action). the resulting wheel fails at runtime with ImportError... 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).