Skip to content

Instantly share code, notes, and snippets.

@RobotGrrl
Created October 10, 2022 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobotGrrl/8441819aa8b581826a128f46773775fc to your computer and use it in GitHub Desktop.
Save RobotGrrl/8441819aa8b581826a128f46773775fc to your computer and use it in GitHub Desktop.
Zephyr west build error
(.venv) Inquisitive-Lexicon-Big-8:zephyr frankenteddy$ west build -p always -b stm32l496g_disco samples/basic/blinky
-- west build: making build dir /Users/frankenteddy/zephyrproject/zephyr/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/frankenteddy/zephyrproject/zephyr/samples/basic/blinky
-- Found Python3: /usr/local/Frameworks/Python.framework/Versions/3.10/bin/python3.10 (found suitable version "3.10.7", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /Users/frankenteddy/Library/Caches/zephyr
-- Zephyr version: 3.2.99 (/Users/frankenteddy/zephyrproject/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: stm32l496g_disco
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.15.0 (/Users/frankenteddy/zephyr-sdk-0.15.0)
-- Found toolchain: zephyr 0.15.0 (/Users/frankenteddy/zephyr-sdk-0.15.0)
-- Found Dtc: /usr/local/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/frankenteddy/zephyrproject/zephyr/boards/arm/stm32l496g_disco/stm32l496g_disco.dts
-- Generated zephyr.dts: /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/dts.cmake
/Users/frankenteddy/zephyrproject/zephyr/build/zephyr/zephyr.dts:69.39-74.5: Warning (interrupt_provider): /soc/interrupt-controller@40010400: Missing #address-cells in interrupt provider
Parsing /Users/frankenteddy/zephyrproject/zephyr/Kconfig
Loaded configuration '/Users/frankenteddy/zephyrproject/zephyr/boards/arm/stm32l496g_disco/stm32l496g_disco_defconfig'
Merged configuration '/Users/frankenteddy/zephyrproject/zephyr/samples/basic/blinky/prj.conf'
Configuration saved to '/Users/frankenteddy/zephyrproject/zephyr/build/zephyr/.config'
Kconfig header saved to '/Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/frankenteddy/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/frankenteddy/zephyrproject/zephyr/build
-- west build: building application
[1/154] Preparing syscall dependency handling
[2/154] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (/Users/frankenteddy/zephyrproject/zephyr), build: zephyr-v3.2.0-124-g578cc100437d
[5/154] Generating include/generated/driver-validation.h
FAILED: zephyr/include/generated/driver-validation.h /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/driver-validation.h
cd /Users/frankenteddy/zephyrproject/zephyr/build/zephyr && /usr/local/Frameworks/Python.framework/Versions/3.10/bin/python3.10 /Users/frankenteddy/zephyrproject/zephyr/scripts/build/gen_kobject_list.py --validation-output /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/driver-validation.h --include /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/misc/generated/struct_tags.json
Traceback (most recent call last):
File "/Users/frankenteddy/zephyrproject/zephyr/scripts/build/gen_kobject_list.py", line 62, in <module>
import elftools
ModuleNotFoundError: No module named 'elftools'
[6/154] Generating include/generated/k...r.h, include/generated/otype-to-size.h
FAILED: zephyr/include/generated/kobj-types-enum.h zephyr/include/generated/otype-to-str.h zephyr/include/generated/otype-to-size.h /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/kobj-types-enum.h /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-str.h /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-size.h
cd /Users/frankenteddy/zephyrproject/zephyr/build/zephyr && /usr/local/Frameworks/Python.framework/Versions/3.10/bin/python3.10 /Users/frankenteddy/zephyrproject/zephyr/scripts/build/gen_kobject_list.py --kobj-types-output /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/kobj-types-enum.h --kobj-otype-output /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-str.h --kobj-size-output /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/include/generated/otype-to-size.h --include /Users/frankenteddy/zephyrproject/zephyr/build/zephyr/misc/generated/struct_tags.json
Traceback (most recent call last):
File "/Users/frankenteddy/zephyrproject/zephyr/scripts/build/gen_kobject_list.py", line 62, in <module>
import elftools
ModuleNotFoundError: No module named 'elftools'
[7/154] Generating include/generated/s...ch.c, include/generated/syscall_list.h
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /Users/frankenteddy/zephyrproject/zephyr/build
(.venv) Inquisitive-Lexicon-Big-8:zephyr frankenteddy$ pip3 install pyelftools
Requirement already satisfied: pyelftools in /Users/frankenteddy/zephyrproject/.venv/lib/python3.7/site-packages (0.29)
You are using pip version 19.0.3, however version 22.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(.venv) Inquisitive-Lexicon-Big-8:zephyr frankenteddy$ pip install pyelftools
Requirement already satisfied: pyelftools in /Users/frankenteddy/zephyrproject/.venv/lib/python3.7/site-packages (0.29)
You are using pip version 19.0.3, however version 22.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Inquisitive-Lexicon-Big-8:~ frankenteddy$ pip install pyelftools
Requirement already satisfied: pyelftools in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (0.29)
WARNING: You are using pip version 20.2.3; however, version 22.2.2 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -m pip install --upgrade pip' command.
Inquisitive-Lexicon-Big-8:~ frankenteddy$ pip3 install pyelftools
Requirement already satisfied: pyelftools in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (0.29)
WARNING: You are using pip version 20.2.3; however, version 22.2.2 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -m pip install --upgrade pip' command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment