Hello everyone,
I getting stocked now for 1,5 days to get the nRF-Connected SDK running
I am using macOSCatalina 10.15.7
segger 5.20
Nordic SDK Tag v1.4.0
using python 3.9.0 via pyenv (before tried it without pyenv, also doesn't working)
I was going through the getting Started Assistent several times, I also deinstalled all things mentioned in the 1. install the toolchain / 2. clone the nrf Connected SDK and installed them again, cause first i thougth there are some python Issues. I also tried to get run with the toolchain manager, but this also wasn't working. I wasn't able to open a nrf Connected SDK Project in Segger at anytime. At the moment the Error which occur when I try to do this is (only Toolchain via Getting Started Assistent is installed (/opt/gnuarmemb), I have uninstalled the toolchain from toolchain manager, cause of the experimental notice, and I was only triyng it, after the getting Started Assistent Worklflow fails):
Creating solution asset_tracker.emProject
/usr/local/Cellar/cmake/3.19.1/bin/cmake -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160 -B/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns -S/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -DPYTHON_EXECUTABLE=/Users/RudolphAschmoneit/.pyenv/shims/python -DCMAKE_MAKE_PROGRAM=/usr/local/Cellar/ninja/1.10.1_3/bin/ninja -DDTC=/usr/local/Cellar/dtc/1.6.0/bin/dtc -D WEST=/Users/RudolphAschmoneit/.pyenv/shims/west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/Applications/arm_segger_embedded_studio_v520b_macos_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Application: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker
-- Zephyr version: 2.4.0 (/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr)
-- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160ns
-- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
-- Found dtc: /usr/local/Cellar/dtc/1.6.0/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/gnuarmemb)
-- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
-- Generated zephyr.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
Parsing /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/Kconfig
Loaded configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig'
Merged configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/prj.conf'
Configuration saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/.config'
Kconfig header saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
-- Configuring incomplete, errors occurred!
See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeOutput.log".
See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeError.log".
Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/app/boilerplate.cmake
nrf9160dk_nrf9160ns.dts.pre.tmp:357.32-361.5: Warning (simple_bus_reg): /soc/cryptocell-sw: missing or empty reg/ranges property
nrf9160dk_nrf9160ns.dts.pre.tmp:56.42-68.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000)
nrf9160dk_nrf9160ns.dts.pre.tmp:305.19-311.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000)
CMake Error at /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/extensions.cmake:1557 (message):
Assertion failed: The toolchain is unable to build a dummy C file. See
CMakeError.log.
Call Stack (most recent call first):
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/CMakeLists.txt:42 (assert)
error: cmake failed
create_nordic_project.py failed (1)
See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeError.log".
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
Build flags:
Id flags:
The output was:
1
/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2: error: ld returned 1 exit status
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-g++
Build flags:
Id flags:
The output was:
1
/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2: error: ld returned 1 exit status
See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeOutput.log".:
The target system is: Generic - 2.4.0 - arm
The host system is: Darwin - 19.6.0 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
Build flags:
Id flags: -c
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"
The C compiler identification is GNU, found in "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/3.19.1/CompilerIdC/CMakeCCompilerId.o"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-g++
Build flags:
Id flags: -c
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"
The CXX compiler identification is GNU, found in "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/3.19.1/CompilerIdCXX/CMakeCXXCompilerId.o"
Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)":
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 8.3.1 20190703 (release) [gcc-8-branch revision 273027]
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I also tried to build via command line using
source <NCS root folder>/zephyr/zephyr-env.sh
cd <NCS root folder>/nrf/applications/asset tracker
west build -b nrf9160dk_nrf9160ns -d build
then the output is:
Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker
-- Zephyr version: 2.4.0 (/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr)
-- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160ns
-- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
CMake Error at /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/generic_toolchain.cmake:65 (include):
include could not find load file:
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/toolchain//generic.cmake
Call Stack (most recent call first):
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/app/boilerplate.cmake:589 (include)
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:20 (find_package)
-- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
CMake Error at /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/dts.cmake:164 (message):
command failed with return code: No such file or directory
Call Stack (most recent call first):
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/app/boilerplate.cmake:590 (include)
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:20 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake -DWEST_PYTHON=/Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 -B/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build -S/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker -GNinja -DBOARD=nrf9160dk_nrf9160ns
Having a closer look to
CMake Error at /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/generic_toolchain.cmake:65 (include):
include could not find load file:
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/toolchain//generic.cmake it seem like ZEPHYR_TOOLCHAIN_VARIANT is set to an empty string. Also I am a bit familiar with cmake, I never used Zephyr and west before, I am not sure if it is a good and not to time consuming idea to try to manually debug/fix the cmake, cause it looks like an internal dependencies error.
But maybe this errorlogs help you to help me?
Or would you recommend to clean everything up and reinstall it in an clean python enverionment using pipx or pipenv or both? (I am not very familliar with this, but it seems like a good concept for me), but i am also wondering, cause installing ninja via homebrew always installs python 3.9 via homebrew, and i would prefer to only use pyenv managed versions.
So when I do the reinstall any suggestions on how to clean up best before?
I am thankful for any help, cause at the moment I am a little bit frustrated.
so Thank you in Advance!
Greetings Rudolph