You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "jerpelea (via GitHub)" <gi...@apache.org> on 2026/08/03 08:55:55 UTC
[PR] {bp-19477} tools/Zig.defs: Fix Zig builds on sim:x86_64 [nuttx]
jerpelea opened a new pull request, #19631:
URL: https://github.com/apache/nuttx/pull/19631
## Summary
Building Zig applications on sim:x86_64 with Zig 0.13.0 fails because the generated target "x86_64-freestanding-sysv" is not recognized by Zig. Introduce a Zig-specific ABI mapping that translates "sysv" to "gnu" without affecting other toolchains.
After correcting the target ABI, linking still fails due to unresolved references to __zig_probe_stack. Add -fcompiler-rt so Zig includes the required compiler runtime during linking.
Verified on sim:nsh with CONFIG_EXAMPLES_HELLO_ZIG=y:
nsh> hello_zig
[sim]: Hello, Zig!
Fixes #19475
## Impact
RELEASE
## Testing
CI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] {bp-19477} tools/Zig.defs: Fix Zig builds on sim:x86_64 [nuttx]
Posted by "cederom (via GitHub)" <gi...@apache.org>.
cederom commented on PR #19631:
URL: https://github.com/apache/nuttx/pull/19631#issuecomment-5165530703
-> releases/13.0 not 13.0.1 or 13.1.0 ? :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] {bp-19477} tools/Zig.defs: Fix Zig builds on sim:x86_64 [nuttx]
Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #19631:
URL: https://github.com/apache/nuttx/pull/19631
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] {bp-19477} tools/Zig.defs: Fix Zig builds on sim:x86_64 [nuttx]
Posted by "jerpelea (via GitHub)" <gi...@apache.org>.
jerpelea commented on PR #19631:
URL: https://github.com/apache/nuttx/pull/19631#issuecomment-5165640351
> -> releases/13.0 not 13.0.1 or 13.1.0 ? :-)
13.0.1 fix release (ASAP)
13.1.0 minor release (end of September)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org