micro-ROS / micro-ROS/micro_ros_zephyr_module

Error when trying to build micro-ROS/micro_ros_zephyr_module on top of Zephyr RTOS docker container (clean environment)

オープン
#141 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C
スター
92
フォーク
56
PR マージ指標
30日以内にマージされた PR はありません

説明

Environment:
Steps to reproduce the issue
  • docker run -ti --name zephyr_main -v .:/workdir -p 5900:5900 docker.io/zephyrprojectrtos/zephyr-build:main
    then in the container:
  • west init
  • git clone https://github.com/micro-ROS/micro_ros_zephyr_module
  • pip3 install catkin_pkg lark-parser empy colcon-common-extensions
  • west build -b arduino_due micro_ros_zephyr_module
Expected behavior

module build without errors

Actual behavior

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /workdir/micro_ros_zephyr_module
-- CMake version: 3.22.1
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/user/.cache/zephyr
-- Zephyr version: 3.7.0-rc1 (/workdir/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: arduino_due, qualifiers: sam3x8e
-- Found host-tools: zephyr 0.16.8 (/opt/toolchains/zephyr-sdk-0.16.8)
-- Found toolchain: zephyr 0.16.8 (/opt/toolchains/zephyr-sdk-0.16.8)
-- Found Dtc: /opt/toolchains/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /workdir/zephyr/boards/arduino/due/arduino_due.dts
-- Found devicetree overlay: /workdir/micro_ros_zephyr_module/app.overlay
devicetree error: /workdir/micro_ros_zephyr_module/app.overlay:2 (column 14): parse error: undefined node label 'usbotg_fs'
-- In: /workdir/build/zephyr, command: /usr/bin/python3;/workdir/zephyr/scripts/dts/gen_defines.py;--dts;/workdir/build/zephyr/zephyr.dts.pre;--dtc-flags;'';--bindings-dirs;/workdir/zephyr/dts/bindings;--header-out;/workdir/build/zephyr/include/generated/zephyr/devicetree_generated.h.new;--dts-out;/workdir/build/zephyr/zephyr.dts.new;--edt-pickle-out;/workdir/build/zephyr/edt.pickle;--vendor-prefixes;/workdir/zephyr/dts/bindings/vendor-prefixes.txt
CMake Error at /workdir/zephyr/cmake/modules/dts.cmake:296 (message):
gen_defines.py failed with return code: 1
Call Stack (most recent call first):
/workdir/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
/workdir/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/workdir/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:7 (find_package)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/workdir/build -GNinja -DBOARD=arduino_due -S/workdir/micro_ros_zephyr_module

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、micro_ros_zephyr_module/app.overlay と zephyr/boards/arduino/due/arduino_due.dts にある arduino_due ボード定義を比較し、未定義の usbotg_fs ラベルに注目します。記載されている Docker および west コマンドで失敗を再現し、その後 west build -b arduino_due micro_ros_zephyr_module が devicetree エラーなしで完了することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
c, docker
領域
build-system, embedded-iot
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。