Build error on Fedora 38 with gcc 13
Closed this issue · 5 comments
ycollet commented
I am trying to build grainbow on Fedora 38 with gcc 13.
I met the following error during compilation:
[ 56%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_stringref.cpp.o
cd /home/collette/rpmbuild/BUILD/gRainbow/redhat-linux-build/_deps/catch2-build/src && /usr/lib64/ccache/g++ -DCatch2_EXPORTS -I/home/collette/rpmbuild/BUILD/gRainbow/redhat-linux-build/_deps/catch2-src/src/catch2/.. -I/home/collette/rpmbuild/BUILD/gRainbow/redhat-linux-build/_deps/catch2-build/generated-includes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=c++14 -fPIC -ffile-prefix-map=/home/collette/rpmbuild/BUILD/gRainbow/redhat-linux-build/_deps/catch2-src/= -MD -MT _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_stringref.cpp.o -MF CMakeFiles/Catch2.dir/catch2/internal/catch_stringref.cpp.o.d -o CMakeFiles/Catch2.dir/catch2/internal/catch_stringref.cpp.o -c /home/collette/rpmbuild/BUILD/gRainbow/redhat-linux-build/_deps/catch2-src/src/catch2/internal/catch_stringref.cpp
In file included from /home/collette/rpmbuild/BUILD/gRainbow/Source/Parameters.h:16,
from /home/collette/rpmbuild/BUILD/gRainbow/Source/Components/EnvelopeADSR.h:15,
from /home/collette/rpmbuild/BUILD/gRainbow/Source/Components/EnvelopeADSR.cpp:11:
/home/collette/rpmbuild/BUILD/gRainbow/Source/Utils/Utils.h:112:73: error: expected ')' before '&' token
112 | AttachedComponent<CompType, CompAttachment>(juce::RangedAudioParameter& param, juce::Component& parent,
| ~ ^
| )
sjfricke commented
I can reproduce it with gcc 11.3 on Ubuntu 22.04
Can look into a fix
ycollet commented
Thanks a lot for your work first and for this fast answer ! :)
sjfricke commented
short answer, I realized the AttachedComponent
is completely unused, not sure what this was left over from...after removing it I was able to build and see it working as normal with that
ycollet commented
Thanks, I will try that on my side.
ycollet commented
Yes, it worked on my side. Thanks