CC /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/toolchain/gcc/gcc_startup_nrf51.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_error.c src/jswrap_espruino.c src/jswrap_flash.c src/jswrap_functions.c src/jswrap_interactive.c src/jswrap_io.c src/jswrap_json.c src/jswrap_modules.c src/jswrap_pin.c src/jswrap_number.c src/jswrap_object.c src/jswrap_onewire.c src/jswrap_pipe.c src/jswrap_process.c src/jswrap_promise.c src/jswrap_regexp.c src/jswrap_serial.c src/jswrap_storage.c src/jswrap_spi_i2c.c src/jswrap_stream.c src/jswrap_string.c src/jswrap_waveform.c libs/math/jswrap_math.c libs/graphics/jswrap_graphics.c libs/bluetooth/jswrap_bluetooth.c DEFINES = -DGIT_COMMIT=3bd026c2 -DNO_ASSERT -DRELEASE -DBUILDNUMBER="356" -DCONFIG_GPIO_AS_PINRESET -DUSE_DEBUGGER -DUSE_TAB_COMPLETE -DBOARD_PCA10028 -DSAVE_ON_FLASH -DUSE_MATH -DUSE_GRAPHICS -DBLUETOOTH -DNRF_SD_BLE_API_VERSION=2 -DNRF51 -DSWI_DISABLE0 -DSOFTDEVICE_PRESENT -DS130 -DBLE_STACK_SUPPORT_REQD -DNRF51822DK -DNRF51822 -DNRF5X -DNRF5X_SDK_12 -DARM -DLINK_TIME_OPTIMISATION -DEMBEDDED CC libs/compression/compress_rle.o CC libs/graphics/bitmap_font_4x6.o CC libs/graphics/bitmap_font_6x8.o CC libs/graphics/graphics.o CC libs/graphics/lcd_arraybuffer.o CC libs/graphics/lcd_js.o CC libs/bluetooth/bluetooth_utils.o CC targets/nrf5x/main.o CC targets/nrf5x/jshardware.o CC targets/nrf5x/bluetooth.o CC targets/nrf5x/nrf5x_utils.o In file included from /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/drivers_nrf/hal/nrf_peripherals.h:55:0, from targets/nrf5x/jshardware.c:58: /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/device/nrf51822_peripherals.h:109:0: warning: "SPI_COUNT" redefined [enabled by default] #define SPI_COUNT 2 ^ In file included from /home/abhinav/espruinoL/Espruino/src/jsutils.h:17:0, from /home/abhinav/espruinoL/Espruino/src/jshardware.h:23, from targets/nrf5x/jshardware.c:36: gen/platform_config.h:46:0: note: this is the location of the previous definition #define SPI_COUNT 1 ^ In file included from /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/drivers_nrf/hal/nrf_peripherals.h:55:0, from targets/nrf5x/jshardware.c:58: /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/device/nrf51822_peripherals.h:129:0: warning: "ADC_COUNT" redefined [enabled by default] #define ADC_COUNT 1 ^ In file included from /home/abhinav/espruinoL/Espruino/src/jsutils.h:17:0, from /home/abhinav/espruinoL/Espruino/src/jshardware.h:23, from targets/nrf5x/jshardware.c:36: gen/platform_config.h:48:0: note: this is the location of the previous definition #define ADC_COUNT 0 ^ CC gen/jspininfo.o targets/nrf5x/jshardware.c:252:17: warning: 'pwmValues' defined but not used [-Wunused-variable] static uint16_t pwmValues[3][4]; ^ targets/nrf5x/jshardware.c:254:17: warning: 'pwmCounters' defined but not used [-Wunused-variable] static uint16_t pwmCounters[3]; ^ targets/nrf5x/jshardware.c: In function 'jshSPISend': targets/nrf5x/jshardware.c:1587:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from /home/abhinav/espruinoL/Espruino/src/jsutils.h:17:0, from /home/abhinav/espruinoL/Espruino/src/jsvar.h:17, from /home/abhinav/espruinoL/Espruino/src/jsparse.h:17, from targets/nrf5x/nrf5x_utils.c:30: gen/platform_config.h:46:0: warning: "SPI_COUNT" redefined [enabled by default] #define SPI_COUNT 1 ^ In file included from /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/drivers_nrf/hal/nrf_peripherals.h:55:0, from /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/drivers_nrf/hal/nrf_gpio.h:44, from targets/nrf5x/nrf5x_utils.c:20: /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/device/nrf51822_peripherals.h:109:0: note: this is the location of the previous definition #define SPI_COUNT 2 ^ In file included from /home/abhinav/espruinoL/Espruino/src/jsutils.h:17:0, from /home/abhinav/espruinoL/Espruino/src/jsvar.h:17, from /home/abhinav/espruinoL/Espruino/src/jsparse.h:17, from targets/nrf5x/nrf5x_utils.c:30: gen/platform_config.h:48:0: warning: "ADC_COUNT" redefined [enabled by default] #define ADC_COUNT 0 ^ In file included from /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/drivers_nrf/hal/nrf_peripherals.h:55:0, from /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/drivers_nrf/hal/nrf_gpio.h:44, from targets/nrf5x/nrf5x_utils.c:20: /home/abhinav/espruinoL/Espruino/targetlibs/nrf5x_12/components/device/nrf51822_peripherals.h:129:0: note: this is the location of the previous definition #define ADC_COUNT 1 ^ CC src/jswrap_array.o cc1: warning: unrecognized command line option "-Wno-expansion-to-defined" [enabled by default] targets/nrf5x/bluetooth.c: In function 'nus_transmit_string': targets/nrf5x/bluetooth.c:940:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int packet=0;packet<1;packet++) { ^ targets/nrf5x/bluetooth.c:940:3: note: use option -std=c99 or -std=gnu99 to compile your code targets/nrf5x/bluetooth.c: At top level: cc1: warning: unrecognized command line option "-Wno-expansion-to-defined" [enabled by default] Makefile:762: recipe for target 'targets/nrf5x/bluetooth.o' failed make: *** [targets/nrf5x/bluetooth.o] Error 1 make: *** Waiting for unfinished jobs.... targets/nrf5x/jshardware.c: At top level: cc1: warning: unrecognized command line option "-Wno-expansion-to-defined" [enabled by default] make: *** wait: No child processes. Stop.