I’m getting an error while building Photon firmware with “make PLATFORM=photon”
src/protocol_defs.h:3:22: fatal error: functional: No such file or directory #include
if I perform make in /firmware/main folder following error occurs:
…/wiring/inc/spark_wiring_constants.h:31:23: fatal error: type_traits: No such file or directory #include <type_traits>
I have followed all prerequisites and dependencies instructions:
arm-none-eabi-gcc (15:4.9.3+svn227297-1) 4.9.3 20150529 (prerelease)
OS is Ubuntu 15.10
Normally you build from the modules directory. You can’t really cd into arbitrary directory and build it, because not everything will be set up properly.
it was effectively a toolchain issue. I installed mantained package of arm-none-eabi-gcc and not the embedded one as described in prerequisites. Package is not available for Ubuntu 15.10 so I switched to 14.04 and everything now works fine.