• Sun 2021.10.24

    Firmware build for ESPRUINOWIFI fails make: *** [libs/graphics/lcd_arraybuffer.o] Error 1

    Two weeks ago I was able to build .elf and .hex files using the steps clarified by @Gordon

    post #12 and #14    nRF52840DK build error: src/jslex.o make

    I used this sequence:

    make clean
    source scripts/provision.sh ESPRUINOWIFI
    make clean make
    make clean && BOARD=ESPRUINOWIFI RELEASE=1 make
    



    Which ran fine:

    rgc@DESKTOP-R7T0VUC:/mnt/c/Users/robin/e­spruino$ make clean
    Cleaning targets
    rgc@DESKTOP-R7T0VUC:/mnt/c/Users/robin/e­spruino$ source scripts/provision.sh ESPRUINOWIFI
    Provision BOARDNAME = ESPRUINOWIFI
    Provision FAMILY = STM32F4
    ===== NRF52
    ===== ARM
    arm-none-eabi-gcc installed
    rgc@DESKTOP-R7T0VUC:/mnt/c/Users/robin/e­spruino$ make clean make
    make: Nothing to be done for 'make'.
    Cleaning targets
    rgc@DESKTOP-R7T0VUC:/mnt/c/Users/robin/e­spruino$ make clean && BOARD=ESPRUINOWIFI RELEASE=1 make
    Cleaning targets
    CC /mnt/c/Users/robin/espruino/targetlibs/s­tm32f4/lib/startup_stm32f401xx.o
    Generating platform configs
    Generating pin info
    Generating JS wrappers
    WRAPPERSOURCES = src/jswrap_array.c src/jswrap_arraybuffer.c src/jswrap_dataview.c src/jswrap_date.c src/jswrap_e
    
    . . .
    
    
    and on and on to completion
    
    


    I have not used my PC other than for email and one Windows10 update behind the scenes did reboot my laptop this past Friday.

    2021-10 Cumulative Update for Windows 10 Version 20H2 for x64-based Systems (KB5006670)
    Successfully installed on 10/19/2021
    

    I haven't fetched (intentionally by me) or cloned from github, I haven't made any file modifications to the make, or board .py files either. I just started this morning with the intent to build continuing where I left off, but now get htis unique new error:

    libs/graphics/lcd_arraybuffer.c:222:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode         for (int i=0;i<gfx->data.bpp;i+=8)
             ^
    Makefile:803: recipe for target 'libs/graphics/lcd_arraybuffer.o' failed
    make: *** [libs/graphics/lcd_arraybuffer.o] Error 1
    make: *** wait: No child processes.  Stop.
    rgc@DESKTOP-R7T0VUC:/mnt/c/Users/robin/e­spruino$
    
    



    In the mean time I re-reading:

    nRF52840DK build error: src/jslex.o make

    and

    https://github.com/espruino/Espruino/blo­b/master/README_Building.md#for-stm32-bo­ards-incl-espruino-board

    I haven't changed any recipe within the make file, I haven't made any mods to the LCD libs, or any lib file for that matter.

About

Avatar for Robin @Robin started