https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/spdlog-1.8.5 fails to compile. Discovered on: amd64 (internal ref: ci) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html If you think this is a GCC-11 related issue, please block bug 732706.
Created attachment 717513 [details] build.log build log and emerge --info
Possible context of error(s): /var/tmp/portage/dev-libs/spdlog-1.8.5/work/spdlog-1.8.5/include/spdlog/common-inl.h:63:50: error: cannot convert ‘const string’ {aka ‘const std::__cxx11::basic_string<char>’} to ‘const char*’
Same error here, if dev-libs/libfmt-8.0.0 is installed. With dev-libs/libfmt-7.1.3 it builds successful.
*** Bug 797415 has been marked as a duplicate of this bug. ***
Created attachment 717540 [details, diff] Fix spdlog compile with libfmt 8.0 It appears to be this bug: https://github.com/gabime/spdlog/issues/1941 There's a patch, but it's listed under this Visual Studio specific bug for some reason: https://github.com/gabime/spdlog/issues/1955#issuecomment-860676872 There doesn't seem to be a PR to include it upstream yet though. Patch is attached, it fixes the build with libfmt 8 for me.
(In reply to Tiernan Hubble from comment #5) [...] Yes, the patch works for me too Thanks!
*** Bug 797430 has been marked as a duplicate of this bug. ***
How would I go about applying that patch to the ebuild on my local host?
(In reply to Gary E. Miller from comment #8) > How would I go about applying that patch to the ebuild on my local host? Add it to /etc/portage/patches: https://wiki.gentoo.org/wiki//etc/portage/ If you need more support there are others happy to help in another venue like IRC or the forums.
*** Bug 798405 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64d8afb7f3cd0f431e5b40fe486e1e89965131e5 commit 64d8afb7f3cd0f431e5b40fe486e1e89965131e5 Author: Hank Leininger <hlein@korelogic.com> AuthorDate: 2021-06-24 18:25:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-25 00:31:14 +0000 dev-libs/spdlog: fix compiling with libfmt-8 installed See also upstream https://github.com/gabime/spdlog/issues/1975 Signed-off-by: Hank Leininger <hlein@korelogic.com> Closes: https://bugs.gentoo.org/797394 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Closes: https://github.com/gentoo/gentoo/pull/21413 Signed-off-by: Sam James <sam@gentoo.org> .../spdlog/files/spdlog-1.8.5-libfmt-8-fix.patch | 13 ++++++ dev-libs/spdlog/spdlog-1.8.5-r1.ebuild | 49 ++++++++++++++++++++++ 2 files changed, 62 insertions(+)