MySensors
MySensors copied to clipboard
Raspberry pi Gateway with IRQ doesn't compile
On raspberry pi v4 (latest rasbian 64bit) When I set the my-rf24-irq-pin and try to compile the development branch I get the error
./hal/architecture/Linux/MyHwLinuxGeneric.h:106:50: error: ambiguating new declaration of ‘uint8_t __hwLock()’
106 | #define ATOMIC_BLOCK for ( ATOMIC_BLOCK_CLEANUP, __hwLock(); \
| ^~~~~~~~
./hal/architecture/Linux/MyHwLinuxGeneric.h:113:29: note: in expansion of macro ‘ATOMIC_BLOCK’
113 | #define MY_CRITICAL_SECTION ATOMIC_BLOCK
| ^~~~~~~~~~~~
./drivers/CircularBuffer/CircularBuffer.h:161:17: note: in expansion of macro ‘MY_CRITICAL_SECTION’
161 | MY_CRITICAL_SECTION {
| ^~~~~~~~~~~~~~~~~~~
./hal/architecture/Linux/MyHwLinuxGeneric.h:88:24: note: old declaration ‘void __hwLock()’
88 | static __inline__ void __hwLock()
| ^~~~~~~~
make: *** [Makefile:99: build/examples_linux/mysgw.o] Error 1
$ gcc --version
gcc (Debian 12.2.0-14) 12.2.0
any news on this?
Adding my 2 cents here, any news?
https://github.com/mysensors/MySensors/pull/1562 is likely a fix
Tried it but does not work on my RPI4 with kernel 6.6 - same error. But there seems to be much more amiss on kernel 6.6/ Raspian Bookworm as the configure script seems to be unable to autodetect the soc or even the aarch64 flag.