gcc:找不到命令

gcc: command not found

我之前工作的 Docker 构建开始抛出这个错误,使用昨天获得的源的克隆:

make[2]: Entering directory `/opt/nodemcu-firmware/tools/spiffsimg'
gcc -g -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -I. -I../../app/
spiffs -I../../app/include -DNODEMCU_SPIFFS_NO_INCLUDE --include spiffs_typedefs
.h main.c ../../app/spiffs/spiffs_cache.c ../../app/spiffs/spiffs_check.c ../../
app/spiffs/spiffs_gc.c ../../app/spiffs/spiffs_hydrogen.c ../../app/spiffs/spiff
s_nucleus.c  -o spiffsimg
make[2]: gcc: Command not found
make[2]: *** [spiffsimg] Error 127
make[2]: Leaving directory `/opt/nodemcu-firmware/tools/spiffsimg'
make[1]: *** [spiffsimg/spiffsimg] Error 2
make[1]: Leaving directory `/opt/nodemcu-firmware/tools'
make: *** [spiffs-image-remove] Error 2

旧版本的源代码克隆仍然可以正确构建。

它确实使用最新的源构建 0x00000.bin 和 0x10000.bin,但不构建 nodemcu_float_master_########-####.bin 也不nodemcu_integer_master_########-####.bin.

还有其他人 运行 参与其中吗?

您使用的是 Docker 图片的旧版本。 gcc 添加到其中 two months ago。所以,运行

docker pull marcelstoer/nodemcu-build 

从 Docker 集线器中提取最新版本。如果您之前下载过图像,Docker 不会自动确保您拥有最新版本。