Skip to content

loongarch64 musl need enable a static runtime #110

@wojiushixiaobai

Description

@wojiushixiaobai

After some basic testing, it was discovered that the loongarch64-unknown-linux-musl target requires manual configuration to enable the static runtime, similar to the mips64 target as shown here:

Install Rust target
  info: downloading component 'rust-std' for 'loongarch64-unknown-linux-musl'
  info: installing component 'rust-std' for 'loongarch64-unknown-linux-musl'
🔗 Found bin bindings
📡 Using build options bindings from pyproject.toml
🎯 Found 2 Cargo targets in `Cargo.toml`: foo, hello-world
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.01s
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.01s
💥 maturin failed
  Caused by: Cannot repair wheel, because required library libgcc_s-c0abacde.so.1 could not be located.
Error: The process '/usr/bin/docker' failed with exit code 1
    at ExecState._setResult (/home/runner/work/maturin-action/maturin-action/dist/index.js:1823:25)
    at ExecState.CheckComplete (/home/runner/work/maturin-action/maturin-action/dist/index.js:1[80](https://github.com/loong64/maturin-action/actions/runs/15127990432/job/42523723034#step:8:85)6:18)
    at ChildProcess.<anonymous> (/home/runner/work/maturin-action/maturin-action/dist/index.js:1700:27)
    at ChildProcess.emit (node:events:524:28)
    at maybeClose (node:internal/child_process:1104:16)
    at ChildProcess._handle.onexit (node:internal/child_process:304:5)
env:
    RUST_BACKTRACE: '1'
    CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS: '-C target-feature=+crt-static'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions