"App is too big" error when building for ESP32

I keep getting the error below when trying to build the demo app locally or remotely for ESP32.

Build works for ESP8266 with “mos build --platform esp8266 --build-var BOARD=esp8266-1M”

Mongoose OS command line tool 2.13.1 on MacOS 10.14.4

CC /data/fwbuild-volumes/2.13.1/apps/mongoose/esp32/build_contexts/build_ctx_345593174/build/objs/bt/bluedroid/api/esp_gatt_common_api.o
CC /data/fwbuild-volumes/2.13.1/apps/mongoose/esp32/build_contexts/build_ctx_345593174/build/objs/bt/bluedroid/api/esp_hf_client_api.o
AR /data/fwbuild-volumes/2.13.1/apps/mongoose/esp32/build_contexts/build_ctx_345593174/build/objs/bt/libbt.a
make[1]: Leaving directory '/data/fwbuild-volumes/2.13.1/apps/mongoose/esp32/build_contexts/build_ctx_345593174/build/objs/bt'
  GEN   /data/fwbuild-volumes/2.13.1/apps/mongoose/esp32/build_contexts/build_ctx_345593174/build/gen/build_info.c
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  CC build_info.o
AR /data/fwbuild-volumes/2.13.1/apps/mongoose/esp32/build_contexts/build_ctx_345593174/build/objs/mosapp/libmosapp.a
make[1]: Leaving directory '/data/fwbuild-volumes/2.13.1/apps/mongoose/esp32/build_contexts/build_ctx_345593174/build/objs/mosapp'
LD /data/fwbuild-volumes/2.13.1/apps/mongoose/esp32/build_contexts/build_ctx_345593174/build/objs/mongoose.elf
esptool.py v2.6
    App size: 1575712 of 1572864 (100%)
App is too big
make: *** [app-bin-check] Error 1
/mongoose-os/fw/platforms/esp32/Makefile.build:212: recipe for target 'app-bin-check' failed
make: *** Waiting for unfinished jobs....
make: Leaving directory '/app'
Error: exit status 2
/go/src/cesanta.com/mos/build_local.go:657: 
/go/src/cesanta.com/mos/build_local.go:644: 
/go/src/cesanta.com/mos/build_local.go:413: 
/go/src/cesanta.com/mos/build.go:208: 
/go/src/cesanta.com/mos/build.go:151: 
/go/src/cesanta.com/mos/main.go:178: build failed
Error: /private/tmp/mos-20190426-57195-kki69o/mos-tool-2034cc00c37fee33b300b1c5869b8eeff328fdfa/src/cesanta.com/mos/build_remote.go:309: build failed
/private/tmp/mos-20190426-57195-kki69o/mos-tool-2034cc00c37fee33b300b1c5869b8eeff328fdfa/src/cesanta.com/mos/build.go:208: 
/private/tmp/mos-20190426-57195-kki69o/mos-tool-2034cc00c37fee33b300b1c5869b8eeff328fdfa/src/cesanta.com/mos/build.go:151: 
/private/tmp/mos-20190426-57195-kki69o/mos-tool-2034cc00c37fee33b300b1c5869b8eeff328fdfa/src/cesanta.com/mos/main.go:178: build failed
1 Like

Please share the exact build command line, and your mos.yml.

1 Like

It has been fixed in latest:

mos version
The Mongoose OS command line tool
Version: 201905021612
Build ID: 20190502-161444/g6f34b9e-master
Update channel: latest

Unfortunately still doesn’t work for me.

What is the output of mos version?
Did you try mos build --platform esp32 --clean?

1 Like
  1. mos version
    The Mongoose OS command line tool
    Version: 2.13.1
    Build ID: 2.13.1~brew
    Update channel: release
  2. I’ve already tried - no effect.

mos update latest (I hope it works with brew) and rebuild clean.

Wow, it works!
Thanks a lot!!!

1 Like

Thanks, it’s working for me too.

tks for your share, c’mon up