Errors when compiling Projucer

I am trying to compile the Projucer on Linux Mint. Version 5.4.3 ( I have to use this version for Cabbage)
I get some errors: (I already tried make clean also)

richard@richard-ESPRIMO-C910:~/JUCE-5.4.3/extras/Projucer/Builds/LinuxMakefile$ sudo make
Compiling jucer_AutoUpdater.cpp
In file included from …/…/…/…/modules/juce_graphics/juce_graphics.h:121,
from …/…/…/…/modules/juce_gui_basics/juce_gui_basics.h:57,
from …/…/…/…/modules/juce_analytics/juce_analytics.h:55,
from …/…/JuceLibraryCode/…/JuceLibraryCode/JuceHeader.h:17,
from …/…/Source/Application/…/Application/jucer_Headers.h:29,
from …/…/Source/Application/jucer_AutoUpdater.cpp:27:
…/…/…/…/modules/juce_graphics/colour/juce_PixelFormats.h: In member function ‘juce::uint8& juce::PixelARGB::getAlpha()’:
…/…/…/…/modules/juce_graphics/colour/juce_PixelFormats.h:116:77: error: cannot bind packed field ‘((juce::PixelARGB*)this)->juce::PixelARGB::.juce::PixelARGB::::comps[3]’ to ‘juce::uint8&’ {aka ‘unsigned char&’}
116 | e uint8& getAlpha() noexcept { return comps [indexA]; }
| ~~~~~~~~~~~~~^

AFAIK, these errors come from building with GCC 9.

You can either cherry-pick https://github.com/juce-framework/JUCE/commit/4e0adb2af8b424c43d22bd431011c9a6c57d36b6 or use an older version of GCC.

I hope this helps!

Thanks! I will give it a try…

After recommendation from the Cabbage forum, I tried Juce 5.4.7, that work perfectly. I did not have to change any files. Strange, because the commit you refer to seems to be implemented in 6.0.4…

The commit I referred to is from April 2019 and is part of JUCE 5.4.4.

Ok, that explains it. I must have read the version number in the include file itself I think.