Skip to content

mbed test failing to build for nrf51_dk since #6577  #6861

@andrewleech

Description

@andrewleech

Description

In the last day or so mbed test -m NRF51_DK -t GCC_ARM --verbose --clean has failed to build.
None of the actual C files can compile:

Compile: F:\Program Files (x86)\GNU Tools ARM Embedded\6 2017-q1-update\bin\arm-none-eabi-g++ -std=gnu++98 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g1 -mcpu=cortex-m0 -mthumb -D__CORTEX_M0 -DNRF51 -D__MBED__=1 -DTARGET_LIKE_MBED -DTARGET_NRF51822 -DDEVICE_PORTINOUT=1 -D__MBED_CMSIS_RTOS_CM -DDEVICE_LOWPOWERTIMER=1 -DDEVICE_RTC=1 -DTOOLCHAIN_object -DDEVICE_SERIAL_ASYNCH=1 -D__CMSIS_RTOS -DTARGET_MCU_NRF51822_UNIFIED -DTOOLCHAIN_GCC -DDEVICE_SPISLAVE=1 -DTARGET_CORTEX_M -DTARGET_SDK11 -DDEVICE_I2C_ASYNCH=1 -DARM_MATH_CM0 -DTARGET_UVISOR_UNSUPPORTED -DTARGET_NRF5 -DFEATURE_BLE=1 -DTARGET_M0 -DTARGET_MCU_NRF51 -DCMSIS_VECTAB_VIRTUAL -DTARGET_MCU_NRF51_UNIFIED -DMBED_TICKLESS -DDEVICE_INTERRUPTIN=1 -DTARGET_CORTEX -DDEVICE_I2C=1 -DDEVICE_PORTOUT=1 -DDEVICE_SERIAL=1 -DDEVICE_SPI_ASYNCH=1 -DTARGET_FF_ARDUINO -DDEVICE_PORTIN=1 -DTARGET_RELEASE -DTARGET_NORDIC -DDEVICE_SERIAL_FC=1 -DBLE_STACK_SUPPORT_REQD -DTARGET_MCU_NRF51_32K_UNIFIED -DTARGET_NRF51_DK -DDEVICE_SLEEP=1 -DTOOLCHAIN_GCC_ARM -DTARGET_MCU_NRF51822 -DTARGET_MCU_NORDIC_32K -DSOFTDEVICE_PRESENT -DNO_SYSTICK -DDEVICE_SPI=1 -DCMSIS_VECTAB_VIRTUAL_HEADER_FILE="cmsis_nvic.h" -DMBED_BUILD_TIMESTAMP=1525940526.38 -DDEVICE_ANALOGIN=1 -DDEVICE_PWMOUT=1 -DS130 -DTARGET_LIKE_CORTEX_M0 -DTARGET_MCU_NRF51_32K @F:\pi\lumos\angler\nrf51_test\BUILD\tests\NRF51_DK\GCC_ARM\.\mbed-os\TESTS\network\emac\.includes_8285364bd2c9f08b4f63dc09ac3f1a8b.txt -include F:\pi\lumos\angler\nrf51_test\BUILD\tests\NRF51_DK\GCC_ARM\.\mbed-os\TESTS\network\emac\mbed_config.h -MD -MF BUILD\tests\NRF51_DK\GCC_ARM\mbed-os\TESTS\network\emac\emac_ctp.d -o BUILD\tests\NRF51_DK\GCC_ARM\mbed-os\TESTS\network\emac\emac_ctp.o .\mbed-os\TESTS\network\emac\emac_ctp.cpp
        [DEBUG] Return: 1
        [DEBUG] Output: arm-none-eabi-g++: error: CreateProcess: No such file or directory

This is on a new, empty project with just mbed-os checked out.
I narrowed the problem down to 5038135 (when #6577 was merged) .
mbed compile ... still works fine.
mbed test -m lpc1768 -t GCC_ARM --verbose --clean works fine.

If I checkout the previous commit 53aa1b0 my original command for NRF51_DK works fine.

[DEBUG] Compile: F:\Program Files (x86)\GNU Tools ARM Embedded\6 2017-q1-update\bin\arm-none-eabi-g++ -std=gnu++98 -fno-rtti -Wvla -c -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fmessage-length=0 -fno-exceptions -fno-builtin -ffunction-sections -fdata-sections -funsigned-char -MMD -fno-delete-null-pointer-checks -fomit-frame-pointer -Os -g1 -mcpu=cortex-m0 -mthumb -D__CORTEX_M0 -DNRF51 -D__MBED__=1 -DTARGET_LIKE_MBED -DTARGET_NRF51822 -DDEVICE_PORTINOUT=1 -D__MBED_CMSIS_RTOS_CM -DDEVICE_LOWPOWERTIMER=1 -DDEVICE_RTC=1 -DTOOLCHAIN_object -DDEVICE_SERIAL_ASYNCH=1 -D__CMSIS_RTOS -DTARGET_MCU_NRF51822_UNIFIED -DTOOLCHAIN_GCC -DDEVICE_I2C_ASYNCH=1 -DTARGET_CORTEX_M -DTARGET_SDK11 -DARM_MATH_CM0 -DDEVICE_SERIAL=1 -DTARGET_UVISOR_UNSUPPORTED -DTARGET_NRF5 -DFEATURE_BLE=1 -DTARGET_M0 -DTARGET_MCU_NRF51 -DCMSIS_VECTAB_VIRTUAL -DTARGET_MCU_NRF51_UNIFIED -DMBED_TICKLESS -DDEVICE_INTERRUPTIN=1 -DTARGET_CORTEX -DDEVICE_I2C=1 -DDEVICE_PORTOUT=1 -DMBED_BUILD_TIMESTAMP=1525940933.87 -DDEVICE_SPI_ASYNCH=1 -DTARGET_FF_ARDUINO -DDEVICE_PORTIN=1 -DTARGET_RELEASE -DTARGET_NORDIC -DDEVICE_SERIAL_FC=1 -DBLE_STACK_SUPPORT_REQD -DTARGET_MCU_NRF51_32K_UNIFIED -DTARGET_NRF51_DK -DDEVICE_SLEEP=1 -DTOOLCHAIN_GCC_ARM -DTARGET_MCU_NRF51822 -DTARGET_MCU_NORDIC_32K -DSOFTDEVICE_PRESENT -DNO_SYSTICK -DDEVICE_SPI=1 -DCMSIS_VECTAB_VIRTUAL_HEADER_FILE="cmsis_nvic.h" -DDEVICE_SPISLAVE=1 -DDEVICE_ANALOGIN=1 -DDEVICE_PWMOUT=1 -DS130 -DTARGET_LIKE_CORTEX_M0 -DTARGET_MCU_NRF51_32K @F:\pi\lumos\angler\nrf51_test\BUILD\tests\NRF51_DK\GCC_ARM\.includes_3f30d65de18a5bb42c23dcf47e9262b6.txt -include F:\pi\lumos\angler\nrf51_test\BUILD\tests\NRF51_DK\GCC_ARM\mbed_config.h -MD -MF BUILD\tests\NRF51_DK\GCC_ARM\mbed-os\drivers\SPISlave.d -o BUILD\tests\NRF51_DK\GCC_ARM\mbed-os\drivers\SPISlave.o F:\pi\lumos\angler\nrf51_test\mbed-os\drivers\SPISlave.cpp
[DEBUG] Return: 0

Go back to 5038135 (or anything newer) and it fails again.

This is all on Windows 10 x64 GCC_ARM.
Tested on versions 7-2017-q4-major and 6-2017-q1-update with no change.

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions