13 May
2017
13 May
'17
6:58 p.m.
I am a bit surprised the code compiled on Pi, but I think they fixed that somehow in their own branch of gcc (since its version is 4.9.2-10)
pi@rpi1 ~ $ g++ -v ... gcc version 4.9.2 (Raspbian 4.9.2-10)
Try `gcc -dM - -E < /dev/null | grep __GCC_ATOMIC_INT_LOCK_FREE`, it should output 2 in you Pi, and output 1 when using your cross-compiler. And ATOMIC_INT_LOCK_FREE is defined to be __GCC_ATOMIC_INT_LOCK_FREE, so the code compiles.