Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947002 - [guru] games-util/mangohud-0.7.2-r1 fails to compile: common.h:369:54: error: template<class T, class .. Args> fmt::v11::basic_string_view<Char> spdlog::details::to_string_view redeclared as different kind of entity
Summary: [guru] games-util/mangohud-0.7.2-r1 fails to compile: common.h:369:54: error:...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Adel KARA SLIMANE
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-27 08:46 UTC by Agostino Sarubbo
Modified: 2024-12-28 20:08 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,346.25 KB, text/plain)
2024-12-27 08:46 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-12-27 08:46:20 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-util/mangohud-0.7.2-r1 fails to compile.
Discovered on: amd64 (internal ref: guru_ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-12-27 08:46:21 UTC
Created attachment 915217 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-12-27 08:46:22 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: src/libMangoHud.a.p/amdgpu.cpp.o 
FAILED: src/libMangoHud.a.p/battery.cpp.o 
FAILED: src/libMangoHud.a.p/blacklist.cpp.o 
FAILED: src/libMangoHud.a.p/config.cpp.o 
FAILED: src/libMangoHud.a.p/control.cpp.o 
FAILED: src/libMangoHud.a.p/cpu.cpp.o 
FAILED: src/libMangoHud.a.p/dbus.cpp.o 
FAILED: src/libMangoHud.a.p/device.cpp.o 
FAILED: src/libMangoHud.a.p/file_utils.cpp.o 
FAILED: src/libMangoHud.a.p/font.cpp.o 
FAILED: src/libMangoHud.a.p/gpu.cpp.o 
FAILED: src/libMangoHud.a.p/hud_elements.cpp.o 
FAILED: src/libMangoHud.a.p/intel.cpp.o 
FAILED: src/libMangoHud.a.p/keybinds.cpp.o 
FAILED: src/libMangoHud.a.p/loaders_loader_x11.cpp.o 
FAILED: src/libMangoHud.a.p/logging.cpp.o 
FAILED: src/libMangoHud.a.p/memory.cpp.o 
FAILED: src/libMangoHud.a.p/net.cpp.o 
FAILED: src/libMangoHud.a.p/notify.cpp.o 
FAILED: src/libMangoHud.a.p/overlay.cpp.o 
FAILED: src/libMangoHud.a.p/overlay_params.cpp.o 
FAILED: src/libMangoHud.a.p/pci_ids.cpp.o 
FAILED: src/libMangoHud.a.p/shared_x11.cpp.o 
FAILED: src/libMangoHud.a.p/shell.cpp.o 
FAILED: src/libMangoHud.a.p/vulkan.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/amdgpu.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/battery.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/blacklist.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/config.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/control.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/cpu.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/dbus.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/device.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/file_utils.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/font.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/gl_gl_hud.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/gl_gl_renderer.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/gl_inject_egl.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/gl_inject_glx.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/gpu.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/hud_elements.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/intel.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/keybinds.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/loaders_loader_dbus.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/loaders_loader_glx.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/loaders_loader_x11.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/logging.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/memory.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/net.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/notify.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/overlay.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/overlay_params.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/pci_ids.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/shared_x11.cpp.o 
FAILED: src/libMangoHud_opengl.so.p/shell.cpp.o 
fatal: not a git repository (or any parent up to mount point /var/tmp)
/usr/include/spdlog/common.h:369:54: error: ‘template<class T, class ... Args> fmt::v11::basic_string_view<Char> spdlog::details::to_string_view’ redeclared as different kind of entity
Comment 3 tuxway+gentoo 2024-12-27 16:45:13 UTC
Seem to be somehow related to the new dev-libs/libfmt-11.1.0.
Downgrading to dev-libs/libfmt-11.0.2 works for me as a temporary fix.
Also other programs (like MPD) seems to be also affected.
Comment 4 tuxway+gentoo 2024-12-27 17:40:14 UTC
Sorry, seems to be related to spdlog instead according to https://github.com/fmtlib/fmt/issues/4275.

If I build mangohud against libfmt-9999 and spdlog-9999, it works for me.
So it looks like its already fixed upstream.

According to
https://bugs.gentoo.org/show_bug.cgi?id=946925
we may not need spdlog anymore though.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 17:41:55 UTC
I already fixed spdlog in

commit cdb103056a0cd04abbd8f176de4aca601c1e7b64
Author: Sam James <sam@gentoo.org>
Date:   Thu Dec 26 02:37:50 2024 +0000

    dev-libs/spdlog: fix build w/ libfmt-11.1.0

    Signed-off-by: Sam James <sam@gentoo.org>

and I didn't revbump it as I didn't think it should be needed, given spdlog has a := dep on libfmt and libfmt's subslot changed.

I'm a bit surprised people hit it then, but I can revbump it of course if I missed a case.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 17:42:19 UTC
Ah, nevermind, bug 946925 explains it (if it's pinned to older spdlog, not the one I fixed).
Comment 7 tuxway+gentoo 2024-12-27 19:22:30 UTC
(In reply to tuxway+gentoo from comment #4)
> Sorry, seems to be related to spdlog instead according to
> https://github.com/fmtlib/fmt/issues/4275.
> 
> If I build mangohud against libfmt-9999 and spdlog-9999, it works for me.
> So it looks like its already fixed upstream.
> 
> According to
> https://bugs.gentoo.org/show_bug.cgi?id=946925
> we may not need spdlog anymore though.

Sorry, last sentence was wrong. Spdlog is still needed.
Comment 8 Larry the Git Cow gentoo-dev 2024-12-28 20:08:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8ce2ebdb276ff9fb17da61ecc508536c754c7286

commit 8ce2ebdb276ff9fb17da61ecc508536c754c7286
Author:     Adel KARA SLIMANE <adel.ks@zegrapher.com>
AuthorDate: 2024-12-28 01:51:24 +0000
Commit:     Adel KARA SLIMANE <adel.ks@zegrapher.com>
CommitDate: 2024-12-28 01:59:45 +0000

    games-util/mangohud: improve dependencies
    
    Closes: https://bugs.gentoo.org/946925
    Closes: https://bugs.gentoo.org/947002
    
    Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>

 games-util/mangohud/mangohud-0.7.2-r1.ebuild | 31 ++++++++++++++--------------
 games-util/mangohud/mangohud-9999.ebuild     | 31 ++++++++++++++--------------
 2 files changed, 32 insertions(+), 30 deletions(-)