mysensors / MySensors

MySensors library and examples
https://www.mysensors.org
1.32k stars 895 forks source link

Raspberry pi Gateway with IRQ doesn't compile #1557

Open vlachoudis opened 11 months ago

vlachoudis commented 11 months ago

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
rossiniscarface commented 8 months ago

any news on this?

trace3k commented 7 months ago

Adding my 2 cents here, any news?

mfalkvidd commented 7 months ago

https://github.com/mysensors/MySensors/pull/1562 is likely a fix

trace3k commented 7 months ago

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.