Building the rpmsg sample on the nRF5340 DK

Following the instructions to build the sample resulted in an error message ..

Here are the details ... probably something simple but not obvious to me ...

PS C:\ncs> west build -p -b  nrf5340dk_nrf5340_cpuapp -d ./rpmmsg_service_demo  C:\ncs\zephyr\samples\subsys\ipc\rpmsg_service
-- west build: generating a build system
-- nrf5340dk_nrf5340_cpuapp compile as Master in this sample
Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/zephyr/samples/subsys/ipc/rpmsg_service
-- Found Python3: C:/Anaconda3/python.exe (found suitable exact version "3.9.7") found components: Interpreter
-- Cache files will be written to: C:/ncs/zephyr/.cache
-- Zephyr version: 3.0.99 (C:/ncs/zephyr)
-- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/gnu_arm_embedded)
-- Found BOARD.dts: C:/ncs/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: C:/ncs/rpmmsg_service_demo/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/ncs/rpmmsg_service_demo/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/ncs/rpmmsg_service_demo/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/ncs/rpmmsg_service_demo/zephyr/dts.cmake
Parsing C:/ncs/zephyr/Kconfig
Loaded configuration 'C:/ncs/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration 'C:/ncs/zephyr/samples/subsys/ipc/rpmsg_service/prj.conf'
Merged configuration 'C:/ncs/zephyr/samples/subsys/ipc/rpmsg_service/boards/nrf5340dk_nrf5340_cpuapp.conf'
Configuration saved to 'C:/ncs/rpmmsg_service_demo/zephyr/.config'
Kconfig header saved to 'C:/ncs/rpmmsg_service_demo/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnu_arm_embedded/bin/arm-none-eabi-gcc.exe
-- libmetal version: 1.1.0 (C:/ncs/zephyr/samples/subsys/ipc/rpmsg_service)
-- 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.1.0 (C:/ncs/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
-- Configuring done
-- Generating done
-- Build files have been written to: C:/ncs/rpmmsg_service_demo
-- west build: building application
[1/210] Generating include/generated/version.h
-- Zephyr version: 3.0.99 (C:/ncs/zephyr), build: v3.0.99-ncs1-13-g85a003480961
[39/210] Performing configure step for 'rpmsg_service_remote'
FAILED: rpmsg_service_remote-prefix/src/rpmsg_service_remote-stamp/rpmsg_service_remote-configure C:/ncs/rpmmsg_service_demo/rpmsg_service_remote-prefix/src/rpmsg_service_remote-stamp/rpmsg_service_remote-configure
cmd.exe /C "cd /D C:\ncs\rpmmsg_service_demo\rpmsg_service_remote-prefix\src\rpmsg_service_remote-build && "C:\Program Files\CMake\bin\cmake.exe" -GNinja -CC:/ncs/rpmmsg_service_demo/rpmsg_service_remote-prefix/tmp/rpmsg_service_remote-cache-.cmake C:/ncs/zephyr/samples/subsys/ipc/rpmsg_service/remote && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/ncs/rpmmsg_service_demo/rpmsg_service_remote-prefix/src/rpmsg_service_remote-stamp/rpmsg_service_remote-configure"
loading initial cache file C:/ncs/rpmmsg_service_demo/rpmsg_service_remote-prefix/tmp/rpmsg_service_remote-cache-.cmake
-- nrf5340dk_nrf5340_cpunet compile as slave in this sample
Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/zephyr/samples/subsys/ipc/rpmsg_service/remote
-- Found Python3: C:/Program Files/Python310/python.exe (found suitable exact version "3.10.6") found components: Interpreter
-- Cache files will be written to: C:/ncs/zephyr/.cache
-- Zephyr version: 3.0.99 (C:/ncs/zephyr)
-- Board: nrf5340dk_nrf5340_cpunet
-- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/gnu_arm_embedded)
-- Found BOARD.dts: C:/ncs/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
Traceback (most recent call last):
  File "C:\ncs\zephyr\scripts\dts\gen_defines.py", line 33, in <module>
    from devicetree import edtlib
  File "C:\ncs\zephyr\scripts\dts\python-devicetree\src\devicetree\edtlib.py", line 77, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
CMake Error at C:/ncs/zephyr/cmake/modules/dts.cmake:213 (message):
  gen_defines.py failed with return code: 1
Call Stack (most recent call first):
  C:/ncs/zephyr/cmake/modules/zephyr_default.cmake:121 (include)
  C:/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:51 (include)
  C:/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:76 (include_boilerplate)
  CMakeLists.txt:18 (find_package)


-- Configuring incomplete, errors occurred!
[52/210] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/ipc/rpmsg_service/rpmsg_backend.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\ncs\rpmmsg_service_demo'

Parents
  • CMake error log details :

    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: C:/gnu_arm_embedded/bin/arm-none-eabi-gcc.exe
    Build flags:
    Id flags:  

    The output was:
    1
    c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit':
    exit.c:(.text.exit+0x2c): undefined reference to `_exit'
    collect2.exe: error: ld returned 1 exit status


    Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
    Compiler: C:/gnu_arm_embedded/bin/arm-none-eabi-gcc.exe
    Build flags:
    Id flags:  

    The output was:
    1
    c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit':
    exit.c:(.text.exit+0x2c): undefined reference to `_exit'
    collect2.exe: error: ld returned 1 exit status

Reply
  • CMake error log details :

    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: C:/gnu_arm_embedded/bin/arm-none-eabi-gcc.exe
    Build flags:
    Id flags:  

    The output was:
    1
    c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit':
    exit.c:(.text.exit+0x2c): undefined reference to `_exit'
    collect2.exe: error: ld returned 1 exit status


    Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
    Compiler: C:/gnu_arm_embedded/bin/arm-none-eabi-gcc.exe
    Build flags:
    Id flags:  

    The output was:
    1
    c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): in function `exit':
    exit.c:(.text.exit+0x2c): undefined reference to `_exit'
    collect2.exe: error: ld returned 1 exit status

Children
No Data
Related