Error when building for esp32c3_devkitm #51026
-
Describe the bug I'm on macOS Monterey 12.5.1 on a Macbook Pro 2017. To Reproduce
Expected behavior Impact Logs and console output ❯ west build -b esp32c3_devkitm samples/hello_world -p
-- west build: making build dir /Users/joaofreire/zephyrtestproject2/zephyr/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/joaofreire/zephyrtestproject2/zephyr/samples/hello_world
-- Found Python3: /usr/local/opt/python@3.9/bin/python3.9 (found suitable exact version "3.9.14") found components: Interpreter
-- Cache files will be written to: /Users/joaofreire/Library/Caches/zephyr
-- Zephyr version: 3.2.99 (/Users/joaofreire/zephyrtestproject2/zephyr)
-- Found west (found suitable version "0.10.1", minimum required is "0.7.1")
-- Board: esp32c3_devkitm
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.15.0 (/Users/joaofreire/zephyr-sdk-0.15.0)
-- Found toolchain: zephyr 0.15.0 (/Users/joaofreire/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/joaofreire/zephyrtestproject2/zephyr/boards/riscv/esp32c3_devkitm/esp32c3_devkitm.dts
-- Generated zephyr.dts: /Users/joaofreire/zephyrtestproject2/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/joaofreire/zephyrtestproject2/zephyr/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/joaofreire/zephyrtestproject2/zephyr/build/zephyr/dts.cmake
Parsing /Users/joaofreire/zephyrtestproject2/zephyr/Kconfig
Loaded configuration '/Users/joaofreire/zephyrtestproject2/zephyr/boards/riscv/esp32c3_devkitm/esp32c3_devkitm_defconfig'
Merged configuration '/Users/joaofreire/zephyrtestproject2/zephyr/samples/hello_world/prj.conf'
Configuration saved to '/Users/joaofreire/zephyrtestproject2/zephyr/build/zephyr/.config'
Kconfig header saved to '/Users/joaofreire/zephyrtestproject2/zephyr/build/zephyr/include/generated/autoconf.h'
CMake Error at /Users/joaofreire/zephyrtestproject2/zephyr/cmake/modules/extensions.cmake:2093 (message):
No such file or directory: LIBGCC_FILE_NAME: 'libgcc.a'
Call Stack (most recent call first):
/Users/joaofreire/zephyrtestproject2/zephyr/cmake/compiler/gcc/target.cmake:121 (assert_exists)
/Users/joaofreire/zephyrtestproject2/zephyr/cmake/modules/FindTargetTools.cmake:102 (include)
/Users/joaofreire/zephyrtestproject2/zephyr/cmake/modules/kernel.cmake:25 (find_package)
/Users/joaofreire/zephyrtestproject2/zephyr/cmake/modules/zephyr_default.cmake:117 (include)
/Users/joaofreire/zephyrtestproject2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/Users/joaofreire/zephyrtestproject2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake -DWEST_PYTHON=/usr/local/opt/python@3.9/bin/python3.9 -B/Users/joaofreire/zephyrtestproject2/zephyr/build -GNinja -DBOARD=esp32c3_devkitm -S/Users/joaofreire/zephyrtestproject2/zephyr/samples/hello_world Environment (please complete the following information):
Additional context Seems like I'm missing some dependency to build for RISCV platforms as trying to build for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It looks like you have a broken toolchain installation. Please make sure that |
Beta Was this translation helpful? Give feedback.
It looks like you have a broken toolchain installation.
Please make sure that
risv64-zephyr-elf
directory exists under/Users/joaofreire/zephyr-sdk-0.15.0
and that it containslibgcc.a