leisiji opened a new issue, #19028:
URL: https://github.com/apache/nuttx/issues/19028
### Description / Steps to reproduce the issue
`cmake -B build -DBOARD_CONFIG=qemu-armv7a:knsh -GNinja` reports the below
error:
```
➜ cmake -B build -DBOARD_CONFIG=qemu-armv7a:knsh -GNinja
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Initializing NuttX
Select HOST_LINUX=y
Loaded configuration
'/home/ye/github/nuttxspace/nuttx/build/.config.compressed'
Minimal configuration saved to
'/home/ye/github/nuttxspace/nuttx/build/defconfig.tmp'
-- CMake: 4.3.2
-- Ninja: 1.13.2
-- Board: qemu-armv7a
-- Config: knsh
-- Appdir: /home/ye/github/nuttxspace/apps
-- The C compiler identification is GNU 16.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- NuttX Host Tools
-- CMake C compiler: GNU
-- CMake system name: Linux
-- CMake host system processor: x86_64
TOOLS_DIR path is "/home/ye/github/nuttxspace/nuttx"
HOST = Linux
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to:
/home/ye/github/nuttxspace/nuttx/build/bin_host
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at cmake/nuttx_add_application.cmake:198 (add_dependencies):
Cannot add target-level dependencies to non-existent target
"nuttx_apps_mksymtab".
The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.
Call Stack (most recent call first):
/home/ye/github/nuttxspace/apps/system/dd/CMakeLists.txt:24
(nuttx_add_application)
CMake Error at cmake/nuttx_add_application.cmake:198 (add_dependencies):
Cannot add target-level dependencies to non-existent target
"nuttx_apps_mksymtab".
The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.
Call Stack (most recent call first):
/home/ye/github/nuttxspace/apps/system/nsh/CMakeLists.txt:24
(nuttx_add_application)
CMake Error at cmake/nuttx_add_application.cmake:198 (add_dependencies):
Cannot add target-level dependencies to non-existent target
"nuttx_apps_mksymtab".
The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.
Call Stack (most recent call first):
/home/ye/github/nuttxspace/apps/system/nsh/CMakeLists.txt:36
(nuttx_add_application)
-- nuttx_add_subdirectory: Skipping cxx-oot-build
CMake Error at cmake/nuttx_add_application.cmake:198 (add_dependencies):
Cannot add target-level dependencies to non-existent target
"nuttx_apps_mksymtab".
The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.
Call Stack (most recent call first):
/home/ye/github/nuttxspace/apps/testing/ostest/CMakeLists.txt:172
(nuttx_add_application)
CMake Error at cmake/nuttx_add_application.cmake:198 (add_dependencies):
Cannot add target-level dependencies to non-existent target
"nuttx_apps_mksymtab".
The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.
Call Stack (most recent call first):
/home/ye/github/nuttxspace/apps/testing/sched/getprime/CMakeLists.txt:24
(nuttx_add_application)
CMake Error at cmake/nuttx_add_application.cmake:198 (add_dependencies):
Cannot add target-level dependencies to non-existent target
"nuttx_apps_mksymtab".
The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.
Call Stack (most recent call first):
/home/ye/github/nuttxspace/apps/examples/hello/CMakeLists.txt:24
(nuttx_add_application)
```
After commenting the nuttx_apps_mksymtab
(`cmake/nuttx_add_application.cmake`), cmake error disappear:
```
if(CONFIG_MODULES)
# add_dependencies(nuttx_apps_mksymtab ${TARGET})
# target_compile_options(
# ${TARGET}
# PRIVATE
#
$<GENEX_EVAL:$<TARGET_PROPERTY:nuttx_global,NUTTX_ELF_APP_COMPILE_OPTIONS>>
# )
endif()
```
### On which OS does this issue occur?
[OS: Linux]
### What is the version of your OS?
Linux cachyos-x8664 7.0.3-1-cachyos
### NuttX Version
master
### Issue Architecture
[Arch: arm]
### Issue Area
[Area: Build System]
### Host information
_No response_
### Verification
- [x] I have verified before submitting the report.
--
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]