NCS2.8.0 faild to build peripheral_uart on nRF5340dk

HW: nRF5340DK
NCS: v2.8.0

After installing NCS v2.8.0 from ToolchainManager, I tried to build the project but failed.Error message "No such file or directory: LIBGCC_FILE_NAME: ''", I guess it may be a problem caused by the toolchain configuration, but do not know how to deal with it.Can someone give me some advice.


System env variable:

PS C:\ncs\v2.8.0\nrf> echo $Env:ZEPHYR_BASE
c:\ncs\v2.8.0\zephyr
PS C:\ncs\v2.8.0\nrf> echo $Env:ZEPHYR_SDK_INSTALL_DIR
C:\ncs\toolchains\2d382dcd92\opt\zephyr-sdk
PS C:\ncs\v2.8.0\nrf> echo $Env:ZEPHYR_TOOLCHAIN_VARIANT
zephyr
PS C:\ncs\v2.8.0\nrf>

Issue log:

Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/2d382dcd92/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.8.0/zephyr/.cache
-- Zephyr version: 3.7.99 (C:/ncs/v2.8.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf5340dk, qualifiers: nrf5340/cpuapp/ns
-- Found host-tools: zephyr 0.16.8 (C:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (C:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/2d382dcd92/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/ncs/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns.dts
-- Found devicetree overlay: app.overlay
-- Generated zephyr.dts: C:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart/build/peripheral_uart/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart/build/peripheral_uart/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: C:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart/build/peripheral_uart/zephyr/dts.cmake
Parsing C:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart/Kconfig
Loaded configuration 'C:/ncs/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_ns_defconfig'
Merged configuration 'c:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart/prj.conf'
Merged configuration 'C:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart/build/peripheral_uart/zephyr/.config.sysbuild'
Configuration saved to 'C:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart/build/peripheral_uart/zephyr/.config'
Kconfig header saved to 'C:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart/build/peripheral_uart/zephyr/include/generated/zephyr/autoconf.h'
CMake Error at C:/ncs/v2.8.0/zephyr/cmake/modules/extensions.cmake:2570 (message):
No such file or directory: LIBGCC_FILE_NAME: ''
Call Stack (most recent call first):
C:/ncs/v2.8.0/zephyr/cmake/compiler/gcc/target.cmake:106 (assert_exists)
C:/ncs/v2.8.0/zephyr/cmake/modules/FindTargetTools.cmake:103 (include)
C:/ncs/v2.8.0/zephyr/cmake/modules/kernel.cmake:25 (find_package)
C:/ncs/v2.8.0/zephyr/cmake/modules/zephyr_default.cmake:142 (include)
C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
CMake configure failed for Zephyr project: peripheral_uart

Location: C:/ncs/v2.8.0/nrf/samples/bluetooth/peripheral_uart
Call Stack (most recent call first):
cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
cmake/modules/sysbuild_default.cmake:20 (include)
C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
C:/ncs/v2.8.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)

Parents Reply Children
No Data
Related