Drewol / unnamed-sdvx-clone

A game based on K-Shoot MANIA and Sound Voltex
MIT License
775 stars 93 forks source link

[Bug] Make fails at discord-rpc module (linux) #675

Open Seanofthedead2 opened 3 months ago

Seanofthedead2 commented 3 months ago

Describe the bug Final make step in instructions fails at the discord-rpc module. Seems like some sort of read-only member assignment.

To Reproduce Steps to reproduce the behavior: Clone the project using git and then run git submodule update --init --recursive to download the required submodules. Install CMake Check 'build.linux' for libraries to install Run cmake -DCMAKE_BUILD_TYPE=Release . and then make from the root of the project

Expected behavior Make build and binary

Screenshots N/a, see attached txt file for full console log

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Log file

In file included from /home/sean/git/unnamed-sdvx-clone/third_party/discord-rpc/src/serialization.h:15,
                 from /home/sean/git/unnamed-sdvx-clone/third_party/discord-rpc/src/rpc_connection.h:4,
                 from /home/sean/git/unnamed-sdvx-clone/third_party/discord-rpc/src/discord_rpc.cpp:6:
/home/sean/git/unnamed-sdvx-clone/third_party/discord-rpc/thirdparty/rapidjson-1.1.0/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/home/sean/git/unnamed-sdvx-clone/third_party/discord-rpc/thirdparty/rapidjson-1.1.0/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-global-constructors’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-exit-time-destructors’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-covered-switch-default’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-c++98-compat-pedantic’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-c++98-compat’ may have been intended to silence earlier diagnostics
make[2]: *** [third_party/discord-rpc/src/CMakeFiles/discord-rpc.dir/build.make:76: third_party/discord-rpc/src/CMakeFiles/discord-rpc.dir/discord_rpc.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:681: third_party/discord-rpc/src/CMakeFiles/discord-rpc.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

See full console log attached, there were some failed curls early in the cmake process usc_error.txt

Seanofthedead2 commented 3 months ago

P.S. What exactly does this module do? I do already have discord and it was running during the build process. If this module can be skipped, where do I need to remove/comment it?

Hinara commented 2 months ago

Seems to be related to new gcc version https://github.com/Tencent/rapidjson/issues/2277 Problem is that is a subdependency of discord-rpc being out of date, but as discord-rpc is archived and this issue might not be resolvable without applying a patch to some file of discord-rpc