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

Some arm32 targets are broken #19894

Closed
Validark opened this issue May 8, 2024 · 2 comments
Closed

Some arm32 targets are broken #19894

Validark opened this issue May 8, 2024 · 2 comments
Labels
arch-arm 32-bit ARM bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@Validark
Copy link
Contributor

Validark commented May 8, 2024

Zig Version

0.13.0-dev.74+67455c5e7

Steps to Reproduce and Observed Behavior

Run:

zig init
zig build -Dtarget=arm-linux -Dcpu=cortex_m23 -Doptimize=ReleaseFast

Produces:

install
└─ install zig-empty-test
   └─ zig build-exe zig-empty-test ReleaseFast arm-linux failure
error: error: <inline asm>:1:6: instruction requires: thumb2
            stmfd sp!,{r4,r5,r6,r7}
            ^


error: the following command exited with error code 1:
/home/niles/zig/0.13.0-dev.74+67455c5e7/files/zig build-exe -OReleaseFast -target arm-linux -mcpu cortex_m23 -Mroot=/home/niles/Documents/github/zig-empty-test/src/main.zig --cache-dir /home/niles/Documents/github/zig-empty-test/zig-cache --global-cache-dir /home/niles/.cache/zig --name zig-empty-test --listen=- 
Build Summary: 2/5 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
└─ install zig-empty-test transitive failure
   └─ zig build-exe zig-empty-test ReleaseFast arm-linux failure
error: the following build command failed with exit code 1:
/home/niles/Documents/github/zig-empty-test/zig-cache/o/44e6d89a3b0853b297777f0f42fa275f/build /home/niles/zig/0.13.0-dev.74+67455c5e7/files/zig /home/niles/Documents/github/zig-empty-test /home/niles/Documents/github/zig-empty-test/zig-cache /home/niles/.cache/zig --seed 0xf36f60c5 -Za2a002dbf5025358 -Dtarget=arm-linux -Dcpu=cortex_m23 -Doptimize=ReleaseFast

Expected Behavior

Inline assembly should be valid for whatever target I select.

@Validark Validark added the bug Observed behavior contradicts documented or intended behavior label May 8, 2024
@Vexu Vexu added the arch-arm 32-bit ARM label May 31, 2024
@Vexu Vexu added this to the 1.0.0 milestone May 31, 2024
@alexrp
Copy link
Member

alexrp commented Sep 15, 2024

This looks like a duplicate of #10411.

@alexrp
Copy link
Member

alexrp commented Oct 2, 2024

This looks like a duplicate of #10411.

Confirmed; closing as duplicate.

@alexrp alexrp closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
@alexrp alexrp modified the milestones: 1.0.0, 0.14.0 Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-arm 32-bit ARM bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

3 participants