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

Failed to build a native library through cargo (aarch64-unknown-linux-gnu) #245

Closed
orhun opened this issue Feb 18, 2024 · 1 comment
Closed

Comments

@orhun
Copy link

orhun commented Feb 18, 2024

Hello! I have a GitHub Action where I build wheels for PyPI using PyO3/maturin-action.

I have a build matrix and the build step only fails for aarch64-unknown-linux-gnu with the following error:

warning: build failed, waiting for other jobs to finish...
💥 maturin failed
  Caused by: Failed to build a native library through cargo
  Caused by: Cargo build finished with "exit status: 101": `"cargo" "rustc" "--release" "--target" "aarch64-unknown-linux-gnu" "--manifest-path" "/home/runner/work/git-cliff/git-cliff/git-cliff/Cargo.toml" "--message-format" "json" "--bin" "git-cliff-completions"`
Error: The process '/usr/bin/docker' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/PyO3/maturin-action/v1/dist/index.js:1702:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/PyO3/maturin-action/v1/dist/index.js:1685:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/PyO3/maturin-action/v1/dist/index.js:1579:27)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

Also there are errors such as:

warning: [email protected]: In file included from /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.7/pregenerated/aesv8-armx-linux64.S:4:0:
warning: [email protected]: include/ring-core/asm_base.h:73:2: error: #error "ARM assembler must define __ARM_ARCH"
warning: [email protected]:  #error "ARM assembler must define __ARM_ARCH"

I attached the full logs.

maturin-aarch64-unknown-linux-gnu.log

Here you can check them out as well: https://github.com/orhun/git-cliff/actions/runs/7948456535/job/21698502551

Let me know if I should report this to PyO3/maturin as well.

@messense
Copy link
Member

See #222

@messense messense closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2024
orhun added a commit to orhun/git-cliff that referenced this issue Feb 18, 2024
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

2 participants