crwood / lafs

Least-Authority File Store utils
MIT License
1 stars 0 forks source link

`maturin` build failures on macOS/GHA when used with other pyo3-dependent projects #12

Open crwood opened 1 week ago

crwood commented 1 week ago

As seen in this GitHub Actions CI run (from deterministic-keygen -- a project that uses lafs as a dependency), a crate that depends on "lafs" but which also uses pyo3, will fail to build on macOS with various clang/linker errors when invoked with pip/maturin, as follows:

py39: install_package> python -I -m pip install --force-reinstall --no-deps /Users/runner/work/deterministic-keygen/deterministic-keygen/.tox/.tmp/package/1/deterministic_keygen-0.0.7.tar.gz
  error: subprocess-exited-with-error

  × Building wheel for deterministic-keygen (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [226 lines of output]
      Running `maturin pep517 build-wheel -i /Users/runner/work/deterministic-keygen/deterministic-keygen/.tox/py39/bin/python --compatibility off`
      🔗 Found pyo3 bindings
      🐍 Found CPython 3.9 at /Users/runner/work/deterministic-keygen/deterministic-keygen/.tox/py39/bin/python
      📡 Using build options features from pyproject.toml
      💻 Using `MACOSX_DEPLOYMENT_TARGET=11.0` for aarch64-apple-darwin by default
         Compiling proc-macro2 v1.0.86
         Compiling unicode-ident v1.0.13
         Compiling target-lexicon v0.12.16
         Compiling libc v0.2.158
         Compiling pyo3-build-config v0.22.3
         Compiling version_check v0.9.5
         Compiling quote v1.0.37
         Compiling syn v2.0.77
         Compiling typenum v1.17.0
         Compiling generic-array v0.14.7
         Compiling const-oid v0.9.6
         Compiling once_cell v1.19.0
         Compiling autocfg v1.3.0
         Compiling cfg-if v1.0.0
         Compiling getrandom v0.2.15
         Compiling subtle v2.6.1
         Compiling libm v0.2.8
         Compiling byteorder v1.5.0
         Compiling crypto-common v0.1.6
         Compiling block-buffer v0.10.4
         Compiling digest v0.10.7
         Compiling rand_core v0.6.4
         Compiling num-traits v0.2.19
         Compiling base64ct v1.6.0
         Compiling pem-rfc7468 v0.7.0
         Compiling pyo3-ffi v0.22.3
         Compiling pyo3-macros-backend v0.22.3
         Compiling num-integer v0.1.46
         Compiling memoffset v0.9.1
         Compiling spin v0.9.8
         Compiling shlex v1.3.0
         Compiling heck v0.5.0
         Compiling zeroize_derive v1.4.2
         Compiling zerocopy-derive v0.7.35
         Compiling arrayvec v0.7.6
         Compiling num-bigint-dig v0.8.4
         Compiling zeroize v1.8.1
         Compiling der v0.7.9
         Compiling zerocopy v0.7.35
         Compiling ppv-lite86 v0.2.20
         Compiling rand_chacha v0.3.1
         Compiling rand v0.8.5
         Compiling spki v0.7.3
         Compiling pkcs8 v0.10.2
         Compiling cc v1.1.21
         Compiling num-iter v0.1.45
         Compiling lazy_static v1.5.0
         Compiling pyo3 v0.22.3
         Compiling smallvec v1.13.2
         Compiling tinyvec_macros v0.1.1
         Compiling anyhow v1.0.89
         Compiling thiserror v1.0.63
         Compiling tinyvec v1.8.0
         Compiling blake3 v1.5.4
         Compiling pkcs1 v0.7.5
         Compiling pyo3-macros v0.22.3
         Compiling hex-conservative v0.2.1
         Compiling thiserror-impl v1.0.63
         Compiling signature v2.2.0
         Compiling cpufeatures v0.2.14
         Compiling unindent v0.2.3
         Compiling indoc v2.0.5
         Compiling bitcoin-io v0.1.2
         Compiling bitcoin_hashes v0.14.0
         Compiling sha2 v0.10.8
         Compiling rsa v0.9.6
         Compiling unicode-normalization v0.1.24
         Compiling hmac v0.12.1
         Compiling pbkdf2 v0.11.0
         Compiling rustc-hash v1.1.0
         Compiling arrayref v0.3.9
         Compiling constant_time_eq v0.3.1
         Compiling data-encoding v2.6.0
         Compiling tiny-bip39 v1.0.0
         Compiling lafs v0.0.3
      error: linking with `cc` failed: exit status: 1
        |
        = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin:/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-build-env-knzm8usa/overlay/bin:/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-build-env-knzm8usa/normal/bin:/Users/runner/work/deterministic-keygen/deterministic-keygen/.tox/py39/bin:/Users/runner/hostedtoolcache/Python/3.10.11/arm64/bin:/Users/runner/hostedtoolcache/Python/3.10.11/arm64:/opt/homebrew/lib/ruby/gems/3.0.0/bin:/opt/homebrew/opt/ruby@3.0/bin:/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/runner/.cargo/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/runner/.dotnet/tools" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-Wl,-exported_symbols_list" "-Wl,/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/rustcLn6PbN/list" "-arch" "arm64" "/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/rustcLn6PbN/symbols.o" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/lafs-f053351390ecead4.lafs.eb2266000c5abacf-cgu.0.rcgu.o" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/lafs-f053351390ecead4.lafs.eb2266000c5abacf-cgu.1.rcgu.o" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/lafs-f053351390ecead4.lafs.eb2266000c5abacf-cgu.2.rcgu.o" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/lafs-f053351390ecead4.e4z0r5zbpl9rwwkxtjn574lbh.rcgu.o" "-L" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps" "-L" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libbitcoin_hashes-be36a07c9eda6b6e.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libbitcoin_io-46b077194038fa07.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libhex_conservative-f7884ed445addf85.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libarrayvec-c985a7bed2e3c9c4.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libdata_encoding-16b0389d4713ccad.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libpyo3-981238eac64d2cca.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libmemoffset-005f4fabdd4a3792.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libonce_cell-aaa5ee6a460db2bc.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libpyo3_ffi-96d9145c42168134.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libunindent-ff244730df6b67b3.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/librsa-7e98214f2a57924a.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libpkcs1-2b7eb1482c5a097d.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libpkcs8-190c159039c5f5fc.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libspki-ab57beca567be752.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libder-7a4ce9fe65519775.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libpem_rfc7468-4d66853d16323bb7.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libbase64ct-4a88d5d2f676964f.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libsignature-1292784286f6337b.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libdigest-a4493e76a0750507.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libsubtle-1e10e868cd9fec18.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libconst_oid-f6396af350d71ddd.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libblock_buffer-2d2d90f0899a7b0f.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libcrypto_common-c32a1d8644c86cf0.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libgeneric_array-f123e82097dafccf.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libtypenum-3774081503333f80.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libnum_bigint_dig-d86082e2e3ceea0c.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libnum_iter-9c78c5f095f73ce8.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/librand-e316194e08854aff.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/librand_chacha-87c5db72800e17ff.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libppv_lite86-bd0aaaa4f70b93f2.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libzerocopy-7b9cb86c16ab090e.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libbyteorder-11bdc19e876bc417.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/librand_core-d74ed6dd64fcdb21.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libgetrandom-1f23be5387ea9eb3.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/liblibc-fb91080ee7bb72f9.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libcfg_if-c88135ad46ac983d.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libzeroize-762eb2dcbc06050a.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libnum_integer-0beb98df36ab17b7.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libnum_traits-e5d0b27ecc4d17c4.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/liblibm-5399590113e44839.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/liblazy_static-f2ccc358d7669c8f.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libspin-5ab14e86f51525b9.rlib" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/libsmallvec-6ed97ea5e792ec4c.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-0f9bda72675979e4.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-51773ba94f264ce4.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-79130ad3ad7802b2.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-81f43cdd1f7d7095.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-12c2628c83917178.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-34000eb5b4402af9.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-6e14ac007075e94c.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-bd30e1a2296ebf34.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-44fc4705e85ac7ca.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-f11d6ba5d61218f4.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-a1543c9c7e6c02bb.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-7efc4608b0bc96f7.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-85a6d450f72e1aab.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-cf81a5498b42604d.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-4484e05b7089b5ef.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-3d4e98832b983b89.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-a22427de72ab3630.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-d8cea91d43634f65.rlib" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-b1f27438890f45b3.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/target/release/deps/liblafs-f053351390ecead4.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs"
        = note: Undefined symbols for architecture arm64:
                  "_PyBytes_AsString", referenced from:
                      pyo3::types::string::_$LT$impl$u20$pyo3..instance..Borrowed$LT$pyo3..types..string..PyString$GT$$GT$::to_string_lossy::hda67952096969f1d (.llvm.1319705242213834493) in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      pyo3::conversions::std::slice::_$LT$impl$u20$pyo3..conversion..FromPyObjectBound$u20$for$u20$$RF$$u5b$u8$u5d$$GT$::from_py_object_bound::h84514a4f63bc8a86 in libpyo3-981238eac64d2cca.rlib[13](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.10.rcgu.o)
                  "_PyBytes_FromStringAndSize", referenced from:
                      pyo3::types::bytes::PyBytes::new_bound::hf8df8b4ba038b6ba in libpyo3-981238eac64d2cca.rlib[15](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.12.rcgu.o)
                  "_PyBytes_Size", referenced from:
                      pyo3::types::string::_$LT$impl$u20$pyo3..instance..Borrowed$LT$pyo3..types..string..PyString$GT$$GT$::to_string_lossy::hda67952096969f1d (.llvm.1319705242213834493) in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      pyo3::conversions::std::slice::_$LT$impl$u20$pyo3..conversion..FromPyObjectBound$u20$for$u20$$RF$$u5b$u8$u5d$$GT$::from_py_object_bound::h84514a4f63bc8a86 in libpyo3-981238eac64d2cca.rlib[13](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.10.rcgu.o)
                  "_PyCMethod_New", referenced from:
                      pyo3::types::function::PyCFunction::internal_new::hd28c49ec32556691 in libpyo3-981238eac64d2cca.rlib[14](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.11.rcgu.o)
                  "_PyErr_Fetch", referenced from:
                      pyo3::err::PyErr::take::hbfb1717d7ad3494b in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                      pyo3::err::err_state::lazy_into_normalized_ffi_tuple::h6a1dae95111101c6 (.llvm.10249045969829128490) in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                  "_PyErr_GivenExceptionMatches", referenced from:
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..module..PyModule$GT$$u20$as$u20$pyo3..types..module..PyModuleMethods$GT$::index::h7f7da7dec5a0aaad in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                  "_PyErr_NewExceptionWithDoc", referenced from:
                      pyo3::err::PyErr::new_type_bound::he1ec72c76f8861c9 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                      pyo3::err::PyErr::new_type_bound::he1ec72c76f8861c9 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                  "_PyErr_NormalizeException", referenced from:
                      pyo3::err::err_state::PyErrState::normalize::hd3d6bcc9909266f9 in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                      pyo3::err::err_state::lazy_into_normalized_ffi_tuple::h6a1dae95111101c6 (.llvm.10249045969829128490) in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                  "_PyErr_Print", referenced from:
                      pyo3::err::panic_after_error::hf426cf4443f5f534 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                  "_PyErr_PrintEx", referenced from:
                      pyo3::err::PyErr::print_panic_and_unwind::ha7451636fa652171 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                  "_PyErr_Restore", referenced from:
                      pyo3::instance::python_format::h89648a339c45e77b in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      pyo3::err::PyErr::print_panic_and_unwind::ha7451636fa652171 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                      pyo3::err::err_state::PyErrState::restore::hb0a9a26dc532ca07 in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                      pyo3::err::err_state::PyErrState::restore::hb0a9a26dc532ca07 in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                      pyo3::err::err_state::PyErrState::restore::hb0a9a26dc532ca07 in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                  "_PyErr_SetObject", referenced from:
                      pyo3::err::err_state::lazy_into_normalized_ffi_tuple::h6a1dae95111101c6 (.llvm.10249045969829128490) in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                  "_PyErr_SetString", referenced from:
                      pyo3::err::err_state::lazy_into_normalized_ffi_tuple::h6a1dae95111101c6 (.llvm.10249045969829128490) in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                  "_PyErr_WriteUnraisable", referenced from:
                      pyo3::instance::python_format::h89648a339c45e77b in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                  "_PyExc_AttributeError", referenced from:
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..module..PyModule$GT$$u20$as$u20$pyo3..types..module..PyModuleMethods$GT$::index::h7f7da7dec5a0aaad in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                  "_PyExc_BaseException", referenced from:
                      pyo3::sync::GILOnceCell$LT$T$GT$::init::h851b19746e42b234 in libpyo3-981238eac64d2cca.rlib[12](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.09.rcgu.o)
                  "_PyExc_ImportError", referenced from:
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hbad1dbb2d72901b5 in libpyo3-981238eac64d2cca.rlib[13](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.10.rcgu.o)
                  "_PyExc_SystemError", referenced from:
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 (.llvm.1319705242213834493) in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 (.llvm.1974058883279607840) in libpyo3-981238eac64d2cca.rlib[6](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.03.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 (.llvm.14020937174147706238) in libpyo3-981238eac64d2cca.rlib[12](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.09.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 (.llvm.7866651410342199036) in libpyo3-981238eac64d2cca.rlib[13](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.10.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 in libpyo3-981238eac64d2cca.rlib[14](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.11.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 (.llvm.10249045969829128490) in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                      ...
                  "_PyExc_TypeError", referenced from:
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h4d08cb6a925932f3 (.llvm.8067080751568521879) in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h9015be2c7326ad49 in libpyo3-981238eac64d2cca.rlib[8](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.05.rcgu.o)
                      pyo3::impl_::extract_argument::argument_extraction_error::he16720f3aeb0bb98 in libpyo3-981238eac64d2cca.rlib[8](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.05.rcgu.o)
                      pyo3::err::err_state::lazy_into_normalized_ffi_tuple::h6a1dae95111101c6 (.llvm.10249045969829128490) in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                  "_PyException_GetCause", referenced from:
                      pyo3::impl_::extract_argument::argument_extraction_error::he16720f3aeb0bb98 in libpyo3-981238eac64d2cca.rlib[8](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.05.rcgu.o)
                  "_PyException_GetTraceback", referenced from:
                      pyo3::err::PyErr::from_value_bound::h4fc93bf6a0cca5d7 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                  "_PyException_SetCause", referenced from:
                      pyo3::impl_::extract_argument::argument_extraction_error::he16720f3aeb0bb98 in libpyo3-981238eac64d2cca.rlib[8](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.05.rcgu.o)
                  "_PyException_SetTraceback", referenced from:
                      pyo3::err::PyErr::into_value::he829860773d940b8 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                  "_PyGILState_Ensure", referenced from:
                      pyo3::gil::GILGuard::acquire::h7f6dd748eb97feb5 in libpyo3-981238eac64d2cca.rlib[5](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.02.rcgu.o)
                  "_PyGILState_Release", referenced from:
                      _$LT$pyo3..gil..GILGuard$u20$as$u20$core..ops..drop..Drop$GT$::drop::hc6e9dc01156dfbd8 in libpyo3-981238eac64d2cca.rlib[5](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.02.rcgu.o)
                  "_PyInterpreterState_Get", referenced from:
                      pyo3::impl_::pymodule::ModuleDef::make_module::hb893a74dcd172eed in libpyo3-981238eac64d2cca.rlib[13](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.10.rcgu.o)
                  "_PyInterpreterState_GetID", referenced from:
                      pyo3::impl_::pymodule::ModuleDef::make_module::hb893a74dcd172eed in libpyo3-981238eac64d2cca.rlib[13](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.10.rcgu.o)
                  "_PyList_Append", referenced from:
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..list..PyList$GT$$u20$as$u20$pyo3..types..list..PyListMethods$GT$::append::inner::hd4faeedacbc9d87f in libpyo3-981238eac64d2cca.rlib[18](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.15.rcgu.o)
                  "_PyList_New", referenced from:
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..module..PyModule$GT$$u20$as$u20$pyo3..types..module..PyModuleMethods$GT$::index::h7f7da7dec5a0aaad in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                  "_PyLong_AsUnsignedLongLong", referenced from:
                      pyo3::conversions::std::num::_$LT$impl$u20$pyo3..conversion..FromPyObject$u20$for$u20$u64$GT$::extract_bound::h06cf074076cc915c in libpyo3-981238eac64d2cca.rlib[14](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.11.rcgu.o)
                      pyo3::conversions::std::num::_$LT$impl$u20$pyo3..conversion..FromPyObject$u20$for$u20$u64$GT$::extract_bound::h06cf074076cc915c in libpyo3-981238eac64d2cca.rlib[14](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.11.rcgu.o)
                  "_PyModule_Create2", referenced from:
                      pyo3::sync::GILOnceCell$LT$T$GT$::init::hc8107b6edcdf8f0b in libpyo3-981238eac64d2cca.rlib[12](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.09.rcgu.o)
                  "_PyModule_GetNameObject", referenced from:
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..module..PyModule$GT$$u20$as$u20$pyo3..types..module..PyModuleMethods$GT$::add_submodule::h5fe3dd7719ebf188 in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      pyo3::types::function::PyCFunction::internal_new::hd28c49ec32556691 in libpyo3-981238eac64d2cca.rlib[14](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.11.rcgu.o)
                  "_PyNumber_Index", referenced from:
                      pyo3::conversions::std::num::_$LT$impl$u20$pyo3..conversion..FromPyObject$u20$for$u20$u64$GT$::extract_bound::h06cf074076cc915c in libpyo3-981238eac64d2cca.rlib[14](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.11.rcgu.o)
                  "_PyObject_GetAttr", referenced from:
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..any..PyAny$GT$$u20$as$u20$pyo3..types..any..PyAnyMethods$GT$::getattr::inner::hf611769af1f6ba7c in libpyo3-981238eac64d2cca.rlib[6](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.03.rcgu.o)
                  "_PyObject_Repr", referenced from:
                      _$LT$$RF$T$u20$as$u20$core..fmt..Debug$GT$::fmt::h10a4ee8e4d2266e8 in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      _$LT$pyo3..instance..Bound$LT$T$GT$$u20$as$u20$core..fmt..Debug$GT$::fmt::h4e3a55aa5921dae6 in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                  "_PyObject_SetAttr", referenced from:
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..any..PyAny$GT$$u20$as$u20$pyo3..types..any..PyAnyMethods$GT$::setattr::inner::hc44902585e50ec3f in libpyo3-981238eac64d2cca.rlib[6](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.03.rcgu.o)
                  "_PyObject_Str", referenced from:
                      _$LT$$RF$T$u20$as$u20$core..fmt..Display$GT$::fmt::h3a65ab436aa2fcbc in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      _$LT$pyo3..instance..Bound$LT$T$GT$$u20$as$u20$core..fmt..Display$GT$::fmt::h5bb7491be959abff in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      pyo3::err::PyErr::_take::_$u7b$$u7b$closure$u7d$$u7d$::haee7519c68e58ac0 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                  "_PyTuple_New", referenced from:
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h1b7886bf55c9e7d8 in libpyo3-981238eac64d2cca.rlib[11](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.08.rcgu.o)
                      _$LT$T$u20$as$u20$pyo3..err..err_state..PyErrArguments$GT$::arguments::ha233287618c44283 in libpyo3-981238eac64d2cca.rlib[15](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.12.rcgu.o)
                  "_PyUnicode_AsEncodedString", referenced from:
                      pyo3::types::string::_$LT$impl$u20$pyo3..instance..Borrowed$LT$pyo3..types..string..PyString$GT$$GT$::to_string_lossy::hda67952096969f1d (.llvm.1319705242213834493) in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                  "_PyUnicode_AsUTF8AndSize", referenced from:
                      pyo3::types::string::_$LT$impl$u20$pyo3..instance..Borrowed$LT$pyo3..types..string..PyString$GT$$GT$::to_str::hea05818dfe2a6f25 in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      pyo3::types::string::_$LT$impl$u20$pyo3..instance..Borrowed$LT$pyo3..types..string..PyString$GT$$GT$::to_string_lossy::hda67952096969f1d (.llvm.1319705242213834493) in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      _$LT$pyo3..err..PyDowncastErrorArguments$u20$as$u20$pyo3..err..err_state..PyErrArguments$GT$::arguments::h1b62742fbd82469b in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                  "_PyUnicode_FromStringAndSize", referenced from:
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 (.llvm.1319705242213834493) in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                      _$LT$pyo3..err..PyDowncastErrorArguments$u20$as$u20$pyo3..err..err_state..PyErrArguments$GT$::arguments::h1b62742fbd82469b in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::hb40af9387edabe02 (.llvm.1974058883279607840) in libpyo3-981238eac64d2cca.rlib[6](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.03.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h9015be2c7326ad49 in libpyo3-981238eac64d2cca.rlib[8](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.05.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h1b7886bf55c9e7d8 in libpyo3-981238eac64d2cca.rlib[11](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.08.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h1b7886bf55c9e7d8 in libpyo3-981238eac64d2cca.rlib[11](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.08.rcgu.o)
                      ...
                  "_PyUnicode_InternInPlace", referenced from:
                      pyo3::sync::GILOnceCell$LT$T$GT$::init::hff19d9083a0f7e94 in libpyo3-981238eac64d2cca.rlib[12](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.09.rcgu.o)
                  "_Py_IsInitialized", referenced from:
                      std::sync::once::Once::call_once_force::_$u7b$$u7b$closure$u7d$$u7d$::hf59ecd81d4184cae in libpyo3-981238eac64d2cca.rlib[5](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.02.rcgu.o)
                      core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h3a052ec9dd59aab9 in libpyo3-981238eac64d2cca.rlib[5](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.02.rcgu.o)
                  "__Py_Dealloc", referenced from:
                      pyo3::instance::python_format::h89648a339c45e77b in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      pyo3::instance::python_format::h89648a339c45e77b in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      pyo3::instance::python_format::h89648a339c45e77b in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      pyo3::instance::python_format::h89648a339c45e77b in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..module..PyModule$GT$$u20$as$u20$pyo3..types..module..PyModuleMethods$GT$::index::h7f7da7dec5a0aaad in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..module..PyModule$GT$$u20$as$u20$pyo3..types..module..PyModuleMethods$GT$::index::h7f7da7dec5a0aaad in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..module..PyModule$GT$$u20$as$u20$pyo3..types..module..PyModuleMethods$GT$::index::h7f7da7dec5a0aaad in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      _$LT$pyo3..instance..Bound$LT$pyo3..types..module..PyModule$GT$$u20$as$u20$pyo3..types..module..PyModuleMethods$GT$::index::h7f7da7dec5a0aaad in libpyo3-981238eac64d2cca.rlib[3](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.00.rcgu.o)
                      ...
                  "__Py_NoneStruct", referenced from:
                      pyo3::err::PyErr::from_value_bound::h4fc93bf6a0cca5d7 in libpyo3-981238eac64d2cca.rlib[4](pyo3-981238eac64d2cca.pyo3.93d7567a86cdc200-cgu.01.rcgu.o)
                ld: symbol(s) not found for architecture arm64
                clang: error: linker command failed with exit code 1 (use -v to see invocation)

      error: could not compile `lafs` (lib) due to 1 previous error
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `env -u CARGO MACOSX_DEPLOYMENT_TARGET="11.0" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.9-64bit" PYO3_PYTHON="/Users/runner/work/deterministic-keygen/deterministic-keygen/.tox/py39/bin/python" PYTHON_SYS_EXECUTABLE="/Users/runner/work/deterministic-keygen/deterministic-keygen/.tox/py39/bin/python" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/private/var/folders/n3/x0zngmn15fzg2jfkglj4ys4w0000gn/T/pip-req-build-kapijapd/Cargo.toml" "--release" "--lib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/deterministic_keygen.cpython-39-darwin.so"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/Users/runner/work/deterministic-keygen/deterministic-keygen/.tox/py39/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for deterministic-keygen
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (deterministic-keygen)

Note that this has only been observed on GitHub Actions' macOS environments. I have not yet tested on other macOS environments.

Temporarily removing the (lafs) pyo3 bindings altogether results in the build succeeding, which broadly suggests some deeper problem with pyo3-based projects depending on other pyo3-based projects.

Since this project is not yet suitable as a drop-in replacement for the "allmydata" python modules and has no other known consumers/users, it might make sense, for now, to disable (or otherwise make optional?) the pyo3 bindings until the underlying problem is better understood or can be resolved.

In any case, further investigation is warranted...

crwood commented 1 week ago

Related upstream issue: https://github.com/PyO3/maturin/issues/1080