ncs3.0.2 serial_lte_modem build problem

hi support team,

it is urgent for me to ask for help.

customer is trying to build serial_lte_modem with ncs3.0.2, but always failed. there are three times find Asm compiler  as below:

...

but on customer side, sometimes it failed on the first time, and sometimes it faild on the second time;

nRF Connect: Generate config nrf9151dk/nrf9151/ns for nrf/applications/serial_lte_modem 
Building serial_lte_modem
C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir d:/tracker-sdk/nrf/applications/serial_lte_modem/build d:/tracker-sdk/nrf/applications/serial_lte_modem --pristine --board nrf9151dk/nrf9151/ns --sysbuild"
-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: D:/tracker-sdk/zephyr/.cache
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf9151dk, qualifiers: nrf9151/ns
Parsing D:/tracker-sdk/zephyr/share/sysbuild/Kconfig
Loaded configuration 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/_sysbuild/empty.conf'
Merged configuration 'd:/tracker-sdk/nrf/applications/serial_lte_modem/sysbuild.conf'
Configuration saved to 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/zephyr/.config'
Kconfig header saved to 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/_sysbuild/autoconf.h'
-- 
  *****************************
  * Running CMake for mcuboot *
  *****************************
Loading Zephyr default modules (Zephyr base).
-- Application: D:/tracker-sdk/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: D:/tracker-sdk/zephyr/.cache
-- Zephyr version: 4.0.99 (D:/tracker-sdk/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf9151dk, qualifiers: nrf9151
-- Found host-tools: zephyr 0.17.0 (D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk)
-- Found Dtc: D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: D:/tracker-sdk/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151.dts
-- Found devicetree overlay: D:/tracker-sdk/nrf/applications/serial_lte_modem/sysbuild/mcuboot/app.overlay
-- Generated zephyr.dts: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/zephyr.dts
-- Generated pickled edt: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/edt.pickle
-- Generated zephyr.dts: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/dts.cmake
warning: MBEDTLS_CFG_FILE (defined at D:/tracker-sdk/bootloader/mcuboot/boot/zephyr/Kconfig:426,
D:/tracker-sdk/nrf\subsys\nrf_security/Kconfig:67, D:/tracker-sdk/zephyr/modules/mbedtls/Kconfig:59,
modules\mbedtls\Kconfig:59) was assigned the value 'mcuboot-mbedtls-cfg.h' but got the value ''. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MBEDTLS_CFG_FILE and/or look up
MBEDTLS_CFG_FILE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.
Parsing D:/tracker-sdk/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration 'D:/tracker-sdk/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_defconfig'
Merged configuration 'D:/tracker-sdk/nrf/applications/serial_lte_modem/sysbuild/mcuboot/prj.conf'
Merged configuration 'D:/tracker-sdk/nrf/modules/mcuboot/tfm.conf'
Merged configuration 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/.config.sysbuild'
Configuration saved to 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/.config'
Kconfig header saved to 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: d:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/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: D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at D:/tracker-sdk/zephyr/CMakeLists.txt:1002 (message):
 No SOURCES given to Zephyr library: drivers__console
 Excluding target from build.

MCUBoot bootloader key file: D:/tracker-sdk/bootloader/mcuboot/root-ec-p256.pem
CMake Warning at CMakeLists.txt:393 (message):
 WARNING: Using default MCUboot signing key file, this file is for debug use
 only and is not secure!

-- Configuring done
-- Generating done
-- Build files have been written to: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/mcuboot
-- 
  **************************************
  * Running CMake for serial_lte_modem *
  **************************************
-- Application: D:/tracker-sdk/nrf/applications/serial_lte_modem
-- CMake version: 3.21.0
-- Found Python3: D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: D:/tracker-sdk/zephyr/.cache
-- Zephyr version: 4.0.99 (D:/tracker-sdk/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
Loading Zephyr default modules (Zephyr base).
-- Board: nrf9151dk, qualifiers: nrf9151/ns
-- Found host-tools: zephyr 0.17.0 (D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk)
-- Found Dtc: D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: D:/tracker-sdk/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_ns.dts
-- Found devicetree overlay: D:/tracker-sdk/nrf/applications/serial_lte_modem/boards/nrf9151dk_nrf9151_ns.overlay
-- Generated zephyr.dts: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/zephyr.dts
-- Generated pickled edt: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/edt.pickle
-- Generated zephyr.dts: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/zephyr.dts
-- Generated devicetree_generated.h: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/dts.cmake
warning: Experimental symbol TFTP_LIB is enabled.
Parsing D:/tracker-sdk/nrf/applications/serial_lte_modem/Kconfig
Loaded configuration 'D:/tracker-sdk/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_ns_defconfig'
Merged configuration 'D:/tracker-sdk/nrf/applications/serial_lte_modem/prj.conf'
Merged configuration 'D:/tracker-sdk/nrf/applications/serial_lte_modem/boards/nrf9151dk_nrf9151_ns.conf'
Merged configuration 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config.sysbuild'
Configuration saved to 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config'
Kconfig header saved to 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: d:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/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 unknown
-- Found assembler: D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Warning: Did not find file Compiler/-ASM
=========== Generating psa_crypto_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_config ===============
=========== Generating psa_crypto_library_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_library_config ===============
-- Warning: Did not find file Compiler/-ASM
-- Including signing script: D:/tracker-sdk/nrf/cmake/sysbuild/image_signing.cmake
CMake Warning at D:/tracker-sdk/zephyr/CMakeLists.txt:2180 (message):
 __ASSERT() statements are globally ENABLED

-- Configuring done
-- Generating done
-- Build files have been written to: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem
Dropping partition 'nrf_modem_lib_trace' since its size is 0.
CMake Warning at D:/tracker-sdk/nrf/cmake/sysbuild/partition_manager.cmake:121 (message):
 
       ---------------------------------------------------------------------
       --- WARNING: Using a bootloader without pm_static.yml.            ---
       --- There are cases where a deployed product can consist of       ---
       --- multiple images, and only a subset of these images can be     ---
       --- upgraded through a firmware update mechanism. In such cases,  ---
       --- the upgradable images must have partitions that are static    ---
       --- and are matching the partition map used by the bootloader     ---
       --- programmed onto the device.                                   ---
       ---------------------------------------------------------------------
       
Call Stack (most recent call first):
 D:/tracker-sdk/nrf/cmake/sysbuild/partition_manager.cmake:620 (partition_manager)
 D:/tracker-sdk/nrf/sysbuild/CMakeLists.txt:779 (include)
 cmake/modules/sysbuild_extensions.cmake:583 (nrf_POST_CMAKE)
 cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
 cmake/modules/sysbuild_images.cmake:46 (sysbuild_module_call)
 cmake/modules/sysbuild_default.cmake:21 (include)
 D:/tracker-sdk/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
 D:/tracker-sdk/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
 D:/tracker-sdk/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
 template/CMakeLists.txt:10 (find_package)

-- Configuring done
-- Generating done
-- Build files have been written to: D:/tracker-sdk/nrf/applications/serial_lte_modem/build
-- west build: building application
[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: D:/tracker-sdk/nrf/applications/serial_lte_modem
-- CMake version: 3.21.0
-- Cache files will be written to: D:/tracker-sdk/zephyr/.cache
-- Zephyr version: 4.0.99 (D:/tracker-sdk/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf9151dk, qualifiers: nrf9151/ns
-- Found host-tools: zephyr 0.17.0 (D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (D:/tracker/nrf-connect/toolchains/0b393f9e1b/opt/zephyr-sdk)
-- Found BOARD.dts: D:/tracker-sdk/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_ns.dts
-- Found devicetree overlay: D:/tracker-sdk/nrf/applications/serial_lte_modem/boards/nrf9151dk_nrf9151_ns.overlay
-- Generated zephyr.dts: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/zephyr.dts
-- Generated pickled edt: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/edt.pickle
-- Generated zephyr.dts: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/zephyr.dts
-- Generated devicetree_generated.h: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/dts.cmake
warning: Experimental symbol TFTP_LIB is enabled.
Parsing D:/tracker-sdk/nrf/applications/serial_lte_modem/Kconfig
Loaded configuration 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config'
Merged configuration 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config.sysbuild'
No change to configuration in 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/.config'
No change to Kconfig header in 'D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/zephyr/include/generated/zephyr/autoconf.h'
CMake Error at D:/tracker-sdk/zephyr/cmake/modules/extensions.cmake:2645 (message):
 No such file or directory: LIBGCC_FILE_NAME: ''
Call Stack (most recent call first):
 D:/tracker-sdk/zephyr/cmake/compiler/gcc/target.cmake:106 (assert_exists)
 D:/tracker-sdk/zephyr/cmake/modules/FindTargetTools.cmake:103 (include)
 D:/tracker-sdk/zephyr/cmake/modules/kernel.cmake:25 (find_package)
 D:/tracker-sdk/zephyr/cmake/modules/zephyr_default.cmake:142 (include)
 D:/tracker-sdk/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
 D:/tracker-sdk/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
 CMakeLists.txt:9 (find_package)

-- Configuring incomplete, errors occurred!
See also "D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/CMakeFiles/CMakeOutput.log".
See also "D:/tracker-sdk/nrf/applications/serial_lte_modem/build/serial_lte_modem/CMakeFiles/CMakeError.log".
FAILED: build.ninja 
D:\tracker\nrf-connect\toolchains\0b393f9e1b\opt\bin\cmake.exe --regenerate-during-build -SD:\tracker-sdk\nrf\applications\serial_lte_modem -BD:\tracker-sdk\nrf\applications\serial_lte_modem\build\serial_lte_modem
ninja: error: rebuilding 'build.ninja': subcommand failed
[10/20] No configure step for 'mcuboot'
FAILED: _sysbuild/sysbuild/images/serial_lte_modem-prefix/src/serial_lte_modem-stamp/serial_lte_modem-build D:/tracker-sdk/nrf/applications/serial_lte_modem/build/_sysbuild/sysbuild/images/serial_lte_modem-prefix/src/serial_lte_modem-stamp/serial_lte_modem-build 
cmd.exe /C "cd /D D:\tracker-sdk\nrf\applications\serial_lte_modem\build\serial_lte_modem && D:\tracker\nrf-connect\toolchains\0b393f9e1b\opt\bin\cmake.exe --build ."
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'D:\tracker\nrf-connect\toolchains\0b393f9e1b\opt\bin\cmake.EXE' --build D:/tracker-sdk/nrf/applications/serial_lte_modem/build

we can see that line54:"-- The ASM compiler identification is GNU"

but in line101:"-- The ASM compiler identification is unknown", which cause "Warning: Did not find file Compiler/-ASM", and build failed.

may i ask,what could be the possible reason for this?

this is urgent!

Regards,

William.

Related