toku-mac commented on PR #18886:
URL: https://github.com/apache/nuttx/pull/18886#issuecomment-4474946301

   Hello everyone.
   I pushed commit a73cb171. Please confirm.
   
   ## Environment
   
   * Mac mini Apple M1
   * macOS 26.5
   * CLT: 26.5.0.0.1777544298
   * Xcode: 26.5
   * cmake: 4.3.2
   * ninja: 1.13.2
   * Python 3.14.5 (with lief installed)
   
   apps branch: add_apple_cargo_cmake (commit 97716525)
   
   ## Preparation
   
   ```
   rm -rf build-debug
   make distclean
   cmake -S . -B build-debug -DBOARD_CONFIG=sim:nsh -GNinja
   cmake --build build-debug -t menuconfig
   ```
   
   ## Configure
   
   ```
   CONFIG_SYSTEM_TIME64=y
   CONFIG_FS_LARGEFILE=y
   CONFIG_TLS_NELEM=16
   CONFIG_DEV_URANDOM=y
   CONFIG_EXAMPLES_HELLO_RUST_CARGO=y
   CONFIG_EXAMPLES_HELLO_RUST_CARGO_STACKSIZE=8192
   # CONFIG_COVERAGE_TOOLCHAIN is not set
   CONFIG_COVERAGE_NONE=y
   ```
   
   ## Build
   
   ```
   cmake --build build-debug
   ...
      Compiling std_detect v0.1.5 
(/Users/toku/.rustup/toolchains/nightly-2026-04-29-aarch64-apple-darwin/lib/rustlib/src/rust/library/std_detect)
      Compiling addr2line v0.25.1
      Compiling proc_macro v0.0.0 
(/Users/toku/.rustup/toolchains/nightly-2026-04-29-aarch64-apple-darwin/lib/rustlib/src/rust/library/proc_macro)
      Compiling itoa v1.0.18
      Compiling pin-project-lite v0.2.17
      Compiling memchr v2.8.0
      Compiling tokio v1.52.3
      Compiling hello v0.1.0 (/Users/toku/nuttxspace/apps/examples/rust/hello)
       Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.41s
   [1223/1228] Linking C executable nuttx
   ld: warning: -ld_classic is deprecated and will be removed in a future 
release
   [1225/1228] Patching Mach-O init section type flags
   /Users/toku/nuttxspace/nuttx/build-debug/nuttx: replacing existing signature
   /Users/toku/nuttxspace/nuttx/build-debug/nuttx: valid on disk
   /Users/toku/nuttxspace/nuttx/build-debug/nuttx: satisfies its Designated 
Requirement
   ```
   
   ## Execute
   
   ```
   ./build-debug/nuttx
   
   NuttShell (NSH) NuttX-12.13.0
   nsh> help
   help usage:  help [-v] [<cmd>]
   
       .           cmp         fdinfo      mkrd        rm          true
       [           dirname     free        mount       rmdir       truncate
       ?           df          help        mv          set         uname
       alias       dmesg       hexdump     pidof       kill        umount
       unalias     echo        losetup     poweroff    pkill       unset
       basename    env         ln          quit        sleep       uptime
       break       exec        ls          printf      usleep      watch
       cat         exit        mkdir       ps          source      xd
       cd          expr        mkfatfs     pwd         test        wait
       cp          false       mkfifo      readlink    time
   
   Builtin Apps:
       dd                  nsh                 ostest              hello
       dumpstack           sh                  gpio                
hello_rust_cargo
   nsh> uname -a
   NuttX 12.13.0 eae41cab13-dirty May 18 2026 10:43:05 sim sim
   nsh> hello_rust_cargo
   {"name":"John","age":30}
   {"name":"Jane","age":25}
   Deserialized: Alice is 28 years old
   Pretty JSON:
   {
     "name": "Alice",
     "age": 28
   }
   
   thread '<unnamed>' (540079) panicked at 
/Users/toku/.rustup/toolchains/nightly-2026-04-29-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/pal/unix/time.rs:107:68:
   called `Result::unwrap()` on an `Err` value: Os { code: 0, kind: 
Uncategorized, message: "Unknown error 0" }
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   nsh>
   ```
   
   The last Rust tokio-related panic I'll fix in another PR.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to