Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

miot build failure

mchahnmchahn Long Beach, CA

I downloaded the latest miot for linux and created a fresh directory. When building the included app skeleton I'm getting this error...

$> miot build --arch esp8266
Connecting to http://mongoose.cloud, user test
Uploading sources (2037 bytes)
The flag --repo is not given, going to use mongoose-iot repository
Building...
Make arguments: -j -f mongoose-iot/fw/platforms/esp8266/Makefile BUILD_DIR=build/objs APP_VERSION=1.0 APP_FS_PATH=fs GEN_DIR=build/gen FS_STAGING_DIR=build/fs MIOT_PATH=mongoose-iot APP_MODULES=src PLATFORM=esp8266 APP_CONF_SCHEMA=src/conf_schema.yaml FW_DIR=build/fw APP=miot2
mongoose-iot/fw/platforms/esp8266/Makefile:8: /fw/docker_common.mk: No such file or directory
mongoose-iot/fw/platforms/esp8266/Makefile:14: /common/platforms/esp/debug_coredump.mk: No such file or directory
make: *** No rule to make target '/common/platforms/esp/debug_coredump.mk'.  Stop.
Error: exit status 2
Error: build failed
$> miot --version
The Mongoose IoT command line tool
Version: 2016122618
Build ID: 20161226-180234/lsm@878494a0+

I'm on Ubuntu 14.04.5 LTS, trusty

Comments

  • mchahnmchahn Long Beach, CA

    I'm stuck at this point. I'm looking for a way to build locally instead of on the cloud. If anyone can help me I'd really appreciate it.

  • SergeySergey Dublin, Ireland

    Assuming you're building one of the fw/examples,

    miot build --arch esp8266 --local --repo ../../.. --verbose
    

    If you're not building one of the examples, clone cesanta/mongoose-os repo and point --repo ... flag to its location.

  • mchahnmchahn Long Beach, CA

    Awesome. Thanks.

  • mchahnmchahn Long Beach, CA

    I'm getting the same error locally. I had assumed the cloud was broken since a build that worked one night didn't build the next morning. I'm getting some error about docker, but I'm not using docker ...

    roo(~/dev/p2/miot). miot build --arch esp8266 --local --repo ../mongoose-os --verbose
    Using mongoose-iot located at "../mongoose-os"
    Building...
    Make arguments: -j -f ../mongoose-os/fw/platforms/esp8266/Makefile PLATFORM=esp8266 APP_CONF_SCHEMA=src/conf_schema.yaml APP_MODULES=src BUILD_DIR=build/objs FW_DIR=build/fw APP_VERSION=1.0 GEN_DIR=build/gen FS_STAGING_DIR=build/fs APP=miot APP_FS_PATH=fs MIOT_PATH=../mongoose-os
    ../mongoose-os/fw/platforms/esp8266/Makefile:8: /fw/docker_common.mk: No such file or directory
    ../mongoose-os/fw/platforms/esp8266/Makefile:14: /common/platforms/esp/debug_coredump.mk: No such file or directory
    make: *** No rule to make target `/common/platforms/esp/debug_coredump.mk'.  Stop.
    Error: exit status 2
    
  • mchahnmchahn Long Beach, CA

    I know nothing about makefiles but this is what I can tell so far. The makefile is ...

    APP ?= mongoose-iot
    APP_PLATFORM = esp8266
    ifeq "$(APP)" "mongoose-iot"
    MGOS_PATH = ../../..
    endif
    
    # This defines "all" and "clean" targets.
    include $(MGOS_PATH)/fw/docker_common.mk
    

    MGOS_PATH is being resolved as an empty string. Where does MGOS_PATH come from? The make arguments are ...

    Make arguments: -j -f ../mongoose-os/fw/platforms/esp8266/Makefile FW_DIR=build/fw PLATFORM=esp8266 FS_STAGING_DIR=build/fs APP_VERSION=1.0 APP=miot APP_MODULES=src APP_FS_PATH=fs MIOT_PATH=../mongoose-os APP_CONF_SCHEMA=src/conf_schema.yaml GEN_DIR=build/gen BUILD_DIR=build/obj
    

    Which doesn't show any MGOS_PATH. I'm stuck at this point.

  • mchahnmchahn Long Beach, CA

    I changed the beginning of the makefile to ...

    APP_PLATFORM = esp8266
    MGOS_PATH = ../mongoose-os
    
    

    and now I'm getting this error. Once again what does docker have to do with anything? I'm not running docker, I don't think.

    roo(~/dev/p2/miot2). miot build --arch esp8266 --local --repo ../mongoose-os --verbose
    Using mongoose-iot located at "../mongoose-os"
    Building...
    Make arguments: -j -f ../mongoose-os/fw/platforms/esp8266/Makefile MIOT_PATH=../mongoose-os PLATFORM=esp8266 APP=miot2 APP_VERSION=1.0 FS_STAGING_DIR=build/fs BUILD_DIR=build/objs FW_DIR=build/fw APP_MODULES=src APP_FS_PATH=fs GEN_DIR=build/gen APP_CONF_SCHEMA=src/conf_schema.yaml
    /bin/sh: 1: docker: not found
    make: *** [all] Error 127
    Error: exit status 
    
  • SergeySergey Dublin, Ireland

    We have renamed miot to mgos.
    Please re-downloads the tool from https://mongoose-iot.com/software.html and try again.

Sign In or Register to comment.