• @Wilberforce
    Many thanks for the assistance ... I checked my settings and they were almost identical to yours. I tried a make clean and then a rebuild but same error. If we look at the current master Makefile which is here:

    https://github.com/espruino/Espruino/blo­b/master/Makefile

    and we look at lines 1968 and 1982 ... we see two mv statements that use the fiile eagle.app.flash.bin as the source but I am at a loss to see where this file may come from in the first place. It isn't in the Git repository and I don't see where it is "generated". Can I ask you to look in your Makefile and see what is on or around the same sections of instructions?

    .... later

    I found the commit that made these changes ... it is this one:

    https://github.com/espruino/Espruino/com­mit/8323a8a832ceb538e832b954bc7dbfbf3c47­685c

    as I dug deeper ... the file that is missing (eagle.app.flash.bin) appears to be generated by a program called gen_appbin.py which is named in the variable APPGEN_TOOL.

    However, what I find odd is line 1966 of the Makefile which reads:

    $(Q)COMPILE=gcc python $(APPGEN_TOOL) $(USER1_ELF) 2 $(ESP_FLASH_MODE) $(ESP_FLASH_FREQ_DIV) $(ESP_FLASH_SIZE) 0 >/dev/null

    and this is where my Makefile skills may be leaving me. What does that line do/mean? As far as I can tell it assigns to a variable called COMPILE ... but I'm guessing that must be wrong.

  • The line:
    https://github.com/espruino/Espruino/blo­b/master/Makefile#L1966

    $(Q)COMPILE=gcc python $(APPGEN_TOOL) $(USER1_ELF) 2 $(ESP_FLASH_MODE) $(ESP_FLASH_FREQ_DIV) $(ESP_FLASH_SIZE) 0 >/dev/null

    This should be generating the eagle.app.flash.bin file.

    $(Q) gets evaluated - normally it it set to be empty - so it is set to Quiet - which suppresses the output.

    We can set the output to verbose, so you can see what your error is:

    make V=1 ... so in our case here we are using a script, so:

    ./build-esp-4mb.sh V=1

    This runs the build in verbose mode, so you will be able to see where the error is.

    In my case I see:

    COMPILE=gcc python /mnt/c/ubuntu/esp-open-sdk/sdk/tools/gen­_appbin.py espruino_esp8266_user1.elf 2 0 15 4 0 >/dev/null

    This implies there is something wrong with your python setup.

    As python is used to build the wrapper files - in your case I would have thought this would have failed earlier.

    What is your output from ?:

    root@OFFICE-PC:/mnt/c/ubuntu/Espruino# python -V
    Python 2.7.6
    
About

Avatar for Wilberforce @Wilberforce started