inochisa commented on issue #12275:
URL: https://github.com/apache/nuttx/issues/12275#issuecomment-2094016139

   > @inochisa Sorry `ARCH_RV_EXT_SSTC=N` failed to build with rv-virt:knsh64. 
Did I miss something?
   > 
   > https://gist.github.com/lupyuen/749f8235603781c29a351c066cd2fcf9
   > 
   > ```shell
   > $ git clone https://github.com/inochisa/nuttx --branch qemu-s-mode
   > $ git clone https://github.com/apache/nuttx-apps apps
   > $ cd nuttx && ./tools/configure.sh rv-virt:knsh64
   > $ make menuconfig
   > ## Disable ARCH_RV_EXT_SSTC
   > $ grep SSTC .config
   > 
   > $ make
   > 
   > ./chip/qemu_rv_start.c:54:4: error: #error "Target requires kernel in 
S-mode, enable CONFIG_ARCH_USE_S_MODE"
   >    54 | #  error "Target requires kernel in S-mode, enable 
CONFIG_ARCH_USE_S_MODE"
   >       |    ^~~~~
   > ERROR: riscv64-unknown-elf-gcc failed: 1
   >        command: riscv64-unknown-elf-gcc -MT ./qemu_rv_start.o  -M 
'-fno-common' '-Wall' '-Wstrict-prototypes' '-Wshadow' '-Wundef' 
'-Wno-attributes' '-Wno-unknown-pragmas' '-Wno-psabi' '-Os' 
'-fno-strict-aliasing' '-fomit-frame-pointer' '-ffunction-sections' 
'-fdata-sections' '-nostdlib' '-g' '-mcmodel=medany' '-march=rv64imafdc' 
'-mabi=lp64d' '-isystem' '/private/tmp/qemu-s-mode/nuttx/include' '-D__NuttX__' 
'-D__KERNEL__' '-pipe' '-I' 
'/private/tmp/qemu-s-mode/nuttx/arch/risc-v/src/chip' '-I' 
'/private/tmp/qemu-s-mode/nuttx/arch/risc-v/src/common' '-I' 
'/private/tmp/qemu-s-mode/nuttx/sched' ./chip/qemu_rv_start.c
   > make[2]: *** [/private/tmp/qemu-s-mode/nuttx/tools/Config.mk:230: 
qemu_rv_start.ddc] Error 1
   > make[1]: *** [Makefile:233: .depend] Error 2
   > make: *** [tools/Unix.mk:620: pass2dep] Error 2
   > ```
   
   I think you disable CONFIG_ARCH_USE_S_MODE by mistake....
   
   grep should give
   ```shell
   $ cat .config | grep SSTC
   # CONFIG_ARCH_RV_EXT_SSTC is not set
   ```
   


-- 
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