Open2

arm-none-eabi-gcc で "inttypes.h: No such file or directory"

codehexcodehex

qmk を macOS でコンパイルするとこんな感じのエラーが出た。この時使っていたコンパイラは arm-none-eabi-gcc で、これは brew install arm-none-eabi-gcc でインストールしたものでした。

latforms/wait.h:18:10: fatal error: inttypes.h: No such file or directory
   18 | #include <inttypes.h>
      |          ^~~~~~~~~~~~
compilation terminated.

検索してみると Stackoverflow で同じような症状の投稿を見つけました。

https://stackoverflow.com/a/77252039

ベストアンサーには brew install arm-none-eabi-xxx ではなく brew install --cask gcc-arm-embedded を使うように記載されていました。

Yudai NakataYudai Nakata

同じくQMKをArm向けにビルドしようとして似たエラーに遭遇したのが解決しました!ありがとうございます🙏