I was building successfully for Photon on the ‘develop’ branch on Mac/OSX. With a recent pull, I now receive a notice to switch to the ‘latest’ branch. [BTW, to keep developing on ‘experimental’ add PARTICLE_DEVELOP=1 to your make command line or environment variables, as described here.
However, whether on latest or develop, I’m now seeing:
$ make v=1 PLATFORM=photon PARTICLE_DEVELOP=1 APP=myprog clean all program-dfu
*** "ARM gcc version 4.9.3 20150529 or later required, but found 4.9.3 20150303 (release)
- But if I switch to the 0529 version of arm-none-eabi, the clean build fails on linking with:
/Users/[…]/gcc-arm-none-eabi-4_9-2015q2/bin/…/lib/gcc/arm-none-eabi/4.9.3/…/…/…/…/arm-none-eabi/lib/armv7-m/libg_nano.a(lib_a-gettimeofdayr.o): In function
_gettimeofday_r': gettimeofdayr.c:(.text._gettimeofday_r+0xe): undefined reference to_gettimeofday’
How do I fix this?
To install gcc-arm-none-eabi-4_9, I downloaded it from here, then added its bin directory to my path.