Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

'yotta build' fails with "error: command ['ninja'] failed" #834

Open
Lithimlin opened this issue Mar 28, 2018 · 2 comments
Open

'yotta build' fails with "error: command ['ninja'] failed" #834

Lithimlin opened this issue Mar 28, 2018 · 2 comments

Comments

@Lithimlin
Copy link

Lithimlin commented Mar 28, 2018

I'm using Ubuntu 16.04 and want to use bbc-microbit-classic-gcc as my target for this. I have the correct gcc-arm-embedded compiler installed. I have also followed the installation guide to yotta on yottabuild.org.
When trying to use 'yt build' however, I get the following error:

info: generate for target: bbc-microbit-classic-gcc 0.2.3 at /home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_targets/bbc-microbit-classic-gcc
warning: subdirectory "test" of first-steps 0.0.0 at /home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps was ignored because it doesn't appear to contain any source files
GCC version is: 7.2.1
suppressing warnings from ble-nrf51822
suppressing warnings from nrf51-sdk
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
suppressing ALL warnings from mbed-classic, ble, ble-nrf51822 & nrf51-sdk
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/build/bbc-microbit-classic-gcc
[1/4] Building CXX object ym/microbit/...modules/microbit/source/MicroBit.cpp.o
FAILED: /usr/bin/arm-none-eabi-g++  -DYOTTA_MODULE_NAME=microbit -Igenerated/include -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit-dal" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/ble" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/ble-nrf51822" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit/inc" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit-dal/inc/core" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit-dal/inc/types" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit-dal/inc/drivers" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit-dal/inc/bluetooth" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit-dal/inc/platform" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/api" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/hal" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/cmsis" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/ble-nrf51822/source/btle" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/ble-nrf51822/source/btle/custom" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/ble-nrf51822/source/common" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_services/ble_dfu" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/common" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager/config" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/peer_manager" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/device" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/ble_flash" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/delay" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/hal" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage/config" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu/hci_transport" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/crc16" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/hci" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/scheduler" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/timer" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/util" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fds" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fstorage" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/experimental_section_vars" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/common/softdevice_handler" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/s130/headers" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/nrf51-sdk/source/nordic_sdk/components/toolchain" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110" -I"/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit/source" -fno-exceptions -fno-unwind-tables -ffunction-sections -fdata-sections -Wall -Wextra -fno-rtti -fno-threadsafe-statics -mcpu=cortex-m0 -mthumb -D__thumb2__ -std=c++11 -fwrapv -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 -include "/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/build/bbc-microbit-classic-gcc/yotta_config.h" -MMD -MT ym/microbit/source/CMakeFiles/microbit.dir/home/lithtop/github/VLC_Workshop_2018/Calliope_Tests/First_Steps/yotta_modules/microbit/source/MicroBit.cpp.o -MF ym/microbit/source/CMakeFiles/microbit.dir/home/lithtop/github/VLC_Workshop_2018/Calliope_Tests/First_Steps/yotta_modules/microbit/source/MicroBit.cpp.o.d -o ym/microbit/source/CMakeFiles/microbit.dir/home/lithtop/github/VLC_Workshop_2018/Calliope_Tests/First_Steps/yotta_modules/microbit/source/MicroBit.cpp.o -c '/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit/source/MicroBit.cpp'
In file included from /home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit-dal/inc/core/MicroBitConfig.h:441:0,
                 from /home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit/source/MicroBit.cpp:32:
/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit-dal/inc/core/MicroBitHeapAllocator.h:139:40: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 inline void* operator new(size_t size) throw(std::bad_alloc)
                                        ^~~~~
/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit-dal/inc/core/MicroBitHeapAllocator.h:147:42: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 inline void* operator new[](size_t size) throw(std::bad_alloc)
                                          ^~~~~
In file included from /home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit/source/MicroBit.cpp:45:0:
/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit/inc/MicroBit.h:138:2: error: 'CalliopeSoundMotor' does not name a type
  CalliopeSoundMotor    soundmotor;
  ^~~~~~~~~~~~~~~~~~
/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit/source/MicroBit.cpp: In constructor 'MicroBit::MicroBit()':
/home/lithtop/github/VLC Workshop 2018/Calliope Tests/First Steps/yotta_modules/microbit/source/MicroBit.cpp:97:5: error: class 'MicroBit' does not have any field named 'soundmotor'
     soundmotor()
     ^~~~~~~~~~
ninja: build stopped: subcommand failed.
error: command ['ninja'] failed

I previously installed the modules needed via 'yotta install calliope-mini/microbit since I'm trying to program a calliope mini. I suspect the error lies somehwere there inside one of their modules but I wanted to make sure first.

@ccrov
Copy link

ccrov commented Jul 18, 2018

does it work? i met the erro too.

@ccrov
Copy link

ccrov commented Jul 19, 2018

you need scecord

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants