Trouble Building Firmware on Windows 10

Hi, I’m getting the following error when building on windows 10:

             from src/photon/core_hal.c:28:

c:\program files (x86)\gnu tools arm embedded\5.4 2016q2\arm-none-eabi\include\machine\endian.h:20:0: note: this is the location of the previous definition
cc1.exe: all warnings being treated as errors
make[2]: *** […/build/target/hal/platform-6-m/./src/photon/core_hal.o] Error 1

I am on ‘latest’ branch, have latest 2016q2 ARM GCC tools. Aside from removing -Werrer from makefiles, any thoughts on what my problem is?

If you can show your actual make command and from what folder you are executing it, that might also help.

But one thing I hate about 64bit Windows is this annoying Program Files (x86) folder. The blanks and parenthese are sometimes tripping up tools.
So try to move your toolchain into a “clean” path, or do via aliases or links.
Also avoid blanks in your sources path.


Thanks for the help. I am seeing the same issue after removing all spaces from paths:
source dir: C:\Users\steve\Documents\firmware\modules\
command: make clean all PLATFORM=photon PARTICLE_DEVELOP=1 program-dfu
ARM tools dir: C:\GNU_Tools_ARM_Embedded\5.4_2016q2\bin

In other posts, I’ve seen mention of a windows installer tool. However these posts are 1 yr old, so I’m skeptical they include the correct, latest versions of all tools. But is 2016q2 too recent? Any help is appreciated!

As it seems too new (5.4) isn’t too good either :wink:
I’m still building with 4.x (whichever got pulled by the Windows Installer) without issues.