Closed mihawk90 closed 2 years ago
I was able to get past this issue on arch with a simple patch
--- deadbeef-lyricbar/src/utils.cpp 2022-06-20 17:54:56.042480744 -0500
+++ deadbeef-lyricbar/src/utils-2.cpp 2022-06-20 17:57:12.050407411 -0500
@@ -11,6 +11,7 @@
#include <regex>
#include <sstream>
#include <stdexcept>
+#include <array>
#include <giomm.h>
#include <glibmm/fileutils.h>
Dunno if the problem really is as simple as a missing include, but it builds for me now.
Hmm good catch. I looked this up and that seems to be the case:
https://gcc.gnu.org/gcc-12/porting_to.html
Header dependency changes Some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. As such, C++ programs that used standard library components without including the right headers will no longer compile.
The following headers are used less widely in libstdc++ and may need to be included explicitly when compiled with GCC 12:
(for std::shared_ptr, std::unique_ptr etc.) (for std::begin, std::end, std::size, std::istream_iterator, std::istreambuf_iterator) (for std::for_each, std::copy etc.) (for std::pair) (for std::array) (for std::atomic)
edit: well, while it compiled, it fails to load. Same issue as in #22
Currently trying to get this to compile on Fedora 36, which ships GCC 12, and I'm running into a compile error.
For sanity check I also compiled on Fedora 34 and 35, which both ship GCC 11, and both targets seem to compile just fine.
This is what I'm getting:
Complete build log attached: build.log