Hello,
I checked out the v0.8.0-rc.10 tree and attempted to build. However, the build failed with the following error:
“
Building cpp file: src/spark_protocol_functions.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p …/build/target/communication/platform-10-m-prod-10/src/
arm-none-eabi-gcc -I/home/kcox/dev/compilers/gcc-arm-none-eabi-5_3-2016q1/include -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -DSYSTEM_VERSION_STRING=0.8.0-rc.10 -DRELEASE_BUILD -Werror -I. -MD -MP -MF /home/kcox/dev/fstudio/projects/os_particle/firmware/modules/electron/system-part2/makefile.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DMBEDTLS_CONFIG_FILE=”<mbedtls_config.h>" -fno-builtin -DSYSTEM_VERSION_STRING=0.8.0-rc.10 -DRELEASE_BUILD -Werror -I…/…/…/modules/electron/system-part2/inc -I…/…/…/modules/shared/stm32f2xx/inc -I…/…/…/communication/src -I…/…/…/services/inc -I…/…/…/services/nanopb -I…/…/…/platform/shared/inc -I…/…/…/platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I…/…/…/platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I…/…/…/platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I…/…/…/platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I…/…/…/platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I…/…/…/platform/MCU/shared/STM32/inc -I…/…/…/platform/MCU/STM32F2xx/CMSIS/Include -I…/…/…/platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I…/…/…/crypto/mbedtls/include -I…/…/…/crypto/inc -I…/…/…/dynalib/inc -I…/…/…/rt-dynalib/inc -I…/…/…/modules/shared/stm32f2xx/inc -I. -MD -MP -MF communication.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=309 -DMODULE_FUNCTION=4 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,3,309 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=10 -DPLATFORM_NAME=electron -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00A -DUSBD_PID_CDC=0xC00A -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DPRODUCT_ID=10 -DPRODUCT_FIRMWARE_VERSION=65535 -DMBEDTLS_CONFIG_FILE="<mbedtls_config.h>" -DSYSTEM_VERSION_STRING=0.8.0-rc.10 -DRELEASE_BUILD -Werror -I./src -I…/hal/inc -I…/hal/shared -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/include -I/rtos/FreeRTOSv8.2.2/FreeRTOS/Source/portable/GCC/ARM_CM3 -I…/hal/src/electron -I…/hal/src/stm32f2xx -I…/hal/src/stm32 -I…/dynalib/inc -I…/services/inc -I…/services/nanopb -I…/wiring/inc -I…/crypto/mbedtls/include -I…/crypto/inc -I. -MD -MP -MF …/build/target/communication/platform-10-m-prod-10/src/spark_protocol_functions.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x8080000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=309 -DMODULE_FUNCTION=4 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,3,309 -DMODULE_DEPENDENCY2=0,0,0 -D_WINSOCK_H -D_GNU_SOURCE -DLOG_MODULE_CATEGORY="“comm”" -fno-exceptions -fno-rtti -fcheck-new -std=gnu++11 -c -o …/build/target/communication/platform-10-m-prod-10/src/spark_protocol_functions.o src/spark_protocol_functions.cpp
In file included from …/hal/inc/interrupts_hal.h:33:0,
from …/wiring/inc/spark_wiring_interrupts.h:31,
from …/wiring/inc/spark_wiring_diagnostics.h:21,
from src/communication_diagnostic.h:1,
from src/publisher.h:28,
from src/protocol.h:12,
from src/lightssl_protocol.h:31,
from src/spark_protocol_functions.cpp:77:
…/hal/src/stm32/interrupts_irq.h:22:23: fatal error: stm32f2xx.h: No such file or directory
"
I tried to attach a full script of the build commands, environment output, build output, output from “git branch -vv” for full reference, but this forum will not allow me to attach simple txt file…(wth?). So I’ve tried to copy the output below, but there’s a character limit so I couldn’t do that.
So… I renamed my txt file with the extension *.jpg so I could upload it, but the filter won’t allow that. Thus I’m at a loss as to how I’m supposed to share the build log with all these limitations…
Thanks in advance for the help. I’m building on Ubuntu 16.04LTS btw.
-kieran