Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building for esp32c3_devkitm #50937

Closed
joaomcfreire opened this issue Oct 4, 2022 · 0 comments
Closed

Error when building for esp32c3_devkitm #50937

joaomcfreire opened this issue Oct 4, 2022 · 0 comments
Assignees
Labels
platform: ESP32 Espressif ESP32

Comments

@joaomcfreire
Copy link

Describe the bug
Building the hello world sample for ESP32C3 gives an error. See logs below.

I'm on macOS Monterey 12.5.1 on a Macbook Pro 2017.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the steps for macOS in Getting Started and Supported Boards - ESP32C3
  2. Activate Virtual Env.
  3. Go to ~/<zephyr_repository
  4. Run west build -b esp32c3_devkitm samples/hello_world -p
  5. See the error in the logs output of this report.

Expected behavior
I would expect it to build like it does when I build for esp32, qemu_x86 or qemu_xtensa.

Impact
Blocking learnings about Zephyr OS

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):

  • OS: macOS Monterey (Intel)
  • Toolchain: Zephyr SDK 0.15.0
  • Commit SHA or Version used: 0ec243b

Additional context

Seems like I'm missing some dependency to build for RISCV platforms as trying to build for qemu_riscv32 also gives the same error.

@joaomcfreire joaomcfreire added the bug The issue is a bug, or the PR is fixing a bug label Oct 4, 2022
@henrikbrixandersen henrikbrixandersen added the platform: ESP32 Espressif ESP32 label Oct 4, 2022
@laurenmurphyx64 laurenmurphyx64 added the priority: low Low impact/importance bug label Oct 4, 2022
@stephanosio stephanosio removed bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug labels Oct 6, 2022
@zephyrproject-rtos zephyrproject-rtos locked and limited conversation to collaborators Oct 6, 2022
@stephanosio stephanosio converted this issue into discussion #51026 Oct 6, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
platform: ESP32 Espressif ESP32
Projects
None yet
Development

No branches or pull requests

4 participants