ot-nrf528xx$ ./script/build nrf52840 USB_trans -DOT_BOOTLOADER=USB + OT_CMAKE_NINJA_TARGET= + NRF_PLATFORMS=(nrf52811 nrf52833 nrf52840) + readonly NRF_PLATFORMS + NRF_BUILD_TYPES=(UART_trans USB_trans SPI_trans_NCP soft_crypto soft_crypto_threading) + readonly NRF_BUILD_TYPES ++ pwd + readonly OT_SRCDIR=/data/workspace/openthread/test/ot-nrf528xx + OT_SRCDIR=/data/workspace/openthread/test/ot-nrf528xx + OT_OPTIONS=("-DCMAKE_BUILD_TYPE=MinSizeRel" "-DOT_PLATFORM=external" "-DOT_SLAAC=ON") + readonly OT_OPTIONS + main nrf52840 USB_trans -DOT_BOOTLOADER=USB + [[ 3 == 0 ]] + local platform=nrf52840 + echo nrf52811 nrf52833 nrf52840 + grep -wq nrf52840 + [[ 3 == 1 ]] + local nrf_build_type=USB_trans + echo UART_trans USB_trans SPI_trans_NCP soft_crypto soft_crypto_threading + grep -wq USB_trans + shift + shift + local_options=() + local local_options + options=("${OT_OPTIONS[@]}") + local options + case "${platform}" in + local_options+=("-DCMAKE_TOOLCHAIN_FILE=src/${platform}/arm-none-eabi.cmake") + case "${nrf_build_type}" in + options+=("${local_options[@]}" "-DOT_USB=ON" "-DOT_EXTERNAL_MBEDTLS=nordicsemi-mbedtls") + options+=("$@") + build -DNRF_PLATFORM=nrf52840 -DCMAKE_BUILD_TYPE=MinSizeRel -DOT_PLATFORM=external -DOT_SLAAC=ON -DCMAKE_TOOLCHAIN_FILE=src/nrf52840/arm-none-eabi.cmake -DOT_USB=ON -DOT_EXTERNAL_MBEDTLS=nordicsemi-mbedtls -DOT_BOOTLOADER=USB + local builddir=build + mkdir -p build + cd build + cmake -GNinja -DOT_COMPILE_WARNING_AS_ERROR=ON -DNRF_PLATFORM=nrf52840 -DCMAKE_BUILD_TYPE=MinSizeRel -DOT_PLATFORM=external -DOT_SLAAC=ON -DCMAKE_TOOLCHAIN_FILE=src/nrf52840/arm-none-eabi.cmake -DOT_USB=ON -DOT_EXTERNAL_MBEDTLS=nordicsemi-mbedtls -DOT_BOOTLOADER=USB /data/workspace/openthread/test/ot-nrf528xx -- OpenThread Source Directory: /data/workspace/openthread/test/ot-nrf528xx/openthread -- OpenThread CMake build type: MinSizeRel -- Package Name: OPENTHREAD -- Setting default package version: thread-reference-20200818-1388-ge708324c3-dirty -- Package Version: thread-reference-20200818-1388-ge708324c3-dirty -- Configuring done -- Generating done -- Build files have been written to: /data/workspace/openthread/test/ot-nrf528xx/build + [[ -n '' ]] + ninja [1/7] Building C object openthread/examples/apps/cli/CMakeFiles/ot-cli-ftd.dir/main.c.obj ../openthread/examples/apps/cli/main.c: In function 'main': ../openthread/examples/apps/cli/main.c:134:5: warning: implicit declaration of function 'otThreadSetEnabled'; did you mean 'otIp6SetEnabled'? [-Wimplicit-function-declaration] 134 | otThreadSetEnabled(instance, true); | ^~~~~~~~~~~~~~~~~~ | otIp6SetEnabled [2/7] Building C object openthread/examples/apps/cli/CMakeFiles/ot-cli-radio.dir/main.c.obj ../openthread/examples/apps/cli/main.c: In function 'main': ../openthread/examples/apps/cli/main.c:134:5: warning: implicit declaration of function 'otThreadSetEnabled'; did you mean 'otIp6SetEnabled'? [-Wimplicit-function-declaration] 134 | otThreadSetEnabled(instance, true); | ^~~~~~~~~~~~~~~~~~ | otIp6SetEnabled [3/7] Building C object openthread/examples/apps/cli/CMakeFiles/ot-cli-mtd.dir/main.c.obj ../openthread/examples/apps/cli/main.c: In function 'main': ../openthread/examples/apps/cli/main.c:134:5: warning: implicit declaration of function 'otThreadSetEnabled'; did you mean 'otIp6SetEnabled'? [-Wimplicit-function-declaration] 134 | otThreadSetEnabled(instance, true); | ^~~~~~~~~~~~~~~~~~ | otIp6SetEnabled [4/7] Linking CXX executable bin/ot-cli-radio FAILED: bin/ot-cli-radio : && /usr/local/bin/arm-none-eabi-g++ -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -mabi=aapcs -fdata-sections -ffunction-sections -Wno-expansion-to-defined -fno-exceptions -fno-rtti -Os -DNDEBUG -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -mabi=aapcs -fdata-sections -ffunction-sections -Wno-expansion-to-defined -specs=nano.specs -specs=nosys.specs openthread/examples/apps/cli/CMakeFiles/ot-cli-radio.dir/cli_uart.cpp.obj openthread/examples/apps/cli/CMakeFiles/ot-cli-radio.dir/main.c.obj -o bin/ot-cli-radio lib/libopenthread-cli-radio.a lib/libopenthread-nrf52840.a lib/libopenthread-nrf52840-transport.a lib/libopenthread-radio-cli.a lib/libopenthread-nrf52840.a lib/libopenthread-nrf52840-transport.a lib/libopenthread-cli-radio.a lib/libopenthread-radio.a lib/libnordicsemi-nrf52840-radio-driver.a lib/libnordicsemi-nrf52840-radio-driver-softdevice.a lib/libjlinkrtt.a lib/libnordicsemi-nrf52840-sdk.a -T/data/workspace/openthread/test/ot-nrf528xx/src/nrf52840/nrf52840_bootloader_usb.ld -Wl,--gc-sections -Wl,-Map=ot-cli-radio.map ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_shared.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedtls_tls_vanilla.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedtls_x509_vanilla.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_cc3xx.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libnrf_cc310_platform_0.9.4.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_oberon.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedtls_base_vanilla.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_shared.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedtls_tls_vanilla.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedtls_x509_vanilla.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_cc3xx.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libnrf_cc310_platform_0.9.4.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_oberon.a ../third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedtls_base_vanilla.a && : /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: openthread/examples/apps/cli/CMakeFiles/ot-cli-radio.dir/main.c.obj: in function `main': main.c:(.text.startup.main+0x1c): undefined reference to `otIp6SetEnabled' /opt/gcc-arm-none-eabi-9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: main.c:(.text.startup.main+0x24): undefined reference to `otThreadSetEnabled' collect2: error: ld returned 1 exit status [5/7] cd /data/workspace/openthread/test/ot-nrf528xx/build/openthread && /usr/local/bin/cmake -DLIST="OPENTH..._CONFIG_FILE="nrf-config.h"" -P /data/workspace/openthread/test/ot-nrf528xx/openthread/etc/cmake/print.cmak OPENTHREAD_CONFIG_ASSERT_ENABLE=1 OPENTHREAD_CONFIG_BACKBONE_ROUTER_DUA_NDPROXYING_ENABLE=0 OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE=0 OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS=0 OPENTHREAD_CONFIG_ENABLE_BUILTIN_MBEDTLS_MANAGEMENT=1 OPENTHREAD_CONFIG_MAC_CSL_AUTO_SYNC_ENABLE=0 OPENTHREAD_CONFIG_PING_SENDER_ENABLE=1 OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE=1 OPENTHREAD_SPINEL_CONFIG_RCP_RESTORATION_MAX_COUNT=0 PACKAGE_NAME=OPENTHREAD OPENTHREAD_CONFIG_THREAD_VERSION=OT_THREAD_VERSION_1_2 OPENTHREAD_CONFIG_NCP_HDLC_ENABLE=1 OPENTHREAD_CONFIG_FILE=openthread-core-nrf52840-config.h OPENTHREAD_PROJECT_CORE_CONFIG_FILE=openthread-core-nrf52840-config.h OPENTHREAD_CORE_CONFIG_PLATFORM_CHECK_FILE=openthread-core-nrf52840-config-check.h MBEDTLS_USER_CONFIG_FILE=nrf52840-mbedtls-config.h USB_CDC_AS_SERIAL_TRANSPORT=1 APP_USBD_NRF_DFU_TRIGGER_ENABLED=1 OPENTHREAD_CORE_CONFIG_PLATFORM_CHECK_FILE=openthread-core-nrf52840-config-check.h MBEDTLS_CONFIG_FILE=nrf-config.h [7/7] Linking CXX executable bin/ot-cli-mtd ninja: build stopped: subcommand failed.