Local builds fail on Windows 10

#1
  1. My goal is: To build locally firmware for an ESP32 device

  2. My actions are:
    mos build --local --clean

  3. The result I see is:
    Docker arguments: run --name mos_build_2019-08-15T22-24-06-00_1068144096 --rm -i -v C:\Users\harde\projects\my-project\deps\shadow\src:/c/Users/harde/projects/my-project/deps/shadow/src -v C:\Users\harde\projects\my-project\deps\wifi\src\esp32:/c/Users/harde/projects/my-project/deps/wifi/src/esp32 -v C:\Users\harde\projects\my-project\deps\pwm\include:/c/Users/harde/projects/my-project/deps/pwm/include -v C:\Users\harde\projects\my-project\deps\atca\cryptoauthlib\lib\crypto:/c/Users/harde/projects/my-project/deps/atca/cryptoauthlib/lib/crypto -v C:\Users\harde\projects\my-project\deps\sntp\src:/c/Users/harde/projects/my-project/deps/sntp/src -v C:\Users\harde\projects\my-project\deps\wifi\src:/c/Users/harde/projects/my-project/deps/wifi/src -v C:\Users\harde\projects\my-project\deps\provision\include:/c/Users/harde/projects/my-project/deps/provision/include -v C:\Users\harde\projects\my-project\deps\rpc-mqtt\include:/c/Users/harde/projects/my-project/deps/rpc-mqtt/include -v C:\Users\harde\projects\my-project\deps\vfs-fs-lfs\littlefs:/c/Users/harde/projects/my-project/deps/vfs-fs-lfs/littlefs -v C:\Users\harde\projects\my-project\deps\core\include:/c/Users/harde/projects/my-project/deps/core/include -v C:\Users\harde\projects\my-project\deps\rpc-uart\include:/c/Users/harde/projects/my-project/deps/rpc-uart/include -v C:\Users\harde\projects\my-project\deps\spi\include:/c/Users/harde/projects/my-project/deps/spi/include -v C:\Users\harde\projects\my-project\deps\atca\cryptoauthlib\lib\hal:/c/Users/harde/projects/my-project/deps/atca/cryptoauthlib/lib/hal -v C:\Users\harde\projects\my-project\deps\atca\cryptoauthlib\lib\host:/c/Users/harde/projects/my-project/deps/atca/cryptoauthlib/lib/host -v C:\Users\harde\projects\my-project\deps\vfs-common\src\esp32:/c/Users/harde/projects/my-project/deps/vfs-common/src/esp32 -v C:\Users\harde\projects\my-project\deps\core\src:/c/Users/harde/projects/my-project/deps/core/src -v C:\Users\harde\projects\my-project\deps\gcp\src:/c/Users/harde/projects/my-project/deps/gcp/src -v C:\Users\harde\projects\my-project\deps\rpc-service-ota\include:/c/Users/harde/projects/my-project/deps/rpc-service-ota/include -v C:\Users\harde\projects\my-project\deps\jstore\src:/c/Users/harde/projects/my-project/deps/jstore/src -v C:\Users\harde\projects\my-project\deps\pwm\src:/c/Users/harde/projects/my-project/deps/pwm/src -v C:\Users\harde\projects\my-project\deps\rpc-service-wifi\src:/c/Users/harde/projects/my-project/deps/rpc-service-wifi/src -v C:\Users\harde\projects\my-project\deps\vfs-fs-lfs\include:/c/Users/harde/projects/my-project/deps/vfs-fs-lfs/include -v C:\Users\harde\projects\my-project\deps\jstore\include:/c/Users/harde/projects/my-project/deps/jstore/include -v C:\Users\harde\projects\my-project\deps\atca\cryptoauthlib\lib:/c/Users/harde/projects/my-project/deps/atca/cryptoauthlib/lib -v C:\Users\harde\projects\my-project\deps\dns-sd\src:/c/Users/harde/projects/my-project/deps/dns-sd/src -v C:\Users\harde\projects\my-project\deps\i2c\include:/c/Users/harde/projects/my-project/deps/i2c/include -v C:\Users\harde\projects\my-project\deps\atca\include:/c/Users/harde/projects/my-project/deps/atca/include -v C:\Users\harde\projects\my-project\deps\vfs-fs-spiffs\include\spiffs:/c/Users/harde/projects/my-project/deps/vfs-fs-spiffs/include/spiffs -v C:\Users\harde\projects\my-project\deps\dash\include:/c/Users/harde/projects/my-project/deps/dash/include -v C:\Users\harde\projects\my-project\deps\i2c\src:/c/Users/harde/projects/my-project/deps/i2c/src -v C:\Users\harde\projects\my-project\deps\i2c\src\esp32:/c/Users/harde/projects/my-project/deps/i2c/src/esp32 -v C:\Users\harde\projects\my-project\deps\rpc-mqtt\src:/c/Users/harde/projects/my-project/deps/rpc-mqtt/src -v C:\Users\harde\projects\my-project\deps\rpc-uart\src:/c/Users/harde/projects/my-project/deps/rpc-uart/src -v C:\Users\harde\projects\my-project\deps\vfs-fs-spiffs\include\esp32:/c/Users/harde/projects/my-project/deps/vfs-fs-spiffs/include/esp32 -v C:\Users\harde\projects\my-project\deps\http-server\include:/c/Users/harde/projects/my-project/deps/http-server/include -v C:\Users\harde\projects\my-project\src:/c/Users/harde/projects/my-project/src -v C:\Users\harde\projects\my-project\deps\atca\src:/c/Users/harde/projects/my-project/deps/atca/src -v C:\Users\harde\projects\my-project\deps\rpc-common\src:/c/Users/harde/projects/my-project/deps/rpc-common/src -v C:\Users\harde\projects\my-project\deps\rpc-ws\include:/c/Users/harde/projects/my-project/deps/rpc-ws/include -v C:\Users\harde\projects\my-project\deps\wifi\include\esp32:/c/Users/harde/projects/my-project/deps/wifi/include/esp32 -v C:\Users\harde\projects\my-project\deps\ca-bundle\fs:/c/Users/harde/projects/my-project/deps/ca-bundle/fs -v C:\Users\harde\projects\my-project\build:/c/Users/harde/projects/my-project/build -v C:\Users\harde\projects\my-project\deps\mbedtls\mbedtls\include:/c/Users/harde/projects/my-project/deps/mbedtls/mbedtls/include -v C:\Users\harde\projects\my-project\deps\vfs-common\include\esp32:/c/Users/harde/projects/my-project/deps/vfs-common/include/esp32 -v C:\Users\harde\projects\my-project\deps\ota-http-client\include:/c/Users/harde/projects/my-project/deps/ota-http-client/include -v C:\Users\harde\projects\my-project\deps\rpc-common\include:/c/Users/harde/projects/my-project/deps/rpc-common/include -v C:\Users\harde\projects\my-project\deps\rpc-service-config\include:/c/Users/harde/projects/my-project/deps/rpc-service-config/include -v C:\Users\harde\projects\my-project\deps\vfs-fs-spiffs\include:/c/Users/harde/projects/my-project/deps/vfs-fs-spiffs/include -v C:\Users\harde\projects\my-project\deps\wifi\include:/c/Users/harde/projects/my-project/deps/wifi/include -v C:\Users\harde\projects\my-project\deps\modules\mongoose-os:/c/Users/harde/projects/my-project/deps/modules/mongoose-os -v C:\Users\harde\projects\my-project\src\Adafruit_GFX_AS:/c/Users/harde/projects/my-project/src/Adafruit_GFX_AS -v C:\Users\harde\projects\my-project\build\gen:/c/Users/harde/projects/my-project/build/gen -v C:\Users\harde\projects\my-project\deps\vfs-common\src:/c/Users/harde/projects/my-project/deps/vfs-common/src -v C:\Users\harde\projects\my-project\deps\vfs-fs-lfs\src:/c/Users/harde/projects/my-project/deps/vfs-fs-lfs/src -v C:\Users\harde\projects\my-project\deps\spi\src\esp32:/c/Users/harde/projects/my-project/deps/spi/src/esp32 -v C:\Users\harde\projects\my-project\deps\vfs-fs-spiffs\src:/c/Users/harde/projects/my-project/deps/vfs-fs-spiffs/src -v C:\Users\harde\projects\my-project\deps\mqtt\src:/c/Users/harde/projects/my-project/deps/mqtt/src -v C:\Users\harde\projects\my-project\deps\provision\src:/c/Users/harde/projects/my-project/deps/provision/src -v C:\Users\harde\projects\my-project\deps\rpc-service-config\src:/c/Users/harde/projects/my-project/deps/rpc-service-config/src -v C:\Users\harde\projects\my-project\deps\freertos\include:/c/Users/harde/projects/my-project/deps/freertos/include -v C:\Users\harde\projects\my-project\deps\gcp\include:/c/Users/harde/projects/my-project/deps/gcp/include -v C:\Users\harde\projects\my-project\deps\arduino-compat\src:/c/Users/harde/projects/my-project/deps/arduino-compat/src -v C:\Users\harde\projects\my-project\deps\rpc-ws\src:/c/Users/harde/projects/my-project/deps/rpc-ws/src -v C:\Users\harde\projects\my-project\deps\rpc-service-fs\src:/c/Users/harde/projects/my-project/deps/rpc-service-fs/src -v C:\Users\harde\projects\my-project\deps\mongoose\include:/c/Users/harde/projects/my-project/deps/mongoose/include -v C:\Users\harde\projects\my-project\deps\dns-sd\include:/c/Users/harde/projects/my-project/deps/dns-sd/include -v C:\Users\harde\projects\my-project\deps\vfs-common\include:/c/Users/harde/projects/my-project/deps/vfs-common/include -v C:\Users\harde\projects\my-project\deps\ota-common\include:/c/Users/harde/projects/my-project/deps/ota-common/include -v C:/Users/harde/projects/my-project:/app -v C:\Users\harde\projects\my-project\deps\freertos\src:/c/Users/harde/projects/my-project/deps/freertos/src -v C:\Users\harde\projects\my-project\deps\atca\cryptoauthlib\lib\basic:/c/Users/harde/projects/my-project/deps/atca/cryptoauthlib/lib/basic -v C:\Users\harde\projects\my-project\deps\dns-sd\src\lwip:/c/Users/harde/projects/my-project/deps/dns-sd/src/lwip -v C:\Users\harde\projects\my-project\libs\pppos\src:/c/Users/harde/projects/my-project/libs/pppos/src -v C:\Users\harde\projects\my-project\deps\mbedtls\include:/c/Users/harde/projects/my-project/deps/mbedtls/include -v C:\Users\harde\projects\my-project\libs\pppos\include:/c/Users/harde/projects/my-project/libs/pppos/include -v C:\Users\harde\projects\my-project\fs:/c/Users/harde/projects/my-project/fs -v C:\Users\harde\projects\my-project\deps\modules\mongoose-os:/mongoose-os -v C:\Users\harde\projects\my-project\deps\vfs-fs-lfs\littlefs1:/c/Users/harde/projects/my-project/deps/vfs-fs-lfs/littlefs1 -v C:\Users\harde\projects\my-project\deps\http-server\src:/c/Users/harde/projects/my-project/deps/http-server/src -v C:\Users\harde\projects\my-project\deps\mbedtls\include\esp32:/c/Users/harde/projects/my-project/deps/mbedtls/include/esp32 -v C:\Users\harde\projects\my-project\deps\arduino-compat\include:/c/Users/harde/projects/my-project/deps/arduino-compat/include -v C:\Users\harde\projects\my-project\deps\rpc-service-fs\include:/c/Users/harde/projects/my-project/deps/rpc-service-fs/include -v C:\Users\harde\projects\my-project\deps\ota-common\include\esp32:/c/Users/harde/projects/my-project/deps/ota-common/include/esp32 -v C:\Users\harde\projects\my-project\build\objs:/c/Users/harde/projects/my-project/build/objs -v C:\Users\harde\projects\my-project\deps\vfs-fs-spiffs\src\spiffs:/c/Users/harde/projects/my-project/deps/vfs-fs-spiffs/src/spiffs -v C:\Users\harde\projects\my-project\deps\pwm\src\esp32:/c/Users/harde/projects/my-project/deps/pwm/src/esp32 -v C:\Users\harde\projects\my-project\deps\spi\src:/c/Users/harde/projects/my-project/deps/spi/src -v C:\Users\harde\projects\my-project\deps\shadow\include:/c/Users/harde/projects/my-project/deps/shadow/include -v C:\Users\harde\projects\my-project\deps\mqtt\include:/c/Users/harde/projects/my-project/deps/mqtt/include docker.io/mgos/esp32-build:3.2-r7 /bin/bash -c nice make '-j' '12' '-C' '/app' '-f' '/c/Users/harde/projects/my-project/deps/modules/mongoose-os/platforms/esp32/Makefile.build' 'all' 'MGOS_VARS_FILE=/c/Users/harde/projects/my-project/build/gen/vars.mk' make: Entering directory '/app' make: /c/Users/harde/projects/my-project/deps/modules/mongoose-os/platforms/esp32/Makefile.build: No such file or directory make: *** No rule to make target '/c/Users/harde/projects/my-project/deps/modules/mongoose-os/platforms/esp32/Makefile.build'. Stop. make: Leaving directory '/app' Error: exit status 2 /go/src/github.com/mongoose-os/mos/mos/build_local.go:679: /go/src/github.com/mongoose-os/mos/mos/build_local.go:666: /go/src/github.com/mongoose-os/mos/mos/build_local.go:431: /go/src/github.com/mongoose-os/mos/mos/build.go:223: /go/src/github.com/mongoose-os/mos/mos/build.go:166: /go/src/github.com/mongoose-os/mos/mos/main.go:196: build failed

  4. My expectation & question is: I expect to be able to build firmware, but the I’m guessing the Docker image/container cannot find a Makefile. This happened after I downgraded to mos 2.14.0 to test something and upgraded back to 2.15.0. I checked for the file under my deps directory, and it does exist.

#2

Does it work with a vanilla new project?

#3

No, I get the same issue. I have the full set of logs here: https://pastebin.com/NRV665is