Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry pi Gateway with IRQ doesn't compile #1557

Open
vlachoudis opened this issue Jan 2, 2024 · 4 comments
Open

Raspberry pi Gateway with IRQ doesn't compile #1557

vlachoudis opened this issue Jan 2, 2024 · 4 comments

Comments

@vlachoudis
Copy link

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
Copy link

any news on this?

@trace3k
Copy link

trace3k commented Apr 19, 2024

Adding my 2 cents here, any news?

@mfalkvidd
Copy link
Member

#1562 is likely a fix

@trace3k
Copy link

trace3k commented Apr 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants