16.编译错误Unknown CMake command “check_symbol_exists“解决

本文介绍了一种解决编译过程中出现的特定错误的方法。通过在出错的CMakeLists文件中添加一行代码:include(CheckSymbolExists),成功解决了该问题。

今天编译代码时,突然出现了这个错误

 

解决办法:

找到出错的CMakeLists文件,在其中添加一行

include(CheckSymbolExists)

 

解读 cmake配置文件并给出说明? cmake_minimum_required (VERSION 2.8.7) project (nanomsg C) include (CheckFunctionExists) include (CheckSymbolExists) include (CheckStructHasMember) include (CheckLibraryExists) include (CheckCSourceCompiles) include (GNUInstallDirs) if (POLICY CMP0042) # Newer cmake on MacOS should use @rpath cmake_policy (SET CMP0042 NEW) endif () set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) list (FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" isSystemDir) if ("${isSystemDir}" STREQUAL "-1") set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") endif ("${isSystemDir}" STREQUAL "-1") set (NN_DESCRIPTION "High-Performance Scalability Protocols") set (ISSUE_REPORT_MSG "Please consider opening an issue at https://github.com/nanomsg/nanomsg") # Determine library versions. file (READ src/nn.h NN_HDR_STR) string (REGEX REPLACE ".*#define +NN_VERSION_CURRENT +([0-9]+).*" "\\1" NN_VERSION_CURRENT "${NN_HDR_STR}") string (REGEX REPLACE ".*#define +NN_VERSION_REVISION +([0-9]+).*" "\\1" NN_VERSION_REVISION "${NN_HDR_STR}") string (REGEX REPLACE ".*#define +NN_VERSION_AGE +([0-9]+).*" "\\1" NN_VERSION_AGE "${NN_HDR_STR}") if ((NN_VERSION_CURRENT STREQUAL "") OR (NN_VERSION_REVISION STREQUAL "") OR (NN_VERSION_AGE STREQUAL "")) message (FATAL_ERROR "Could not read ABI version from nn.h") else () set (NN_ABI_VERSION "${NN_VERSION_CURRENT}.${NN_VERSION_REVISION}.${NN_VERSION_AGE}") message (STATUS "Detected nanomsg ABI v${NN_ABI_VERSION}") endif () # Determine package version. find_package (Git QUIET) if (DEFINED ENV{TRAVIS_TAG}) set (NN_PACKAGE_VERSION "$ENV{TRAVIS_TAG}") elseif (GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") # Working off a git repo, using git versioning # Get version from last tag execute_process ( COMMAND "${GIT_EXECUTABLE}" describe --always# | sed -e "s:v::" WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}" OUTPUT_VARIABLE NN_PACKAGE_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) # If the sources have been changed locally, add -dirty to the version. execute_process ( COMMAND "${GIT_EXECUTABLE}" diff --quiet WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}" RESULT_VARIABLE res) if (res EQUAL 1) set (NN_PACKAGE_VERSION "${NN_PACKAGE_VERSION}-dirty") endif() elseif (EXISTS ${PROJECT_SOURCE_DIR}/.version) # If git is not available (e.g. when building from source package) # we can extract the package version from .version file. file (STRINGS .version NN_PACKAGE_VERSION) else () set (NN_PACKAGE_VERSION "Unknown") endif() # User-defined options. option (NN_STATIC_LIB "Build static library instead of shared library." OFF) option (NN_ENABLE_DOC "Enable building documentation." ON) option (NN_ENABLE_GETADDRINFO_A "Enable/disable use of getaddrinfo_a in place of getaddrinfo." ON) option (NN_TESTS "Build and run nanomsg tests" ON) option (NN_TOOLS "Build nanomsg tools" ON) option (NN_ENABLE_NANOCAT "Enable building nanocat utility." ${NN_TOOLS}) # Platform checks. find_package (Threads REQUIRED) if (CMAKE_SYSTEM_NAME MATCHES "Linux") add_definitions (-DNN_HAVE_LINUX) elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin") add_definitions (-DNN_HAVE_OSX) elseif (CMAKE_SYSTEM_NAME MATCHES "Windows") set (NN_HAVE_WINSOCK 1) add_definitions (-DNN_HAVE_WINDOWS) add_definitions (-D_CRT_SECURE_NO_WARNINGS) # Target Windows Vista and later add_definitions (-D_WIN32_WINNT=0x0600) list (APPEND CMAKE_REQUIRED_DEFINITIONS -D_WIN32_WINNT=0x0600) elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") add_definitions (-DNN_HAVE_FREEBSD) elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD") add_definitions (-DNN_HAVE_NETBSD) elseif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD") add_definitions (-DNN_HAVE_OPENBSD) elseif (CMAKE_SYSTEM_NAME MATCHES "Solaris|SunOS") add_definitions (-DNN_HAVE_SOLARIS) elseif (CMAKE_SYSTEM_NAME MATCHES "HP-UX") add_definitions (-DNN_HAVE_HPUX) elseif (CMAKE_SYSTEM_NAME MATCHES "QNX") add_definitions (-DNN_HAVE_QNX) else () message (AUTHOR_WARNING "WARNING: This platform may or may not be supported: ${CMAKE_SYSTEM_NAME}") message (AUTHOR_WARNING "${ISSUE_REPORT_MSG}") endif () if (NN_STATIC_LIB) add_definitions (-DNN_STATIC_LIB) endif () macro (nn_check_func SYM DEF) check_function_exists (${SYM} ${DEF}) if (${DEF}) add_definitions (-D${DEF}=1) endif () endmacro (nn_check_func) macro (nn_check_sym SYM HDR DEF) check_symbol_exists (${SYM} ${HDR} ${DEF}) if (${DEF}) add_definitions (-D${DEF}=1) endif () endmacro (nn_check_sym) macro (nn_check_lib LIB SYM DEF) check_library_exists (${LIB} ${SYM} "" ${DEF}) if (${DEF}) add_definitions (-D${DEF}=1) set(NN_REQUIRED_LIBRARIES ${NN_REQUIRED_LIBRARIES} ${LIB}) endif () endmacro (nn_check_lib) macro (nn_check_struct_member STR MEM HDR DEF) check_struct_has_member ("struct ${STR}" ${MEM} ${HDR} ${DEF}) if (${DEF}) add_definitions (-D${DEF}=1) endif () endmacro (nn_check_struct_member) if (WIN32) # Windows is a special snowflake. set(NN_REQUIRED_LIBRARIES ${NN_REQUIRED_LIBRARIES} ws2_32) set(NN_REQUIRED_LIBRARIES ${NN_REQUIRED_LIBRARIES} mswsock) set(NN_REQUIRED_LIBRARIES ${NN_REQUIRED_LIBRARIES} advapi32) nn_check_sym (InitializeConditionVariable windows.h NN_HAVE_CONDVAR) if (NOT NN_HAVE_CONDVAR) message (FATAL_ERROR "Modern Windows API support is missing. " "Versions of Windows prior to Vista are not supported. " "Further, the 32-bit MinGW environment is not supported. " "Ensure you have at least Windows Vista or newer, and are " "using either Visual Studio 2010 or newer or MinGW-W64.") endif() else () # Unconditionally declare the following feature test macros. These are # needed for some platforms (glibc and SunOS/illumos) and should be harmless # on the others. add_definitions (-D_GNU_SOURCE) add_definitions (-D_REENTRANT) add_definitions (-D_THREAD_SAFE) add_definitions (-D_POSIX_PTHREAD_SEMANTICS) nn_check_func (gethrtime NN_HAVE_GETHRTIME) nn_check_func (socketpair NN_HAVE_SOCKETPAIR) nn_check_func (eventfd NN_HAVE_EVENTFD) nn_check_func (pipe NN_HAVE_PIPE) nn_check_func (pipe2 NN_HAVE_PIPE2) nn_check_func (accept4 NN_HAVE_ACCEPT4) nn_check_func (epoll_create NN_HAVE_EPOLL) nn_check_func (kqueue NN_HAVE_KQUEUE) nn_check_func (poll NN_HAVE_POLL) nn_check_lib (anl getaddrinfo_a NN_HAVE_GETADDRINFO_A) nn_check_lib (rt clock_gettime NN_HAVE_CLOCK_GETTIME) nn_check_lib (rt sem_wait NN_HAVE_SEMAPHORE_RT) nn_check_lib (pthread sem_wait NN_HAVE_SEMAPHORE_PTHREAD) nn_check_lib (nsl gethostbyname NN_HAVE_LIBNSL) nn_check_lib (socket socket NN_HAVE_LIBSOCKET) nn_check_sym (CLOCK_MONOTONIC time.h NN_HAVE_CLOCK_MONOTONIC) nn_check_sym (atomic_cas_32 atomic.h NN_HAVE_ATOMIC_SOLARIS) nn_check_sym (AF_UNIX sys/socket.h NN_HAVE_UNIX_SOCKETS) nn_check_sym (backtrace_symbols_fd execinfo.h NN_HAVE_BACKTRACE) nn_check_struct_member(msghdr msg_control sys/socket.h NN_HAVE_MSG_CONTROL) if (NN_HAVE_SEMAPHORE_RT OR NN_HAVE_SEMAPHORE_PTHREAD) add_definitions (-DNN_HAVE_SEMAPHORE) endif () endif () if (NOT NN_ENABLE_GETADDRINFO_A) add_definitions (-DNN_DISABLE_GETADDRINFO_A) endif () check_c_source_compiles (" #include <stdint.h> int main() { volatile uint32_t n = 0; __sync_fetch_and_add (&n, 1); __sync_fetch_and_sub (&n, 1); return 0; } " NN_HAVE_GCC_ATOMIC_BUILTINS) if (NN_HAVE_GCC_ATOMIC_BUILTINS) add_definitions (-DNN_HAVE_GCC_ATOMIC_BUILTINS) endif () add_subdirectory (src) # Build the tools if (NN_ENABLE_NANOCAT) add_executable (nanocat tools/nanocat.c tools/options.c) target_link_libraries (nanocat ${PROJECT_NAME}) endif () if (NN_ENABLE_DOC) find_program (ASCIIDOCTOR_EXE asciidoctor) if (NOT ASCIIDOCTOR_EXE) message (WARNING "Could not find asciidoctor: skipping docs") set (NN_ENABLE_DOC OFF) else () message (STATUS "Using asciidoctor at ${ASCIIDOCTOR_EXE}") endif () endif () # Build the documenation if (NN_ENABLE_DOC) set (NN_DOCDIR ${CMAKE_CURRENT_SOURCE_DIR}/doc) set (NN_STYLESHEET ${NN_DOCDIR}/stylesheet.css) set (NN_TITLE ${PROJECT_NAME} ${NN_PACKAGE_VERSION}) set (NN_A2M ${ASCIIDOCTOR_EXE} -b manpage -amanmanual='${NN_TITLE}') set (NN_A2H ${ASCIIDOCTOR_EXE} -d manpage -b html5 -a stylesheeet=${NN_STYLESHEET} -aversion-label=${PROJECT_NAME} -arevnumber=${NN_PACKAGE_VERSION}) macro (add_libnanomsg_man NAME SECT) add_custom_command ( OUTPUT ${NAME}.${SECT} COMMAND ${NN_A2M} -o ${NAME}.${SECT} ${NN_DOCDIR}/${NAME}.adoc MAIN_DEPENDENCY ${NN_DOCDIR}/${NAME}.adoc ) add_custom_command ( OUTPUT ${NAME}.html COMMAND ${NN_A2H} -o ${NAME}.html ${NN_DOCDIR}/${NAME}.adoc DEPENDS ${NN_STYLESHEET} MAIN_DEPENDENCY ${NN_DOCDIR}/${NAME}.adoc ) set(NN_MANS ${NN_MANS} ${NAME}.${SECT}) set(NN_HTMLS ${NN_HTMLS} ${NAME}.html) install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.html DESTINATION ${CMAKE_INSTALL_DOCDIR} ) install ( FILES ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.${SECT} DESTINATION ${CMAKE_INSTALL_MANDIR}/man${SECT} ) endmacro (add_libnanomsg_man) if (NN_ENABLE_NANOCAT) add_libnanomsg_man (nanocat 1) endif () add_libnanomsg_man (nn_errno 3) add_libnanomsg_man (nn_strerror 3) add_libnanomsg_man (nn_symbol 3) add_libnanomsg_man (nn_symbol_info 3) add_libnanomsg_man (nn_allocmsg 3) add_libnanomsg_man (nn_reallocmsg 3) add_libnanomsg_man (nn_freemsg 3) add_libnanomsg_man (nn_socket 3) add_libnanomsg_man (nn_close 3) add_libnanomsg_man (nn_get_statistic 3) add_libnanomsg_man (nn_getsockopt 3) add_libnanomsg_man (nn_setsockopt 3) add_libnanomsg_man (nn_bind 3) add_libnanomsg_man (nn_connect 3) add_libnanomsg_man (nn_shutdown 3) add_libnanomsg_man (nn_send 3) add_libnanomsg_man (nn_recv 3) add_libnanomsg_man (nn_sendmsg 3) add_libnanomsg_man (nn_recvmsg 3) add_libnanomsg_man (nn_device 3) add_libnanomsg_man (nn_cmsg 3) add_libnanomsg_man (nn_poll 3) add_libnanomsg_man (nn_term 3) add_libnanomsg_man (nanomsg 7) add_libnanomsg_man (nn_pair 7) add_libnanomsg_man (nn_reqrep 7) add_libnanomsg_man (nn_pubsub 7) add_libnanomsg_man (nn_survey 7) add_libnanomsg_man (nn_pipeline 7) add_libnanomsg_man (nn_bus 7) add_libnanomsg_man (nn_inproc 7) add_libnanomsg_man (nn_ipc 7) add_libnanomsg_man (nn_tcp 7) add_libnanomsg_man (nn_ws 7) add_libnanomsg_man (nn_env 7) add_custom_target (man ALL DEPENDS ${NN_MANS}) add_custom_target (html ALL DEPENDS ${NN_HTMLS}) endif () # Build unit tests. if (NN_TESTS) enable_testing () set (all_tests "") set (TEST_PORT 12100) macro (add_libnanomsg_test NAME TIMEOUT) list (APPEND all_tests ${NAME}) add_executable (${NAME} tests/${NAME}.c) target_link_libraries (${NAME} ${PROJECT_NAME}) add_test (NAME ${NAME} COMMAND ${NAME} ${TEST_PORT}) set_tests_properties (${NAME} PROPERTIES TIMEOUT ${TIMEOUT}) math (EXPR TEST_PORT "${TEST_PORT}+10") endmacro (add_libnanomsg_test) # Transport tests. add_libnanomsg_test (inproc 5) add_libnanomsg_test (inproc_shutdown 5) add_libnanomsg_test (ipc 5) add_libnanomsg_test (ipc_shutdown 30) add_libnanomsg_test (ipc_stress 5) add_libnanomsg_test (tcp 5) add_libnanomsg_test (tcp_shutdown 120) add_libnanomsg_test (ws 5) # Protocol tests. add_libnanomsg_test (pair 5) add_libnanomsg_test (pubsub 5) add_libnanomsg_test (reqrep 5) add_libnanomsg_test (pipeline 5) add_libnanomsg_test (survey 5) add_libnanomsg_test (bus 5) # Feature tests. add_libnanomsg_test (async_shutdown 30) add_libnanomsg_test (block 5) add_libnanomsg_test (term 5) add_libnanomsg_test (timeo 5) add_libnanomsg_test (iovec 5) add_libnanomsg_test (msg 5) add_libnanomsg_test (prio 5) add_libnanomsg_test (poll 5) add_libnanomsg_test (device 5) add_libnanomsg_test (device4 5) add_libnanomsg_test (device5 5) add_libnanomsg_test (device6 5) add_libnanomsg_test (device7 30) add_libnanomsg_test (emfile 5) add_libnanomsg_test (domain 5) add_libnanomsg_test (trie 5) add_libnanomsg_test (list 5) add_libnanomsg_test (hash 5) add_libnanomsg_test (stats 5) add_libnanomsg_test (symbol 5) add_libnanomsg_test (separation 5) add_libnanomsg_test (zerocopy 5) add_libnanomsg_test (shutdown 5) add_libnanomsg_test (cmsg 5) add_libnanomsg_test (bug328 5) add_libnanomsg_test (bug777 5) add_libnanomsg_test (ws_async_shutdown 5) add_libnanomsg_test (reqttl 10) add_libnanomsg_test (surveyttl 10) # Platform-specific tests if (WIN32) add_libnanomsg_test (win_sec_attr 5) endif() # Build the performance tests. macro (add_libnanomsg_perf NAME) add_executable (${NAME} perf/${NAME}.c) target_link_libraries (${NAME} ${PROJECT_NAME}) endmacro (add_libnanomsg_perf) add_libnanomsg_perf (inproc_lat) add_libnanomsg_perf (inproc_thr) add_libnanomsg_perf (local_lat) add_libnanomsg_perf (remote_lat) add_libnanomsg_perf (local_thr) add_libnanomsg_perf (remote_thr) endif () install (TARGETS LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) install (TARGETS ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) install (FILES src/nn.h DESTINATION include/nanomsg) install (FILES src/inproc.h DESTINATION include/nanomsg) install (FILES src/ipc.h DESTINATION include/nanomsg) install (FILES src/tcp.h DESTINATION include/nanomsg) install (FILES src/ws.h DESTINATION include/nanomsg) install (FILES src/pair.h DESTINATION include/nanomsg) install (FILES src/pubsub.h DESTINATION include/nanomsg) install (FILES src/reqrep.h DESTINATION include/nanomsg) install (FILES src/pipeline.h DESTINATION include/nanomsg) install (FILES src/survey.h DESTINATION include/nanomsg) install (FILES src/bus.h DESTINATION include/nanomsg) if (NN_ENABLE_NANOCAT) install (TARGETS nanocat RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() set (CPACK_PACKAGE_NAME ${PROJECT_NAME}) set (CPACK_PACKAGE_VERSION ${NN_PACKAGE_VERSION}) set (CPACK_SOURCE_GENERATOR "TBZ2;TGZ;ZIP") set (CPACK_SOURCE_IGNORE_FILES "/build/;/.git/;~$;${CPACK_SOURCE_IGNORE_FILES}") set (CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${NN_PACKAGE_VERSION}") add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source) include (CPack)
09-28
================================ [CLEAN SUCCESS] Took 0.00 seconds ================================ ================================ [Python环境正常] ================================ warning: the int symbol LFS_PARTITION_ID (defined at middleware/chips/ws63/Kconfig:105) has a non-int default 0x21 (undefined) warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_COMPRESS (defined at middleware/chips/ws63/Kconfig:52) will have no effect, as defaults do not affect choice symbols warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_AB (defined at middleware/chips/ws63/Kconfig:59) will have no effect, as defaults do not affect choice symbols warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_REBOOT (defined at middleware/chips/ws63/Kconfig:85) will have no effect, as defaults do not affect choice symbols warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_WAITFOREVER (defined at middleware/chips/ws63/Kconfig:91) will have no effect, as defaults do not affect choice symbols D:\fbb_ws63-master\src\build\script\.\..\..\build\config\target_config\ws63\menuconfig\acore\ws63_flashboot.config:432: warning: DRIVER_SUPPORT_DMA (defined at drivers/drivers/Kconfig:51) set more than once. Old value "n", new value "y". Not searching for unused variables given on the command line. -- BUILD_PLATFORM: windows -- BUILD_PLATFORM: windows -- The C compiler identification is GNU 7.3.0 -- The ASM compiler identification is GNU -- Found assembler: D:/fbb_ws63-master/src/tools/bin/compiler/riscv/cc_riscv32_musl_100/cc_riscv32_musl_win/bin/riscv32-linux-musl-gcc.exe -- The CXX compiler identification is GNU 7.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Detecting CXX compile features -- Detecting CXX compile features - done GEN_TARGET_SRC = D:/fbb_ws63-master/src/output/ws63/acore/acore.c PRECOMPILE_TARGET = D:/fbb_ws63-master/src/output/ws63/acore/acore.etypes TARGET_INCLUDE = D:/fbb_ws63-master/src/middleware/chips/ws63/nv/nv_config/include;D:/fbb_ws63-master/src/middleware/utils/common_headers/native BGTP_PROJECT=ws63 BGTP_ROM_VERSION=false BGTP_DEVICE_ONLY=false BG COMMON BTH_ROM_LIST:__null__ BTH_ROM_LIST:__null__ -- project_name: -- Configuring done -- Generating done -- Build files have been written to: D:/fbb_ws63-master/src/output/ws63/acore/ws63-flashboot [0/1] Re-running CMake... FAILED: build.ninja C:\Users\���ļ�\AppData\Local\Programs\Python\Python311\Lib\site-packages\cmake\data\bin\cmake.exe --regenerate-during-build -SD:\fbb_ws63-master\src -BD:\fbb_ws63-master\src\output\ws63\acore\ws63-flashboot CreateProcess failed: The system cannot find the file specified. python path: C:\Users\���ļ�\AppData\Local\Programs\Python\Python311\python.exe [ws63][acore] run custom cmd success! D:\fbb_ws63-master\src\build\script\.\..\..\config.in d:\fbb_ws63-master\src Kconfig header saved to 'D:\fbb_ws63-master\src\output\ws63\acore\ws63-flashboot\mconfig.h' ######### Build target:ws63_flashboot failed ninja: error: rebuilding 'build.ninja': subcommand failed warning: the int symbol LFS_PARTITION_ID (defined at middleware/chips/ws63/Kconfig:105) has a non-int default 0x21 (undefined) warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_COMPRESS (defined at middleware/chips/ws63/Kconfig:52) will have no effect, as defaults do not affect choice symbols warning: default on the choice symbol MIDDLEWARE_SUPPORT_UPG_AB (defined at middleware/chips/ws63/Kconfig:59) will have no effect, as defaults do not affect choice symbols warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_REBOOT (defined at middleware/chips/ws63/Kconfig:85) will have no effect, as defaults do not affect choice symbols warning: default on the choice symbol MIDDLEWARE_SUPPORT_EXCEPT_WAITFOREVER (defined at middleware/chips/ws63/Kconfig:91) will have no effect, as defaults do not affect choice symbols D:\fbb_ws63-master\src\build\script\.\..\..\build\config\target_config\ws63\menuconfig\acore\ws63_liteos_app.config:215: warning: DRIVER_SUPPORT_DMA (defined at drivers/drivers/Kconfig:51) set more than once. Old value "n", new value "n". D:\fbb_ws63-master\src\build\script\.\..\..\build\config\target_config\ws63\menuconfig\acore\ws63_liteos_app.config:216: warning: DRIVER_SUPPORT_FLASH (defined at drivers/drivers/Kconfig:108) set more than once. Old value "n", new value "n". D:\fbb_ws63-master\src\build\script\.\..\..\build\config\target_config\ws63\menuconfig\acore\ws63_liteos_app.config:256: warning: DRIVER_SUPPORT_HASH (defined at drivers/drivers/Kconfig:137) set more than once. Old value "n", new value "n". D:\fbb_ws63-master\src\build\script\.\..\..\build\config\target_config\ws63\menuconfig\acore\ws63_liteos_app.config:259: warning: DRIVER_SUPPORT_EDGE (defined at drivers/drivers/Kconfig:66) set more than once. Old value "n", new value "n". D:\fbb_ws63-master\src\build\script\.\..\..\build\config\target_config\ws63\menuconfig\acore\ws63_liteos_app.config:264: warning: DRIVER_SUPPORT_EFLASH (defined at drivers/drivers/Kconfig:80) set more than once. Old value "n", new value "n". D:\fbb_ws63-master\src\build\script\.\..\..\build\config\target_config\ws63\menuconfig\acore\ws63_liteos_app.config:394: warning: DRIVER_SUPPORT_USB (defined at drivers/drivers/Kconfig:503) set more than once. Old value "n", new value "n". D:\fbb_ws63-master\src\build\script\.\..\..\build\config\target_config\ws63\menuconfig\acore\ws63_liteos_app.config:685: warning: DRIVER_SUPPORT_DMA (defined at drivers/drivers/Kconfig:51) set more than once. Old value "n", new value "y". Not searching for unused variables given on the command line. -- BUILD_PLATFORM: windows -- BUILD_PLATFORM: windows -- The C compiler identification is GNU 7.3.0 -- The ASM compiler identification is GNU -- Found assembler: D:/fbb_ws63-master/src/tools/bin/compiler/riscv/cc_riscv32_musl_100/cc_riscv32_musl_fp_win/bin/riscv32-linux-musl-gcc.exe -- The CXX compiler identification is GNU 7.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Detecting CXX compile features -- Detecting CXX compile features - done LOSCFG_PLATFORM is set to ws63 LOSCFG_COMPILER_GNU_BINUTILS is set to y LOSCFG_COMPILER_GCC is set to y LOSCFG_COMPILER_TOOLCHAIN_MUSL is set to y LOSCFG_COMPILER_RISCV_GCC_MUSL is set to y LOSCFG_COMPILER_RISCV_UNKNOWN is set to y LOSCFG_RISCV_COMPILER_OPTIONS_USER_DEFINED is set to LOSCFG_RISCV_COMPILER_OPTIONS_LDM_STM is set to y LOSCFG_RISCV_COMPILER_OPTIONS_EMIT_LLI is set to y LOSCFG_COMPILER_OPTIMIZE_SIZE is set to y LOSCFG_FAMILY_AIOT is set to y LOSCFG_FAMILY is set to aiot LOSCFG_PLATFORM is set to ws63 LOSCFG_PLATFORM_WS63 is set to y LOSCFG_USING_BOARD_LD is set to y LOSCFG_USING_BOARD_RESET_VECTOR is set to y LOSCFG_ARCH_FPU_ENABLE is set to y LOSCFG_APC_ENABLE is set to y LOSCFG_ARCH_PMU is set to y LOSCFG_ARCH_RISCV32 is set to y LOSCFG_ARCH_RISCV_RV32IMC is set to y LOSCFG_ARCH_RISCV_RV32F is set to y LOSCFG_ARCH_LINXCORE_131 is set to y LOSCFG_KERNEL_MIN is set to y LOSCFG_SCHED is set to y LOSCFG_SCHED_SQ is set to y LOSCFG_BASE_CORE_TIMESLICE is set to y LOSCFG_BASE_CORE_TIMESLICE_TIMEOUT is set to 2 LOSCFG_BASE_CORE_TSK_MONITOR is set to y LOSCFG_TASK_STACK_DYNAMIC_ALLOCATION is set to y LOSCFG_BASE_CORE_TSK_LIMIT is set to 28 LOSCFG_BASE_CORE_TSK_MIN_STACK_SIZE is set to 1024 LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE is set to 2048 LOSCFG_BASE_CORE_TSK_SWTMR_STACK_SIZE is set to 2048 LOSCFG_BASE_CORE_TSK_IDLE_STACK_SIZE is set to 1024 LOSCFG_BASE_CORE_TSK_DEFAULT_PRIO is set to 10 LOSCFG_BASE_CORE_TICK_PER_SECOND is set to 100 LOSCFG_BASE_CORE_USE_SINGLE_LIST is set to y LOSCFG_STARTUP_STACK_SIZE is set to 0x4000 LOSCFG_KERNEL_MEM_ALLOC is set to y LOSCFG_KERNEL_MEM_BESTFIT is set to y LOSCFG_KERNEL_MEM_SLAB_EXTENTION is set to y LOSCFG_ARCH_INTERRUPT_TAKEOVER is set to y LOSCFG_ARCH_INTERRUPT_PREEMPTION is set to y LOSCFG_HWI_PRE_POST_PROCESS is set to y LOSCFG_HWI_WITH_ARG is set to y LOSCFG_IRQ_STACK_SIZE is set to 0x2000 LOSCFG_NMI_STACK_SIZE is set to 0x800 LOSCFG_PLATFORM_HWI_LIMIT is set to 96 LOSCFG_HWI_PRIO_LIMIT is set to 7 LOSCFG_EXC_STACK_SIZE is set to 0x800 LOSCFG_BASE_CORE_SWTMR is set to y LOSCFG_BASE_CORE_SWTMR_LIMIT is set to 16 LOSCFG_BASE_IPC_QUEUE is set to y LOSCFG_QUEUE_DYNAMIC_ALLOCATION is set to y LOSCFG_BASE_IPC_QUEUE_LIMIT is set to 16 LOSCFG_BASE_IPC_EVENT is set to y LOSCFG_BASE_IPC_MUX is set to y LOSCFG_MUTEX_WAITMODE_PRIO is set to y LOSCFG_BASE_IPC_MUX_LIMIT is set to 60 LOSCFG_BASE_IPC_SEM is set to y LOSCFG_BASE_IPC_SEM_LIMIT is set to 32 LOSCFG_KERNEL_PRINTF is set to y LOSCFG_KERNEL_PRINTF_SIZE_EXTEND is set to y LOSCFG_KERNEL_RINGBUF is set to y LOSCFG_BASE_CORE_SYS_RES_CHECK is set to y LOSCFG_LIB_LIBC is set to y LOSCFG_LIB_LIBM is set to y LOSCFG_LIB_FORMAT is set to y LOSCFG_COMPAT_CMSIS is set to y LOSCFG_COMPAT_CMSIS_VER_2 is set to y LOSCFG_COMPAT_LINUX is set to y LOSCFG_COMPAT_LINUX_PENDLIST is set to y LOSCFG_COMPAT_LINUX_TIMER is set to y LOSCFG_COMPAT_LINUX_COMPLETION is set to y LOSCFG_COMPAT_LINUX_WAITQUEUE is set to y LOSCFG_COMPAT_LINUX_DRIVER_BASE is set to y LOSCFG_NET_IPERF is set to y LOSCFG_BACKTRACE is set to y LOSCFG_SERIAL_OUTPUT_ENABLE is set to y LOSCFG_KERNEL_CPUP is set to y LOSCFG_DRIVERS_BASE is set to y LOSCFG_RISCV_HIMIDEERV200_PLIC is set to y LOSCFG_TIMER_VENDOR is set to y LOSCFG_DRIVERS_UART_VENDOR is set to y LOSCFG_DRIVERS_SIMPLE_UART is set to y LOSCFG_CC_NO_STACKPROTECTOR is set to y CMAKE_TOOLCHAIN_FILE is defined ahead, skip auto-config compiler CMAKE_TOOLCHAIN_FILE is defined ahead, skip auto-config compiler OUT:D:/fbb_ws63-master/src/output/ws63/acore/ws63-liteos-app/kernel/liteos/liteos_v208.5.0 LITEOS_MODULE_DEP_LIBS_PATH: LITEOS_DEP_LIBS_INT: LITEOS_DEP_LIBS_EXT:gcc;gcc_eh LITEOS_BASELIB:m;gcc;gcc_eh LOS_INTF_DEP_TARGETS: -- COM_HEADER-includeD:/fbb_ws63-master/src/output/ws63/acore/ws63-liteos-app/kernel/liteos/liteos_v208.5.0/menuconfig/include/menuconfig.h -- D:/fbb_ws63-master/src/drivers/chips/ws63/porting/patch/sfc_patch.c is not found, finding libplat_patch.a in D:/fbb_ws63-master/src/drivers/chips/ws63/porting/patch/ws63-liteos-app -- D:/fbb_ws63-master/src/drivers/chips/ws63/rom_config/acore/output/rom_callback.S is not found, finding librom_callback.a in D:/fbb_ws63-master/src/drivers/chips/ws63/ws63-liteos-app GEN_TARGET_SRC = D:/fbb_ws63-master/src/output/ws63/acore/acore.c PRECOMPILE_TARGET = D:/fbb_ws63-master/src/output/ws63/acore/acore.etypes TARGET_INCLUDE = D:/fbb_ws63-master/src/middleware/chips/ws63/nv/nv_config/include;D:/fbb_ws63-master/src/middleware/utils/common_headers/native -- D:/fbb_ws63-master/src/middleware/utils/at/at_bt_cmd/src/at_bt_cmd_register.c is not found, finding libbt_at.a in D:/fbb_ws63-master/src/middleware/utils/at/at_bt_cmd/ws63-liteos-app -- D:/fbb_ws63-master/src/middleware/utils/at/at_radar_cmd/at/at_radar.c is not found, finding libradar_at.a in D:/fbb_ws63-master/src/middleware/utils/at/at_radar_cmd/ws63-liteos-app Build wifi device with rom repo! -- D:/fbb_ws63-master/src/protocol/wifi/rom_code/ws63/source/alg/iot_alg/device/alg_main.c is not found, finding libwifi_driver_dmac.a in D:/fbb_ws63-master/src/protocol/wifi/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/wifi/rom_code/ws63/source/common/romable/wifi_rom_data.c is not found, finding libwifi_rom_data.a in D:/fbb_ws63-master/src/protocol/wifi/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/wifi/source/host/feature/interface/hmac_feature_interface.c is not found, finding libwifi_driver_hmac.a in D:/fbb_ws63-master/src/protocol/wifi/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/wifi/source/host/forward/hmac_rx_data.c is not found, finding libwifi_driver_tcm.a in D:/fbb_ws63-master/src/protocol/wifi/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/wifi/source/alg/iot_alg/host/alg_txbf.c is not found, finding libwifi_alg_txbf.a in D:/fbb_ws63-master/src/protocol/wifi/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/wifi/source/alg/iot_alg/host/alg_temp_protect.c is not found, finding libwifi_alg_temp_protect.a in D:/fbb_ws63-master/src/protocol/wifi/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/wifi/source/alg/iot_alg/host/alg_anti_interference.c is not found, finding libwifi_alg_anti_interference.a in D:/fbb_ws63-master/src/protocol/wifi/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/wifi/source/alg/iot_alg/host/alg_edca_opt.c is not found, finding libwifi_alg_edca_opt.a in D:/fbb_ws63-master/src/protocol/wifi/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/wifi/source/alg/iot_alg/host/alg_cca_intrf_mode.c is not found, finding libwifi_alg_cca_opt.a in D:/fbb_ws63-master/src/protocol/wifi/ws63-liteos-app BGTP_PROJECT=ws63 BGTP_ROM_VERSION=true BGTP_DEVICE_ONLY=false -- D:/fbb_ws63-master/src/protocol/bt/controller/bgtp/__null__ is not found, finding libbgtp.a in D:/fbb_ws63-master/src/protocol/bt/controller/bgtp/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/bt/controller/bgtp/__null__ is not found, finding libbgtp_rom_data.a in D:/fbb_ws63-master/src/protocol/bt/controller/bgtp/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/bt/host/bg_common/__null__ is not found, finding libbg_common.a in D:/fbb_ws63-master/src/protocol/bt/host/bg_common/ws63-liteos-app BG COMMON BTH_ROM_LIST:__null__ BTH_ROM_LIST:__null__ -- D:/fbb_ws63-master/src/protocol/bt/host/bt/__null__ is not found, finding libbt_app.a in D:/fbb_ws63-master/src/protocol/bt/host/bt/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/bt/host/bt/sdk/__null__ is not found, finding libbth_sdk.a in D:/fbb_ws63-master/src/protocol/bt/host/bt/sdk/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/bt/host/bt/__null__ is not found, finding libbt_host.a in D:/fbb_ws63-master/src/protocol/bt/host/bt/ws63-liteos-app BTH_ROM_LIST:__null__ BTH_PUBLIC_HEADER_LIST= -- D:/fbb_ws63-master/src/protocol/bt/host/gle/__null__ is not found, finding libbth_gle.a in D:/fbb_ws63-master/src/protocol/bt/host/gle/ws63-liteos-app -- D:/fbb_ws63-master/src/protocol/radar/alg_ai/radar_ai_attention_layer.c is not found, finding libradar_ai.a in D:/fbb_ws63-master/src/protocol/radar/alg_ai/ws63-liteos-app -- project_name: -- D:/fbb_ws63-master/src/protocol/radar/plat/radar_service.c is not found, finding libradar_sensing.a in D:/fbb_ws63-master/src/protocol/radar/plat/ws63-liteos-app -- Configuring done -- Generating done -- Build files have been written to: D:/fbb_ws63-master/src/output/ws63/acore/ws63-liteos-app [0/1] Re-running CMake... ninja: error: rebuilding 'build.ninja': subcommand failed FAILED: build.ninja C:\Users\���ļ�\AppData\Local\Programs\Python\Python311\Lib\site-packages\cmake\data\bin\cmake.exe --regenerate-during-build -SD:\fbb_ws63-master\src -BD:\fbb_ws63-master\src\output\ws63\acore\ws63-liteos-app CreateProcess failed: The system cannot find the file specified. python path: C:\Users\���ļ�\AppData\Local\Programs\Python\Python311\python.exe flashboot start build ..... ['C:\\Users\\���ļ�\\AppData\\Local\\Programs\\Python\\Python311\\python.exe', 'build.py', 'ws63-flashboot'] [ws63][acore] run custom cmd success! D:\fbb_ws63-master\src\build\script\.\..\..\config.in d:\fbb_ws63-master\src Kconfig header saved to 'D:\fbb_ws63-master\src\output\ws63\acore\ws63-liteos-app\mconfig.h' ######### Build target:ws63_liteos_app failed ================================ [FAILED] Took 14.28 seconds ================================ * 终端进程已终止,退出代码: -1。 * 终端将被任务重用,按任意键关闭。
06-07
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值