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

GCC 11.1.0 ~ "error: invalid declarator before ‘*’ token" and "error: expected ‘)’ before ‘*’ token" #10291

Closed
Valmar33 opened this issue May 17, 2021 · 5 comments
Labels
Build and CI Anything related to the build process and continuous integration OS: Linux Won't Fix

Comments

@Valmar33
Copy link

Valmar33 commented May 17, 2021

FAILED: rpcs3/rpcs3qt/CMakeFiles/rpcs3_ui.dir/game_list_frame.cpp.o 
/usr/bin/g++ -DGLX_GLXEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DHAVE_ALSA -DHAVE_FAUDIO -DHAVE_LIBEVDEV -DHAVE_PULSE -DHAVE_QTDBUS -DHAVE_VULKAN -DHAVE_X11 -DLLVM_AVAILABLE -DNDEBUG -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DVK_USE_PLATFORM_WAYLAND_KHR -DWC_NO_HARDEN -DWITH_DISCORD_RPC -Irpcs3/rpcs3qt/rpcs3_ui_autogen/include -I/usr/include/qt/QtGui/5.15.2 -I/usr/include/qt/QtGui/5.15.2/QtGui -I/usr/include/qt/QtCore/5.15.2 -I/usr/include/qt/QtCore/5.15.2/QtCore -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/yaml-cpp/include -I/tmp/makepkg/rpcs3-git/src/rpcs3/rpcs3 -I/tmp/makepkg/rpcs3-git/src/rpcs3 -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/flatbuffers/include -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/pugixml/src -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/span/include -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/FAudio/src -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/FAudio/include -I/usr/include/AL -I/tmp/makepkg/rpcs3-git/src/rpcs3/llvm/include -I3rdparty/llvm_build/include -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/asmjit/asmjit/src -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/cereal/include -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/GL -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/stblib/include -I/tmp/makepkg/rpcs3-git/src/rpcs3/Vulkan/glslang/SPIRV/.. -Iinclude -I/tmp/makepkg/rpcs3-git/src/rpcs3/Vulkan/spirv-tools/include -I/tmp/makepkg/rpcs3-git/src/rpcs3/Vulkan/spirv-headers/include -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/libusb/libusb/libusb -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/wolfssl -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/discord-rpc/include -I/tmp/makepkg/rpcs3-git/src/rpcs3/3rdparty/hidapi/hidapi -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtConcurrent -isystem /usr/include/libevdev-1.0 -isystem /usr/include/SDL2 -march=native -O2 -pipe -fno-plt -ftree-vectorize -ftree-slp-vectorize -fdiagnostics-color=always -fexceptions         -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS         -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wl,--exclude-libs,ALL -O3 -DNDEBUG -pthread -Wall -fno-exceptions -fstack-protector -msse -msse2 -mcx16 -Werror=old-style-cast -Werror=sign-compare -Werror=reorder -Werror=return-type -Werror=overloaded-virtual -Werror=missing-noreturn -Wunused-parameter -Wignored-qualifiers -Wredundant-move -Wcast-qual -Wdeprecated-copy -Wtautological-compare -Wempty-body -Wredundant-decls -Wstrict-aliasing=1 -Werror=suggest-override -Wclobbered -Wcast-function-type -Wduplicated-branches -Wduplicated-cond -Wno-class-memaccess -march=native -fPIC -std=gnu++2a -MD -MT rpcs3/rpcs3qt/CMakeFiles/rpcs3_ui.dir/game_list_frame.cpp.o -MF rpcs3/rpcs3qt/CMakeFiles/rpcs3_ui.dir/game_list_frame.cpp.o.d -o rpcs3/rpcs3qt/CMakeFiles/rpcs3_ui.dir/game_list_frame.cpp.o -c /tmp/makepkg/rpcs3-git/src/rpcs3/rpcs3/rpcs3qt/game_list_frame.cpp
In file included from /usr/include/qt/QtConcurrent/qtconcurrentiteratekernel.h:49,
                 from /usr/include/qt/QtConcurrent/qtconcurrentfilterkernel.h:47,
                 from /usr/include/qt/QtConcurrent/qtconcurrentfilter.h:47,
                 from /usr/include/qt/QtConcurrent/QtConcurrent:8,
                 from /tmp/makepkg/rpcs3-git/src/rpcs3/rpcs3/rpcs3qt/game_list_frame.cpp:33:
/usr/include/qt/QtConcurrent/qtconcurrentthreadengine.h:250:50: error: invalid declarator before ‘*’ token
  250 |     ThreadEngineStarter<void>(ThreadEngine<void> *_threadEngine)
      |                                                  ^
/usr/include/qt/QtConcurrent/qtconcurrentthreadengine.h:250:49: error: expected ‘)’ before ‘*’ token
  250 |     ThreadEngineStarter<void>(ThreadEngine<void> *_threadEngine)
      |                              ~                  ^~
      |                                                 )
[1998/2042] Building CXX object rpcs3/rpcs3qt/CMakeFiles/rpcs3_ui.dir/gui_application.cpp.o
@MSuih MSuih added Build and CI Anything related to the build process and continuous integration OS: Linux labels May 17, 2021
@MSuih
Copy link
Member

MSuih commented May 17, 2021

We have recieved reports that this is GCC 11 specific issue and that GCC 10 or Clang 12 will compile this just fine. Seems like it should be reported to either GCC or Qt, but I'll let the linux experts decide that.

@Nekotekina
Copy link
Member

I just edited offending header in my /opt directory.

@Valmar33
Copy link
Author

Ah, sorry. In my drowsiness, I didn't realize this was a GCC / Qt bug. 👀

@MSuih
Copy link
Member

MSuih commented May 18, 2021

This was resolved by Qt in here. But unfortunately the latest updates to 5.15 are behind paywall and we'd need to upgrade to 6.1 to get this change.

I'm closing this issue as we have no way to resolve it within the project. You can do the code changes from that ticket to your own files like Neko did, or maybe ask GCC to undo whatever changes they did on their end.

@MSuih MSuih closed this as completed May 18, 2021
kattjevfel added a commit to kattjevfel/pkgbuilds that referenced this issue May 18, 2021
Use GCC 10 due to a Qt/GCC bug, see the follow link for more info:
RPCS3/rpcs3#10291
@MSuih
Copy link
Member

MSuih commented May 22, 2021

Our CI has been upgraded to GCC 11 with a workaround for this issue: RPCS3/rpcs3-docker@14ff5ad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build and CI Anything related to the build process and continuous integration OS: Linux Won't Fix
Projects
None yet
Development

No branches or pull requests

3 participants