openthread / ot-esp32

BSD 3-Clause "New" or "Revised" License
56 stars 10 forks source link

Bootstrap script fails, 'bc' and 'clang-format-6.0' not found #22

Closed ianmtaylor1 closed 3 months ago

ianmtaylor1 commented 3 months ago

I'm following the instructions found on the Build OpenThread Guide using the openthread/environment docker container, and I ran into the following two errors. When running ./script/bootstrap, I get:

third_party/openthread/script/bootstrap: 48: bc: not found
third_party/openthread/script/bootstrap: 48: [: Illegal number:

and

E: Unable to locate package clang-format-6.0
E: Couldn't find any package by glob 'clang-format-6.0'
E: Couldn't find any package by regex 'clang-format-6.0'

The first error is resolved by running sudo apt install bc beforehand, so this should either be done in the script or bc should be included in the openthread/environment docker container.

The second error is less straightforward. It appears to be generated from line 60, sudo apt-get --no-install-recommends install -y clang-format-6.0. clang-format-14 is installed already in the docker container. Will this version be sufficient? If so, perhaps this installation could be removed from the script.

jwhui commented 3 months ago

@ianmtaylor1 , thanks for raising this issue.

This repo hasn't been maintained since 2021. I suggest taking a look at this codelab for the latest regarding OpenThread on ESP32: https://openthread.io/codelabs/esp-openthread-hardware

/cc/ @chshu

ianmtaylor1 commented 3 months ago

Thanks! I will look there. I think this issue can also be closed, then.