Skip to content

Failed to build on armv7 musl target on Alpine Linux #415

Closed
@messense

Description

@messense

https://gitlab.alpinelinux.org/messense/aports/-/jobs/853878

rustc version information:

$ rustc -vV
rustc 1.64.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: armv7-alpine-linux-musleabihf
release: 1.64.0
LLVM version: 14.0.6

error message:

error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
  --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:13:9
   |
13 |         in("r7") nr.to_asm(),
   |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
  --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:25:9
   |
25 |         in("r7") nr.to_asm(),
   |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
  --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:40:9
   |
40 |         in("r7") nr.to_asm(),
   |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
  --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:51:9
   |
51 |         in("r7") nr.to_asm(),
   |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
  --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:66:9
   |
66 |         in("r7") nr.to_asm(),
   |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
  --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:83:9
   |
83 |         in("r7") nr.to_asm(),
   |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
   --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:101:9
    |
101 |         in("r7") nr.to_asm(),
    |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
   --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:120:9
    |
120 |         in("r7") nr.to_asm(),
    |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
   --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e[596](https://gitlab.alpinelinux.org/messense/aports/-/jobs/853878#L596)3aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:140:9
    |
140 |         in("r7") nr.to_asm(),
    |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
   --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:161:9
    |
161 |         in("r7") nr.to_asm(),
    |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
   --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:183:9
    |
183 |         in("r7") nr.to_asm(),
    |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
   --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:206:9
    |
206 |         in("r7") nr.to_asm(),
    |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
   --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:230:9
    |
230 |         in("r7") nr.to_asm(),
    |         ^^^^^^^^^^^^^^^^^^^^
error: cannot use register `r7`: the frame pointer (r7) cannot be used as an operand for inline asm
   --> /home/buildozer/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.35.10/src/backend/linux_raw/arch/inline/arm.rs:255:9
    |
255 |         in("r7") nr.to_asm(),
    |         ^^^^^^^^^^^^^^^^^^^^
   Compiling console v0.15.1
   Compiling rand_core v0.6.4
   Compiling uuid v0.8.2
   Compiling time v0.3.14
   Compiling charset v0.1.3
   Compiling addr2line v0.17.0
   Compiling dirs v4.0.0
   Compiling nb-connect v1.2.0
   Compiling matchers v0.1.0
   Compiling num-complex v0.4.2
   Compiling url v2.3.1
   Compiling parking_lot v0.12.1
   Compiling tar v0.4.38
   Compiling digest v0.9.0
   Compiling crypto-mac v0.11.1
   Compiling block-buffer v0.10.3
error: could not compile `rustix` due to 14 previous errors
warning: build failed, waiting for other jobs to finish...

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