Open
Description
I was trying out the module freezing process (shown here: https://github.com/mytechnotalent/MicroPython-micro-bit_How_To_Build_And_Freeze_Modules), but kept having issues with the 'make all' process not working.
I thought it might be the changes I was making, so cloned a fresh version of the bbcmicrobit/micropython repo and tried to build the firmware with no changes - same error. I have tried using Windows command line and the git bash environment - both consistently fail on the same section (I am using a Windows 10 machine).
This is the error message:
[96/325] Building CXX object ym/microbit-dal/source/CMakeF...s/microbit-dal.dir/drivers/MicroBitCompassCalibrator.cpp.o
FAILED: C:\PROGRA~2\GNUTOO~1\50A5A~1.420\bin\AR10B2~1.EXE -DYOTTA_MODULE_NAME=microbit-dal -Igenerated/include -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/ble -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/ble-nrf51822 -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal/inc/core -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal/inc/types -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal/inc/drivers -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal/inc/bluetooth -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal/inc/platform -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/api -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/hal -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/cmsis -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/ble-nrf51822/source/btle -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/ble-nrf51822/source/btle/custom -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/ble-nrf51822/source/common -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_services/ble_dfu -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/common -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager/config -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/peer_manager -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/device -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/ble_flash -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/delay -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/hal -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage/config -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu/hci_transport -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/crc16 -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/hci -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/scheduler -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/timer -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/util -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fds -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fstorage -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/experimental_section_vars -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/common/softdevice_handler -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/s130/headers -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/toolchain -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822 -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110 -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822 -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16 -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0 -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0 -IC:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT -fno-exceptions -fno-unwind-tables -ffunction-sections -fdata-sections -Wall -Wextra -fno-rtti -fno-threadsafe-statics -mcpu=cortex-m0 -mthumb -D__thumb2__ -DMICROBIT_DAL_VERSION=\"2.1.1\" -include "inc/microbit/MicroBitCustomConfig.h" -Os -g -gdwarf-3 -DNDEBUG -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_OPERATORS -DNRF51 -DTARGET_NORDIC -DTARGET_M0 -D__MBED__=1 -DMCU_NORDIC_16K -DTARGET_NRF51_MICROBIT -DTARGET_MCU_NORDIC_16K -DTARGET_MCU_NRF51_16K_S110 -DTARGET_NRF_LFCLK_RC -DTARGET_MCU_NORDIC_16K -D__CORTEX_M0 -DARM_MATH_CM0 -DNO_BLE -include "C:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/build/bbc-microbit-classic-gcc-nosd/yotta_config.h" -MMD -MT ym/microbit-dal/source/CMakeFiles/microbit-dal.dir/drivers/MicroBitCompassCalibrator.cpp.o -MF ym/microbit-dal/source/CMakeFiles/microbit-dal.dir/drivers/MicroBitCompassCalibrator.cpp.o.d -o ym/microbit-dal/source/CMakeFiles/microbit-dal.dir/drivers/MicroBitCompassCalibrator.cpp.o -c C:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal/source/drivers/MicroBitCompassCalibrator.cpp
C:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal/source/drivers/MicroBitCompassCalibrator.cpp: In static member function 'static Sample3D MicroBitCompassCalibrator::approximateCentre(Sample3D*, int)':
C:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal/source/drivers/MicroBitCompassCalibrator.cpp:229:31: error: in C++98 'centre' must be initialized by constructor, not by '{...}'
Sample3D centre = { 0,0,0 };
^
C:/Users/alasdair.trench/github/microbit-micropython-no-mods/micropython/yotta_modules/microbit-dal/source/drivers/MicroBitCompassCalibrator.cpp:230:29: error: in C++98 'best' must be initialized by constructor, not by '{...}'
Sample3D best = { 0,0,0 };
^
[96/325] Building CXX object ym/microbit-dal/source/CMakeFiles/microbit-dal.dir/drivers/MicroBitAccelerometer.cpp.o
ninja: build stopped: subcommand failed.
error: command ['ninja'] failed
make: *** [yotta] Error 1
Is anyone able to shed light on why this fails? Are there extra steps which need to be taken before running the instructions in the README?
@dpgeorge @microbit-carlos
Metadata
Metadata
Assignees
Labels
No labels