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

Crash report: auditwheel No such file or directory #793

Closed
2 tasks
hombit opened this issue Feb 3, 2022 · 3 comments · Fixed by #794
Closed
2 tasks

Crash report: auditwheel No such file or directory #793

hombit opened this issue Feb 3, 2022 · 3 comments · Fixed by #794
Labels
bug Something isn't working

Comments

@hombit
Copy link
Contributor

hombit commented Feb 3, 2022

Bug Description

I tried to build a wheel for my package inside aarch64 manylinux2014 container

Crash report:

name = 'maturin'
operating_system = 'unix:CentOS'
crate_version = '0.12.6'
explanation = '''
Panic occurred in file 'src/auditwheel/repair.rs' at line 16
'''
cause = 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })'
method = 'Panic'
backtrace = '''

   0:   0x431758 - core::result::unwrap_failed::h8426e3038690cbd0
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/result.rs:1616
   1:   0x5ffaa4 - maturin::auditwheel::repair::find_external_libs::h7e7cb85f7ad128e0
   2:   0x5347f4 - maturin::build_context::BuildContext::auditwheel::hf95c7113299f6a82
   3:   0x5368e0 - maturin::build_context::BuildContext::build_binding_wheels::h8ef480a44f182609
   4:   0x533a90 - maturin::build_context::BuildContext::build_wheels::hc4457e80e9490898
   5:   0x435430 - maturin::run::h8ec1bf88cf675f35
   6:   0x437388 - maturin::main::h0afd0e6fcff1a136
   7:   0x443810 - std::sys_common::backtrace::__rust_begin_short_backtrace::hbcea5cd4a1853f1a
   8:   0x43c4ac - std::rt::lang_start::{{closure}}::h897929e2471d64cb
   9:   0xd65d14 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hc55fd9b99064b010
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/core/src/ops/function.rs:259
                 - std::panicking::try::do_call::he05ba5aa3d103aad
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:403
                 - std::panicking::try::h2c702e3ae5c03a1a
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:367
                 - std::panic::catch_unwind::h28c35660b05e2bb9
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panic.rs:133
                 - std::rt::lang_start_internal::{{closure}}::h7f5f0978f5a86cc9
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/rt.rs:128
                 - std::panicking::try::do_call::h82c5279b929cc8b4
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:403
                 - std::panicking::try::h2ecca7d1bcb56fcb
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panicking.rs:367
                 - std::panic::catch_unwind::h7f565371d49c70b6
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/panic.rs:133
                 - std::rt::lang_start_internal::h9d478e200477864b
                at /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c/library/std/src/rt.rs:128
  10:   0x43a4d0 - main'''

Your Python version (python -V)

Python 3.7

Your pip version (pip -V)

pip 21.3.1

What bindings you're using

pyo3

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

Run manylinux container:
docker run --rm -ti quay.io/pypa/manylinux2014_aarch64:2021-12-12-e5100b5

Commands to run inside the container:

curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
yum install -y openssl-devel gsl-devel
PATH="$PATH:$HOME/.cargo/bin"
git clone https://github.com/light-curve/light-curve-python
cd light-curve-python
git checkout fca246b4544aa2b719e3ea150e7ef063fae7a667  # Current master
cd light-curve
python3.7 -mpip wheel . --no-deps
@hombit hombit added the bug Something isn't working label Feb 3, 2022
messense added a commit to messense/lddtree-rs that referenced this issue Feb 4, 2022
@messense
Copy link
Member

messense commented Feb 4, 2022

The root cause is that quay.io/pypa/manylinux2014_aarch64:2021-12-12-e5100b5 contains a LD_LIBRARY_PATH=/opt/rh/devtoolset-10/root/usr/lib64:/opt/rh/devtoolset-10/root/usr/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst:/usr/local/lib64 env var but /opt/rh/devtoolset-10/root/usr/lib64/dyninst does not exist.

Fixed in messense/lddtree-rs@c7a3007

@messense messense changed the title Crash report Crash report: auditwheel No such file or directory Feb 4, 2022
@messense
Copy link
Member

messense commented Feb 4, 2022

Please try 0.12.7_beta.8.

@hombit
Copy link
Contributor Author

hombit commented Feb 4, 2022

It works, thank you!

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.

2 participants