[Microbit-Python] Build micropython problem

Tom madtom1999 at googlemail.com
Mon Aug 8 11:11:28 EDT 2016


There is no "make clean" alas!
Tom
On 08/08/16 15:52, Joe Glancy wrote:
>
> Always try rebuilding from scratch. I've had two makefiles (for 
> completely different things) recently which resulted in an error, but 
> where a `make clean` and `make` seemed to fix the issue. At any rate, 
> strange it should be an issue with Nordic's BLE driver.
>
>
> On Mon, 8 Aug 2016, 14:09 Damien George, <damien.p.george at gmail.com 
> <mailto:damien.p.george at gmail.com>> wrote:
>
>     I don't know what is wrong here.  I tried checking out a clean copy of
>     the project and building from scratch, and it went fine (on Arch Linux
>     with arm-none-eabi-gcc v 6.1.1).
>
>
>     On 8 August 2016 at 19:02, Tom via Microbit <microbit at python.org
>     <mailto:microbit at python.org>> wrote:
>     > I'm on Xubuntu 16.04 and have followed the README.md in the
>     micropython git
>     > latest and on "yt build" I get the following
>     > ------------------------------------
>     > info: generate for target: bbc-microbit-classic-gcc-nosd 0.2.3 at
>     >
>     /home/tom/Programming/microbit/micropython/yotta_targets/bbc-microbit-classic-gcc-nosd
>     > GCC version is: 4.9.3
>     > suppressing warnings from ble-nrf51822
>     > suppressing warnings from nrf51-sdk
>     > suppressing ALL warnings from mbed-classic, ble, ble-nrf51822 &
>     nrf51-sdk
>     > -- Configuring done
>     > -- Generating done
>     > -- Build files have been written to:
>     >
>     /home/tom/Programming/microbit/micropython/build/bbc-microbit-classic-gcc-nosd
>     > [101/291] Building CXX object
>     > ym/ble-n...les/ble-nrf51822/source/nRF5xGap.cpp.o
>     > FAILED: /usr/bin/arm-none-eabi-g++ -DYOTTA_MODULE_NAME=ble-nrf51822
>     > -Igenerated/include -I/home/tom/Programming/microbit/micropython
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/microbit-dal
>     > -I/home/tom/Programming/microbit/micropython/yotta_modules/ble
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822
>     > -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/btle
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/btle/custom
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/common
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_services/ble_dfu
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/common
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager/config
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/peer_manager
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/device
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/ble_flash
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/delay
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/hal
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage/config
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu/hci_transport
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/crc16
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/hci
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/scheduler
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/timer
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/util
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fds
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fstorage
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/experimental_section_vars
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/common/softdevice_handler
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/s130/headers
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/nrf51-sdk/source/nordic_sdk/components/toolchain
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/api
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/hal
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/cmsis
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0
>     >
>     -I/home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source
>     > -fno-exceptions -fno-unwind-tables -ffunction-sections
>     -fdata-sections -Wall
>     > -Wextra -fno-rtti -fno-threadsafe-statics -mcpu=cortex-m0 -mthumb
>     > -D__thumb2__ -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
>     >
>     "/home/tom/Programming/microbit/micropython/build/bbc-microbit-classic-gcc-nosd/yotta_config.h"
>     > -Wno-sign-compare -Wno-unused-variable -Wno-unused-parameter
>     > -Wno-unused-function -Wno-missing-field-initializers -w -MMD -MT
>     >
>     ym/ble-nrf51822/source/CMakeFiles/ble-nrf51822.dir/home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp.o
>     > -MF
>     >
>     ym/ble-nrf51822/source/CMakeFiles/ble-nrf51822.dir/home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp.o.d
>     > -o
>     >
>     ym/ble-nrf51822/source/CMakeFiles/ble-nrf51822.dir/home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp.o
>     > -c
>     >
>     /home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp
>     >
>     /home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp:
>     > In member function 'virtual ble_error_t nRF5xGap::setWhitelist(const
>     > Gap::Whitelist_t&)':
>     >
>     /home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp:689:59:
>     > error: 'BLEProtocol::AddressType_t' is not a class or namespace
>     >          if (whitelistIn.addresses[i].type ==
>     > BLEProtocol::AddressType_t::RANDOM_PRIVATE_NON_RESOLVABLE) {
>     >   ^
>     >
>     /home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp:
>     > In member function 'ble_error_t
>     > nRF5xGap::generateStackWhitelist(ble_gap_whitelist_t&)':
>     >
>     /home/tom/Programming/microbit/micropython/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp:906:61:
>     > error: 'BLEProtocol::AddressType_t' is not a class or namespace
>     >          if (whitelistAddresses[i].addr_type ==
>     > BLEProtocol::AddressType_t::RANDOM_PRIVATE_RESOLVABLE) {
>     >     ^
>     > [101/291] Building CXX object
>     > ym/ble-n...dules/ble-nrf51822/source/nRF5xn.cpp.o
>     > ninja: build stopped: subcommand failed.
>     > error: command ['ninja'] failed
>     > -----------------------------------------------------------
>     > Where have I gone wrong?
>     > Tom
>     >
>     > _______________________________________________
>     > Microbit mailing list
>     > Microbit at python.org <mailto:Microbit at python.org>
>     > https://mail.python.org/mailman/listinfo/microbit
>     _______________________________________________
>     Microbit mailing list
>     Microbit at python.org <mailto:Microbit at python.org>
>     https://mail.python.org/mailman/listinfo/microbit
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20160808/33d671b0/attachment-0001.html>


More information about the Microbit mailing list