nRF5340 sample apps fail to build

Hi,

NCS Version: 2.5.0

Zephyr RTOS Version: 3.4.99

Zephyr Toolchain Version: 0.16.4

I attempted to build some of the sample apps for the nRF5340

  • Multiprotocol RpMsg
  • Remote Shell

But the builds always fail due to the error below occuring numerous times:

fatal error: openamp/open_amp.h: No such file or directory

Has this been observed before? Where should I begin looking to resolve this? Are the SDK versions too old?

Best Regards,

Parker

 *  Executing task: nRF Connect: Generate config nrf5340dk_nrf5340_cpuapp for external/nrf/samples/nrf5340/remote_shell 

Building remote_shell
west build --build-dir /workspaces/project/external/nrf/samples/nrf5340/remote_shell/build /workspaces/project/external/nrf/samples/nrf5340/remote_shell --pristine --board nrf5340dk_nrf5340_cpuapp --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/workspaces/project/external/nrf/samples/nrf5340/remote_shell/prj.conf -DBOARD_ROOT=/workspaces/project/application

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /workspaces/project/external/nrf/samples/nrf5340/remote_shell
-- CMake version: 3.28.1
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /workdir/.cache/zephyr
-- Zephyr version: 3.4.99 (/workspaces/project/external/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.14.0")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.4 (/usr/local/zephyr-sdk)
-- Found toolchain: zephyr 0.16.4 (/usr/local/zephyr-sdk)
-- Found Dtc: /usr/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
-- Found BOARD.dts: /workspaces/project/external/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: /workspaces/project/external/nrf/samples/nrf5340/remote_shell/boards/nrf5340dk_nrf5340_cpuapp.overlay
-- Generated zephyr.dts: /workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/dts.cmake
Parsing /workspaces/project/external/nrf/samples/nrf5340/remote_shell/Kconfig
Loaded configuration '/workspaces/project/external/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration '/workspaces/project/external/nrf/samples/nrf5340/remote_shell/prj.conf'
Configuration saved to '/workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/.config'
Kconfig header saved to '/workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /usr/local/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (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: /usr/local/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Configuring done (4.9s)
-- Generating done (0.1s)
-- Build files have been written to: /workspaces/project/external/nrf/samples/nrf5340/remote_shell/build
-- west build: building application
[1/173] Preparing syscall dependency handling

[3/173] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/workspaces/project/external/zephyr), build: v3.4.99-ncs1-35-g3c4d108eb857
[34/173] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_static_vrings.c.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_static_vrings.c.obj 
ccache /usr/local/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_INTEGER_PRINTF_SCANF -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/workspaces/project/external/zephyr/kernel/include -I/workspaces/project/external/zephyr/arch/arm/include -I/workspaces/project/external/zephyr/include -I/workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated -I/workspaces/project/external/zephyr/soc/arm/nordic_nrf/nrf53 -I/workspaces/project/external/zephyr/soc/arm/nordic_nrf/common/. -I/workspaces/project/external/zephyr/subsys/usb/device -I/workspaces/project/external/nrf/include -I/workspaces/project/external/nrf/tests/include -I/workspaces/project/external/modules/hal/cmsis/CMSIS/Core/Include -I/workspaces/project/external/zephyr/modules/cmsis/. -I/workspaces/project/external/modules/hal/nordic/nrfx -I/workspaces/project/external/modules/hal/nordic/nrfx/drivers/include -I/workspaces/project/external/modules/hal/nordic/nrfx/mdk -I/workspaces/project/external/zephyr/modules/hal_nordic/nrfx/. -isystem /workspaces/project/external/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros /workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/usr/local/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /workspaces/project/external/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/workspaces/project/external/nrf/samples/nrf5340/remote_shell=CMAKE_SOURCE_DIR -fmacro-prefix-map=/workspaces/project/external/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/workspaces/project=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_static_vrings.c.obj -MF zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_static_vrings.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_static_vrings.c.obj -c /workspaces/project/external/zephyr/subsys/ipc/ipc_service/lib/ipc_static_vrings.c
In file included from /workspaces/project/external/zephyr/subsys/ipc/ipc_service/lib/ipc_static_vrings.c:7:
/workspaces/project/external/zephyr/include/zephyr/ipc/ipc_static_vrings.h:11:10: fatal error: openamp/open_amp.h: No such file or directory
   11 | #include <openamp/open_amp.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[37/173] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_rpmsg.c.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_rpmsg.c.obj 
ccache /usr/local/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_INTEGER_PRINTF_SCANF -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/workspaces/project/external/zephyr/kernel/include -I/workspaces/project/external/zephyr/arch/arm/include -I/workspaces/project/external/zephyr/include -I/workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated -I/workspaces/project/external/zephyr/soc/arm/nordic_nrf/nrf53 -I/workspaces/project/external/zephyr/soc/arm/nordic_nrf/common/. -I/workspaces/project/external/zephyr/subsys/usb/device -I/workspaces/project/external/nrf/include -I/workspaces/project/external/nrf/tests/include -I/workspaces/project/external/modules/hal/cmsis/CMSIS/Core/Include -I/workspaces/project/external/zephyr/modules/cmsis/. -I/workspaces/project/external/modules/hal/nordic/nrfx -I/workspaces/project/external/modules/hal/nordic/nrfx/drivers/include -I/workspaces/project/external/modules/hal/nordic/nrfx/mdk -I/workspaces/project/external/zephyr/modules/hal_nordic/nrfx/. -isystem /workspaces/project/external/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros /workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/usr/local/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /workspaces/project/external/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/workspaces/project/external/nrf/samples/nrf5340/remote_shell=CMAKE_SOURCE_DIR -fmacro-prefix-map=/workspaces/project/external/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/workspaces/project=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_rpmsg.c.obj -MF zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_rpmsg.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/lib/ipc_rpmsg.c.obj -c /workspaces/project/external/zephyr/subsys/ipc/ipc_service/lib/ipc_rpmsg.c
In file included from /workspaces/project/external/zephyr/subsys/ipc/ipc_service/lib/ipc_rpmsg.c:8:
/workspaces/project/external/zephyr/include/zephyr/ipc/ipc_rpmsg.h:11:10: fatal error: openamp/open_amp.h: No such file or directory
   11 | #include <openamp/open_amp.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[38/173] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.c.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.c.obj 
ccache /usr/local/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_INTEGER_PRINTF_SCANF -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/workspaces/project/external/zephyr/kernel/include -I/workspaces/project/external/zephyr/arch/arm/include -I/workspaces/project/external/zephyr/include -I/workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated -I/workspaces/project/external/zephyr/soc/arm/nordic_nrf/nrf53 -I/workspaces/project/external/zephyr/soc/arm/nordic_nrf/common/. -I/workspaces/project/external/zephyr/subsys/usb/device -I/workspaces/project/external/nrf/include -I/workspaces/project/external/nrf/tests/include -I/workspaces/project/external/modules/hal/cmsis/CMSIS/Core/Include -I/workspaces/project/external/zephyr/modules/cmsis/. -I/workspaces/project/external/modules/hal/nordic/nrfx -I/workspaces/project/external/modules/hal/nordic/nrfx/drivers/include -I/workspaces/project/external/modules/hal/nordic/nrfx/mdk -I/workspaces/project/external/zephyr/modules/hal_nordic/nrfx/. -isystem /workspaces/project/external/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros /workspaces/project/external/nrf/samples/nrf5340/remote_shell/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/usr/local/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /workspaces/project/external/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/workspaces/project/external/nrf/samples/nrf5340/remote_shell=CMAKE_SOURCE_DIR -fmacro-prefix-map=/workspaces/project/external/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/workspaces/project=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.c.obj -MF zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.c.obj -c /workspaces/project/external/zephyr/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.c
In file included from /workspaces/project/external/zephyr/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.c:15:
/workspaces/project/external/zephyr/include/zephyr/ipc/ipc_static_vrings.h:11:10: fatal error: openamp/open_amp.h: No such file or directory
   11 | #include <openamp/open_amp.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[51/173] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/usb/device/usb_device.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /workspaces/project/external/nrf/samples/nrf5340/remote_shell/build

Related