simbit18 commented on PR #18661:
URL: https://github.com/apache/nuttx/pull/18661#issuecomment-4171481559
Hi @fdcavalcanti I ran a test on GitHub and I’m getting this error
cmake -B build -DBOARD_CONFIG=esp32c6-devkitc:nsh -GNinja
cmake --build build
```
[1355/1359] Linking C static library apps/testing/ostest/libapps_ostest.a
[1356/1359] Linking C executable nuttx
[1357/1359] Generating nuttx.hex
[1358/1359] Generating System.map
[1359/1359] Running utility command for nuttx_post_build
FAILED:
arch/risc-v/src/exclude_chip/espressif/CMakeFiles/nuttx_post_build.util
cd /github/workspace/sources/nuttx/build && /usr/local/bin/cmake
-DBINARY_DIR=/github/workspace/sources/nuttx/build
-DSOURCE_DIR=/github/workspace/sources/nuttx -P
/github/workspace/sources/nuttx/tools/espressif/espressif_mkimage.cmake
-- Generate NuttX image (esptool elf2image)
CMake Error at
/github/workspace/sources/nuttx/tools/espressif/espressif_mkimage.cmake:178
(message):
esptool.py elf2image failed
ninja: build stopped: subcommand failed.
```
https://github.com/simbit18/manual-nuttx-ci/actions/runs/23858366313/job/69557971947
espressif_mkimage.cmake
```
execute_process(
COMMAND ${ESPTOOL} -c ${CHIP_SERIES} elf2image ${ELF2IMAGE_OPTS} -o
${BINARY_DIR}/nuttx.bin ${BINARY_DIR}/nuttx
RESULT_VARIABLE ESPTOOL_RESULT
WORKING_DIRECTORY ${BINARY_DIR})
if(NOT ESPTOOL_RESULT EQUAL 0)
message(FATAL_ERROR "esptool.py elf2image failed")
endif()
```
Perhaps it depends on the path ${BINARY_DIR} -> ${CMAKE_BINARY_DIR}
```
execute_process(
COMMAND ${ESPTOOL} -c ${CHIP_SERIES} elf2image ${ELF2IMAGE_OPTS} -o
${CMAKE_BINARY_DIR}/nuttx.bin ${CMAKE_BINARY_DIR}/nuttx
RESULT_VARIABLE ESPTOOL_RESULT
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
```
--
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]