Peripheral LBS example: Policy CMP0010 is not set and No SOURCES given to Zephyr library: lib__libc__common

Hi there,

I get the following errors while building the Peripheral LBS example for an nRF5340 with NCS 2.4.0 as a workspace application.

Child image hci_rpmsg:

=== child image hci_rpmsg - CPUNET begin ===
loading initial cache file C:/repos/MAT/Nordic/WorkSpace/ComNode/ComNode/build/hci_rpmsg/child_image_preload.cmake
CMake Warning (dev) at C:/repos/MAT/Nordic/WorkSpace/ComNode/ComNode/build/hci_rpmsg/child_image_preload.cmake:9 (set):
  Syntax error in cmake code at

    C:/repos/MAT/Nordic/WorkSpace/ComNode/ComNode/build/hci_rpmsg/child_image_preload.cmake:9

  when parsing string

    c:\ncs\toolchains\31f4403e35\opt\bin\python.exe

  Invalid escape sequence \3

  Policy CMP0010 is not set: Bad variable reference syntax is an error.  Run
  "cmake --help-policy CMP0010" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
This warning is for project developers.  Use -Wno-dev to suppress it.

Zephyr defaults:

Loading Zephyr default modules (Zephyr base).
-- Application: C:/repos/MAT/Nordic/WorkSpace/ComNode/zephyr/samples/bluetooth/hci_rpmsg
-- CMake version: 3.20.5
-- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Cache files will be written to: C:/repos/MAT/Nordic/WorkSpace/ComNode/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/repos/MAT/Nordic/WorkSpace/ComNode/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpunet
-- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: C:/repos/MAT/Nordic/WorkSpace/ComNode/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
-- Generated zephyr.dts: C:/repos/MAT/Nordic/WorkSpace/ComNode/ComNode/build/hci_rpmsg/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/repos/MAT/Nordic/WorkSpace/ComNode/ComNode/build/hci_rpmsg/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/repos/MAT/Nordic/WorkSpace/ComNode/ComNode/build/hci_rpmsg/zephyr/dts.cmake
Parsing C:/repos/MAT/Nordic/WorkSpace/ComNode/zephyr/Kconfig
Loaded configuration 'C:/repos/MAT/Nordic/WorkSpace/ComNode/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig'
Merged configuration 'C:/repos/MAT/Nordic/WorkSpace/ComNode/zephyr/samples/bluetooth/hci_rpmsg/prj.conf'
Merged configuration 'C:/repos/MAT/Nordic/WorkSpace/ComNode/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Configuration saved to 'C:/repos/MAT/Nordic/WorkSpace/ComNode/ComNode/build/hci_rpmsg/zephyr/.config'
Kconfig header saved to 'C:/repos/MAT/Nordic/WorkSpace/ComNode/ComNode/build/hci_rpmsg/zephyr/include/generated/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- libmetal version: 1.3.0 (C:/repos/MAT/Nordic/WorkSpace/ComNode/zephyr/samples/bluetooth/hci_rpmsg)
-- Build type:  
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- open-amp version: 1.3.0 (C:/repos/MAT/Nordic/WorkSpace/ComNode/modules/lib/open-amp/open-amp)
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- C_FLAGS :  -Wall -Wextra
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
CMake Warning at ../../../CMakeLists.txt:838 (message):
  No SOURCES given to Zephyr library: lib__libc__common

  Excluding target from build.

The no sources given will pop up a bit later again in the build process.

Kind regards,

Patrick

Parents Reply Children
Related