Skip to content

Instantly share code, notes, and snippets.

@mbolivar
Created March 4, 2020 19:02
Show Gist options
  • Save mbolivar/837b75088f71620783021ac78b6fa71f to your computer and use it in GitHub Desktop.
Save mbolivar/837b75088f71620783021ac78b6fa71f to your computer and use it in GitHub Desktop.
$ west build -b bbc_microbit -s samples/basic/blinky -p
-- west build: making build dir /home/mbolivar/zp/zephyr/build pristine
-- west build: build configuration:
source directory: /home/mbolivar/zp/zephyr/samples/basic/blinky
build directory: /home/mbolivar/zp/zephyr/build
BOARD: bbc_microbit (origin: command line)
-- west build: generating a build system
loading initial cache file /home/mbolivar/zp/initial-cache.cmake
-- Zephyr version: 2.2.0-rc3
-- Found PythonInterp: /home/mbolivar/.virtualenvs/west-dev/bin/python (found suitable version "3.8.1", minimum required is "3.6")
-- Selected BOARD bbc_microbit
-- Found west: /home/mbolivar/.virtualenvs/west-dev/bin/west (found suitable version "0.7.1", minimum required is "0.6.0")
-- Loading /home/mbolivar/zp/zephyr/boards/arm/bbc_microbit/bbc_microbit.dts as base
Devicetree header saved to '/home/mbolivar/zp/zephyr/build/zephyr/include/generated/devicetree_unfixed.h'
Parsing /home/mbolivar/zp/zephyr/Kconfig
Loaded configuration '/home/mbolivar/zp/zephyr/boards/arm/bbc_microbit/bbc_microbit_defconfig'
Merged configuration '/home/mbolivar/zp/zephyr/samples/basic/blinky/prj.conf'
Configuration saved to '/home/mbolivar/zp/zephyr/build/zephyr/.config'
Kconfig header saved to '/home/mbolivar/zp/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/mbolivar/bin/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Cache files will be written to: /home/mbolivar/.cache/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mbolivar/zp/zephyr/build
-- west build: building application
[1/122] Preparing syscall dependency handling
[25/122] Building C object CMakeFiles/app.dir/src/main.c.obj
FAILED: CMakeFiles/app.dir/src/main.c.obj
ccache /home/mbolivar/bin/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DBUILD_VERSION=v2.2.0-rc3-25-g7b5ef36bce27 -DKERNEL -DNRF51 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/mbolivar/zp/zephyr/include -Izephyr/include/generated -I/home/mbolivar/zp/zephyr/soc/arm/nordic_nrf/nrf51 -I/home/mbolivar/zp/zephyr/ext/hal/cmsis/Core/Include -I/home/mbolivar/zp/modules/hal/nordic/nrfx -I/home/mbolivar/zp/modules/hal/nordic/nrfx/drivers/include -I/home/mbolivar/zp/modules/hal/nordic/nrfx/mdk -I/home/mbolivar/zp/modules/hal/nordic/. -isystem /home/mbolivar/zp/zephyr/lib/libc/minimal/include -isystem /home/mbolivar/bin/zephyr-sdk-0.11.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include -isystem /home/mbolivar/bin/zephyr-sdk-0.11.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/9.2.0/include-fixed -Os -imacros/home/mbolivar/zp/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mthumb -mcpu=cortex-m0 -imacros/home/mbolivar/zp/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-address-of-packed-member -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/mbolivar/zp/zephyr/samples/basic/blinky=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/mbolivar/zp/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/mbolivar/zp=WEST_TOPDIR -ffunction-sections -fdata-sections -mabi=aapcs -march=armv6s-m -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles/app.dir/src/main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c /home/mbolivar/zp/zephyr/samples/basic/blinky/src/main.c
/home/mbolivar/zp/zephyr/samples/basic/blinky/src/main.c:25:2: error: #error "Unsupported board: led0 devicetree alias is not defined"
25 | #error "Unsupported board: led0 devicetree alias is not defined"
| ^~~~~
[34/122] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/nrf_rtc_timer.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/mbolivar/zp/zephyr/build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment