Skip to content

apps/tools: Enable Rust sim builds on Intel Macs#3530

Merged
lupyuen merged 1 commit into
apache:masterfrom
toku-mac:enable_rust_sim_intel_mac
Jun 8, 2026
Merged

apps/tools: Enable Rust sim builds on Intel Macs#3530
lupyuen merged 1 commit into
apache:masterfrom
toku-mac:enable_rust_sim_intel_mac

Conversation

@toku-mac

@toku-mac toku-mac commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Make the Rust app build pick the correct x86_64 target triple for the NuttX simulator on Intel macOS.
This complements the corresponding nuttx repo change that adds the x86_64 Mach-O Rust target.

Testing

I confirm that changes are verified on local setup and works as intended:

  • Build Host(s): OS (macOS 14.8), CPU(Intel Core i7), compiler(Apple clang version 16.0.0)
  • Target(s): arch(sim)
  • Ensure your PATH environment variable is properly configured to allow execution of: menuconfig, olddefconfig, savedefconfig, and setconfig.
  • Use the Rust toolchain version prior to nightly-2026-04-29 to avoid errors related to lib/rustlib/src/rust/library/std/src/sys/net/connection/socket/unix.rs.
  • Depends on the corresponding nuttx side PR. #19058

PR verification Self-Check

  • My PR adheres to Contributing Guidelines and Documentation (git commit title and message, coding standard, etc).
  • My PR is ready for review and can be safely merged into a codebase.

Select the Mach-O Rust target (x86_64-unknown-nuttx-macho.json) when
building Rust apps for the simulator on x86_64 macOS.

Signed-off-by: Shoji Tokunaga <toku@mac.com>
@toku-mac

toku-mac commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Is there a network problem with the CI machine?

Build / Linux (sim-03) (pull_request)Failing after 40m

error: downloading 'https://github.com/OpenAMP/open-amp/archive/v2025.10.0.zip' failed
   status_string: "HTTP response code said error"
The requested URL returned error: 504
CMake Error ... Build step for open-amp failed: 1
...
ninja: error: loading 'build.ninja': No such file or directory

@lupyuen

lupyuen commented Jun 8, 2026

Copy link
Copy Markdown
Member

GitHub Actions was having problems earlier today: https://www.githubstatus.com/incidents/m7n7sm0sr1pz

Screenshot 2026-06-08 at 5 00 26 PM

https://lupyuen.github.io/nuttx-github-jobs/build-monitor

@lupyuen lupyuen requested a review from simbit18 June 8, 2026 09:03
@lupyuen

lupyuen commented Jun 8, 2026

Copy link
Copy Markdown
Member

@no1wudi Could you review this PR? Thanks :-)

@lupyuen lupyuen merged commit 33d96e9 into apache:master Jun 8, 2026
55 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants