lupyuen commented on PR #2487:
URL: https://github.com/apache/nuttx-apps/pull/2487#issuecomment-2601488835

   > Maybe the `Toolchain.defs` is not exported or used in kernel build?
   
   If I disable `hello-rust-cargo`, then`rv-virt:knsh64` builds OK:
   
https://gist.github.com/lupyuen/6a09e4c078aadc51f2c388800572633e#file-gistfile1-txt-L45-L239
   ```bash
   tools/configure.sh rv-virt:knsh64
   kconfig-tweak --enable CONFIG_SYSTEM_TIME64
   kconfig-tweak --enable CONFIG_FS_LARGEFILE
   kconfig-tweak --enable CONFIG_DEV_URANDOM
   kconfig-tweak --set-val CONFIG_TLS_NELEM 16
   make olddefconfig
   make -j
   make -j export
   pushd ../apps
   ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-*.tar.gz
   make -j import
   ./tools/mkromfsimg.sh ../nuttx/arch/risc-v/src/board/romfs_boot.c
   popd
   make -j
   ## This builds OK
   ```
   When I enable `hello-rust-cargo`, then`rv-virt:knsh64` fails at `make 
import`:
   
https://gist.github.com/lupyuen/6a09e4c078aadc51f2c388800572633e#file-gistfile1-txt-L240-L347
   ```bash
   kconfig-tweak --enable CONFIG_EXAMPLES_HELLO_RUST_CARGO
   make olddefconfig
   make -j
   make -j export
   pushd ../apps
   ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-*.tar.gz
   make -j import
   ## Fails with:
   ## cargo build --release -Zbuild-std=std,panic_abort --manifest-path 
/home/luppy/rust/apps/examples/rust/hello/Cargo.toml --target 
   ## error: "--target" takes a target architecture as an argument.
   ```
   What shall I fix to make this work? Our RISC-V SBCs are running in 64-bit 
Kernel Mode, so it would be great if we could support knsh64. Thanks :-)
   


-- 
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-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to