[BR] RPI4 / static_assert failed "Atoms are 32-bit"

With the dev branch on RPI4 JUCE fails to build.

In file included from ../../JuceLibraryCode/include_juce_gui_basics.cpp:8:
In file included from /home/pi/JUCE/modules/juce_gui_basics/juce_gui_basics.cpp:327:
/home/pi/JUCE/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp:1365:17: error: 
      static_assert failed "Atoms are 32-bit"
                static_assert (atomSize == 8, "Atoms are 32-bit");
                ^              ~~~~~~~~~~~~~
1 error generated.

This is my build script.

rpi4="-mcpu=cortex-a72 -mtune=cortex-a72 -mfpu=neon-fp-armv8"

# Raspberry Pi 4 Model B.

if [[ $OSTYPE =~ linux-gnueabihf ]]; then
    CPUTYPE="`lscpu`"
    if [[ $CPUTYPE =~ "Cortex-A72" ]]; then
        cd Spaghettis/Builds/LinuxMakefile
        make -j4 CXX=clang++ CONFIG=Release TARGET_ARCH="${rpi4}" CPPFLAGS="-DJUCE_RPI=1"
        rm -r build/intermediate
        exit 0
    fi
fi

For reference, this static_assert comes from this commit:

2 Likes

It seems on my RPI4 that sizeof(Atom) is 4 in that case.

Raspberry Pi OS (Raspbian).

Is it related < What is an atom in X11? | Twise Random >?

Seems to be fixed there: