Re: Can't perform "cmake -GNinja -DBOARD=bbc_microbit .."


Sebastian Boe
 

I suspect a mismatch between the env vars and the zephyr version.

The build system is failing to find

zephyr/cmake/toolchain.cmake

which is a fairly new file

sebo@mach:~/zephyr$ git log cmake/toolchain/gnuarmemb.cmake | head
git log cmake/toolchain/gnuarmemb.cmake | head
commit 957262e37d716985912cc9deb929293badd6d845
Author: Carles Cufi <carles.cufi@nordicsemi.no>
Date: Fri Aug 3 17:11:23 2018 +0200

build: Replace GCC ARM Embedded with GNU Arm Embedded

The old GCC ARM Embedded website on launchpad
(https://launchpad.net/gcc-arm-embedded) has been superseeded by the new
GNU Arm Embedded one
(https://developer.arm.com/open-source/gnu-toolchain/gnu-rm).


so perhaps your env vars have been updated, but the git revision is old. Meaning
that the env vars are pointing to a feature that doesn't exist on that git revision.

Either update zephyr to at least 957262e37d716985912cc9deb929293badd6d845
or downgrade the env vars by setting ZEPHYR_TOOLCHAIN_VARIANT=gccarmemb
________________________________________
From: devel@lists.zephyrproject.org <devel@lists.zephyrproject.org> on behalf of Kai Ren <kren@bluetooth.com>
Sent: Wednesday, 15 August 2018 10:40:23 AM
To: zephyr-devel@lists.zephyrproject.org
Subject: [Zephyr-devel] Can't perform "cmake -GNinja -DBOARD=bbc_microbit .."

Hello,
I had set the dev environment up on my Windows computer by “Option 1: Windows Command Prompt”, but suddenly, it can NOT work, below is the error log, when I type cmake -GNinja -DBOARD=bbc_microbit .. , there are some errors, how can I solve this problem?


C:\Users\xxxxxx\zephyr\samples\microbit\generic_onoff_svr\build>cmake -GNinja -DBOARD=bbc_microbit ..
CMake Deprecation Warning at C:/Users/xxxxxx/zephyr/cmake/app/boilerplate.cmake:38 (cmake_policy):
The OLD behavior for policy CMP0000 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:3 (include)


-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7", minimum required is "3.4")
-- Selected BOARD bbc_microbit
Zephyr version: 1.12.0
C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:33: warning: BT (defined at subsys/bluetooth/Kconfig:10) set more than once. Old value: "y", new value: "y".
C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:46: warning: BT_CTLR_LE_PING (defined at subsys/bluetooth/controller/Kconfig:150) set more than once. Old value: "n", new value: "n".
C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:47: warning: BT_CTLR_DATA_LENGTH (defined at subsys/bluetooth/controller/Kconfig:182) set more than once. Old value: "n", new value: "n".
C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:48: warning: BT_CTLR_PHY (defined at subsys/bluetooth/controller/Kconfig:199) set more than once. Old value: "n", new value: "n".
C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:49: warning: BT_CTLR_CHAN_SEL_2 (defined at subsys/bluetooth/controller/Kconfig:208) set more than once. Old value: "n"Parsing Kconfig tree in C:/Users/xxxxxx/zephyr//Kconfig
Using C:/Users/xxxxxx/zephyr/boards/arm/bbc_microbit/bbc_microbit_defconfig as base
Merging C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf
, new value: "n".
C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:50: warning: BT_CTLR_MIN_USED_CHAN (defined at subsys/bluetooth/controller/Kconfig:215) set more than once. Old value: "n", new value: "n".
C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:51: warning: BT_CTLR_ADV_EXT (defined at subsys/bluetooth/controller/Kconfig:222) set more than once. Old value: "n", new value: "n".
C:/Users/xxxxxx/zephyr/samples/microbit/generic_onoff_svr/prj_bbc_microbit.conf:52: warning: BT_CTLR_PRIVACY (defined at subsys/bluetooth/controller/Kconfig:156) set more than once. Old value: "n", new value: "n".
warning: MICROBIT_DISPLAY (defined at drivers/display/Kconfig.microbit:9) was assigned the value "y" but got the value "n" -- check dependencies
warning: BT_L2CAP_RX_MTU (defined at subsys/bluetooth/host/Kconfig:163) was assigned the value "69" but got the value "" -- check dependencies
warning: BT_CTLR_LE_ENC (defined at subsys/bluetooth/controller/Kconfig:136) was assigned the value "n" but got the value "y" -- check dependencies
warning: BT_CTLR_DATA_LENGTH_MAX (defined at subsys/bluetooth/controller/Kconfig:189) was assigned the value "27" but got the value "" -- check dependencies
CMake Error at C:/Users/xxxxxx/zephyr/cmake/toolchain.cmake:35 (include):
include could not find load file:

C:/Users/xxxxxx/zephyr//cmake/toolchain/gnuarmemb.cmake
Call Stack (most recent call first):
C:/Users/xxxxxx/zephyr/cmake/app/boilerplate.cmake:242 (include)
CMakeLists.txt:3 (include)


CMake Error at C:/Users/xxxxxx/zephyr/cmake/toolchain.cmake:53 (file):
file MD5 requires a file name and output variable
Call Stack (most recent call first):
C:/Users/xxxxxx/zephyr/cmake/app/boilerplate.cmake:242 (include)
CMakeLists.txt:3 (include)


fatal: No names found, cannot describe anything.
-- Generating zephyr/include/generated/generated_dts_board.h
CMake Error at C:/Users/xxxxxx/zephyr/cmake/dts.cmake:69 (message):
command failed with return code: The system cannot find the file specified
Call Stack (most recent call first):
C:/Users/xxxxxx/zephyr/cmake/app/boilerplate.cmake:268 (include)
CMakeLists.txt:3 (include)


-- Configuring incomplete, errors occurred!


Regards,
Kai

Join devel@lists.zephyrproject.org to automatically receive all group messages.