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

Cross compiling test is broken #2263

Open
konstin opened this issue Oct 18, 2024 · 0 comments
Open

Cross compiling test is broken #2263

konstin opened this issue Oct 18, 2024 · 0 comments

Comments

@konstin
Copy link
Member

konstin commented Oct 18, 2024

The cross compiling test fails with library not found for '-liconv', e.g. https://github.com/PyO3/maturin/actions/runs/11393076991/job/31700604975?pr=2262. I'm not sure how to fix this since we would need to install macos libiconv on ubuntu (?)

error: linking with `/home/runner/.cache/cargo-zigbuild/0.19.3/zigcc-aarch64-apple-darwin-d40.sh` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/hostedtoolcache/Python/3.12.7/x64/bin:/opt/hostedtoolcache/Python/3.12.7/x64:/home/runner/miniconda3/condabin:/opt/hostedtoolcache/sccache/0.7.6/x64:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" VSLANG="1033" ZERO_AR_DATE="1" "/home/runner/.cache/cargo-zigbuild/0.19.3/zigcc-aarch64-apple-darwin-d40.sh" "-Wl,-exported_symbols_list" "-Wl,/tmp/rustcXmgTN2/list" "-arch" "arm64" "/tmp/rustcXmgTN2/symbols.o" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/pyo3_pure.pyo3_pure.7857d0a6738b7d78-cgu.0.rcgu.o" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/pyo3_pure.1bg2vjucjfjoxxg8r6vdbg7ot.rcgu.o" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/libpyo3-da291201be35ba93.rlib" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/libcfg_if-1d244ec576644370.rlib" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/libmemoffset-f6f6ba3b5027a40b.rlib" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/libonce_cell-7be1325546130941.rlib" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/libpyo3_ffi-e929340d558b196d.rlib" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/liblibc-71af4d0ba6e8fa06.rlib" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/libunindent-0cfaa4867a6a45fc.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libstd-0b4a354a5d882f18.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-00e89274fccf37d9.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libobject-16cb3fa9562569e5.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-726032628236814d.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-3a2050392888e443.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libgimli-22481e5f0a7ce87c.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-99efda3e7d60c7d0.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-97279fd1ed4043e6.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-14aec4517faeb95b.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-ce8f05ca22908841.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-45050aa8ac83ac5c.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libadler-3a0b6babb2efec9c.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libunwind-41b79f23e35577db.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-7831295d10c91204.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/liblibc-f86e480d5dcc309d.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/liballoc-a7504b44dda8a2a3.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-589a9d977c5a484f.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libcore-a17e2a568e77fc15.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-791901bf82ad4f12.rlib" "-liconv" "-lSystem" "-lc" "-lm" "-o" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/target/aarch64-apple-darwin/debug/deps/libpyo3_pure.dylib" "-Wl,-dead_strip" "-dynamiclib" "-Wl,-dylib" "-nodefaultlibs" "-undefined" "dynamic_lookup" "-Wl,-install_name,@rpath/pyo3_pure.abi3.so"
  = note: warning(link): library not found for '-liconv'
          warning(link): Library search paths:
          error: LibraryNotFound
          

error: could not compile `pyo3-pure` (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 AR_aarch64_apple_darwin="/home/runner/.cache/cargo-zigbuild/0.19.3/ar" CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER="/home/runner/.cache/cargo-zigbuild/0.19.3/zigcc-aarch64-apple-darwin-d40.sh" CC_aarch64_apple_darwin="/home/runner/.cache/cargo-zigbuild/0.19.3/zigcc-aarch64-apple-darwin-d40.sh" CMAKE_TOOLCHAIN_FILE_aarch64_apple_darwin="/home/runner/.cache/cargo-zigbuild/0.19.3/cmake/aarch64-apple-darwin-toolchain.cmake" CXX_aarch64_apple_darwin="/home/runner/.cache/cargo-zigbuild/0.19.3/zigcxx-aarch64-apple-darwin-d40.sh" MACOSX_DEPLOYMENT_TARGET="11.0" RANLIB_aarch64_apple_darwin="/home/runner/.cache/cargo-zigbuild/0.19.3/zigranlib.sh" ZIG_COMMAND="/opt/hostedtoolcache/Python/3.12.7/x64/bin/python3 -m ziglang" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo" "rustc" "--target" "aarch64-apple-darwin" "--message-format" "json-render-diagnostics" "--manifest-path" "/home/runner/work/maturin/maturin/test-crates/pyo3-pure/Cargo.toml" "--lib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/pyo3_pure.abi3.so"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant