🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Sebastian Ramacher Wed, 07 Oct 2026 20:10
Bug#1150270: yuzu: FTBFS: error: passing ‘const fmt::v11::formatter<Common::FS::SeekOrigin, char, void>’ as ‘this’ argument disc...
#86
Author: Sebastian Ramacher
Date: Wed, 07 Oct 2026 20:10
138 lines
10030 bytes
Source: yuzu
Version: 0-1734+ds-10
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher@debian.org

Dear maintainer,

yuzu FTBFS with the new fmtlib:

[1220/2601] /usr/bin/x86_64-linux-gnu-g++ -DARCHITECTURE_x86_64=1 -DBOOST_ASIO_DISABLE_CONCEPTS -DBOOST_CONTEXT_DYN_LINK="" -DBOOST_CONTEXT_EXPORT=EXPORT -DBOOST_CONTEXT_NO_LIB="" -DEXPERIMENTAL_KEY_INSTRUCTIONS -DFMT_SHARED -DNDEBUG -DYUZU_ENABLE_PORTABLE -DYUZU_UNIX=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/reproducible-path/yuzu-0-1734+ds/src/. -I/build/reproducible-path/yuzu-0-1734+ds/externals/./microprofile -isystem /usr/include/stb -isystem /usr/lib/llvm-21/include -g -Werror=clobbered -Werror=volatile-register-var -D__DEB_CANARY_CXXFLAGS_61b4a64be663682e8cb037d9719ad8cd__ -ffile-prefix-map=/build/reproducible-path/yuzu-0-1734+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -march=x86-64-v2 -D__DEB_CANARY_CPPFLAGS_61b4a64be663682e8cb037d9719ad8cd__ -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++20 -flto=auto -fno-fat-lto-objects -fwrapv -Werror=all -Werror=extra -Werror=missing-declarations -Werror=shadow -Werror=unused -Wno-attributes -Wno-invalid-offsetof -Wno-unused-parameter -Wno-missing-field-initializers -mcx16 -Wno-array-bounds -Wno-stringop-overread -Wno-stringop-overflow -Winvalid-pch -include /build/reproducible-path/yuzu-0-1734+ds/obj-x86_64-linux-gnu/src/common/CMakeFiles/common.dir/cmake_pch.hxx -MD -MT src/common/CMakeFiles/common.dir/fs/file.cpp.o -MF src/common/CMakeFiles/common.dir/fs/file.cpp.o.d -o src/common/CMakeFiles/common.dir/fs/file.cpp.o -c /build/reproducible-path/yuzu-0-1734+ds/src/common/fs/file.cpp
FAILED: [code=1] src/common/CMakeFiles/common.dir/fs/file.cpp.o 
/usr/bin/x86_64-linux-gnu-g++ -DARCHITECTURE_x86_64=1 -DBOOST_ASIO_DISABLE_CONCEPTS -DBOOST_CONTEXT_DYN_LINK="" -DBOOST_CONTEXT_EXPORT=EXPORT -DBOOST_CONTEXT_NO_LIB="" -DEXPERIMENTAL_KEY_INSTRUCTIONS -DFMT_SHARED -DNDEBUG -DYUZU_ENABLE_PORTABLE -DYUZU_UNIX=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/reproducible-path/yuzu-0-1734+ds/src/. -I/build/reproducible-path/yuzu-0-1734+ds/externals/./microprofile -isystem /usr/include/stb -isystem /usr/lib/llvm-21/include -g -Werror=clobbered -Werror=volatile-register-var -D__DEB_CANARY_CXXFLAGS_61b4a64be663682e8cb037d9719ad8cd__ -ffile-prefix-map=/build/reproducible-path/yuzu-0-1734+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -march=x86-64-v2 -D__DEB_CANARY_CPPFLAGS_61b4a64be663682e8cb037d9719ad8cd__ -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++20 -flto=auto -fno-fat-lto-objects -fwrapv -Werror=all -Werror=extra -Werror=missing-declarations -Werror=shadow -Werror=unused -Wno-attributes -Wno-invalid-offsetof -Wno-unused-parameter -Wno-missing-field-initializers -mcx16 -Wno-array-bounds -Wno-stringop-overread -Wno-stringop-overflow -Winvalid-pch -include /build/reproducible-path/yuzu-0-1734+ds/obj-x86_64-linux-gnu/src/common/CMakeFiles/common.dir/cmake_pch.hxx -MD -MT src/common/CMakeFiles/common.dir/fs/file.cpp.o -MF src/common/CMakeFiles/common.dir/fs/file.cpp.o.d -o src/common/CMakeFiles/common.dir/fs/file.cpp.o -c /build/reproducible-path/yuzu-0-1734+ds/src/common/fs/file.cpp
In file included from /usr/include/fmt/format.h:41,
                 from /build/reproducible-path/yuzu-0-1734+ds/src/./common/common_precompiled_headers.h:11,
                 from /build/reproducible-path/yuzu-0-1734+ds/src/common/precompiled_headers.h:6,
                 from /build/reproducible-path/yuzu-0-1734+ds/obj-x86_64-linux-gnu/src/common/CMakeFiles/common.dir/cmake_pch.hxx:5,
                 from <command-line>:
/usr/include/fmt/base.h: In instantiation of ‘static void fmt::v11::detail::value<Context>::format_custom(void*, fmt::v11::parse_context<typename Context::char_type>&, Context&) [with T = Common::FS::SeekOrigin; Formatter = fmt::v11::formatter<Common::FS::SeekOrigin, char, void>; Context = fmt::v11::context; typename Context::char_type = char]’:
/usr/include/fmt/base.h:2220:19:   required from ‘constexpr fmt::v11::detail::value<Context>::value(T&, fmt::v11::detail::custom_tag) [with T = const Common::FS::SeekOrigin; typename std::enable_if<has_formatter<T, typename Context::char_type>(), int>::type <anonymous> = 0; Context = fmt::v11::context]’
 2220 |     custom.format = format_custom<value_type, formatter<value_type, char_type>>;
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fmt/base.h:2200:65:   required from ‘constexpr fmt::v11::detail::value<Context>::value(T&) [with T = const Common::FS::SeekOrigin; typename std::enable_if<(fmt::v11::detail::use_formatter<T>::value || (!1)), int>::type <anonymous> = 0; Context = fmt::v11::context]’
 2200 |   FMT_CONSTEXPR20 FMT_INLINE value(T& x) : value(x, custom_tag()) {}
      |                                                                 ^
/usr/include/fmt/base.h:2773:20:   required from ‘constexpr fmt::v11::detail::format_arg_store<Context, NUM_ARGS, NUM_NAMED_ARGS, DESC> fmt::v11::make_format_args(T& ...) [with Context = context; T = {const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, const long int, const Common::FS::SeekOrigin, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}; int NUM_ARGS = 4; int NUM_NAMED_ARGS = 0; long long unsigned int DESC = 57149]’
 2773 |   return {{args...}};
      |                    ^
/build/reproducible-path/yuzu-0-1734+ds/src/./common/logging/log.h:34:44:   required from ‘void Common::Log::FmtLogMessage(Class, Level, const char*, unsigned int, const char*, const char*, const Args& ...) [with Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, long int, Common::FS::SeekOrigin, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}]’
   34 |                       fmt::make_format_args(args...));
      |                       ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/build/reproducible-path/yuzu-0-1734+ds/src/common/fs/file.cpp:437:9:   required from here
  437 |         LOG_ERROR(Common_Filesystem,
      |         ^~~~~~~~~
/usr/include/fmt/base.h:2240:29: error: passing ‘const fmt::v11::formatter<Common::FS::SeekOrigin, char, void>’ as ‘this’ argument discards qualifiers [-fpermissive]
 2240 |     ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
      |                    ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /build/reproducible-path/yuzu-0-1734+ds/src/./common/logging/log.h:11,
                 from /build/reproducible-path/yuzu-0-1734+ds/src/./common/assert.h:7,
                 from /build/reproducible-path/yuzu-0-1734+ds/src/./common/common_precompiled_headers.h:13:
/build/reproducible-path/yuzu-0-1734+ds/src/./common/logging/formatter.h:17:10: note:   in call to ‘decltype (ctx.out()) fmt::v11::formatter<T, typename std::enable_if<is_enum_v<T>, char>::type>::format(const T&, FormatContext&) [with FormatContext = fmt::v11::context; T = Common::FS::SeekOrigin; typename std::enable_if<is_enum_v<T>, char>::type = char; decltype (ctx.out()) = fmt::v11::basic_appender<char>]’
   17 |     auto format(const T& value, FormatContext& ctx) -> decltype(ctx.out()) {
      |          ^~~~~~

See
https://buildd.debian.org/status/fetch.php?pkg=yuzu&arch=amd64&ver=0-1734%2Bds-10%2Bb1&stamp=1791381825&raw=0
for details.

Cheers
-- 
Sebastian Ramacher
Bug#1150270: yuzu: diff for NMU version 0-1734+ds-10.1
#978
Author: Aron Xu
Date: Thu, 15 Oct 2026 16:30
191 lines
9938 bytes
--+QXXkw9Eo9TXR25H
Content-Type: multipart/mixed; boundary="LJE2A0yPRkOGIwA4"
Content-Disposition: inline


--LJE2A0yPRkOGIwA4
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline


Control: tags 1150270 + pending

Dear maintainer,

I've prepared an NMU for yuzu (versioned as 0-1734+ds-10.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should cancel it.

Regards.

Aron

--LJE2A0yPRkOGIwA4
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename="yuzu-0-1734+ds-10.1-nmu.diff"
Content-Transfer-Encoding: quoted-printable

diffstat for yuzu-0-1734+ds yuzu-0-1734+ds

 changelog                                 |    9=20
 patches/fmt-11.patch                      |  342 +++++++++++++++++++++++++=
+++++
 patches/initialize-dummy-flow-block.patch |   18 +
 patches/series                            |    2=20
 4 files changed, 371 insertions(+)

diff -Nru yuzu-0-1734+ds/debian/changelog yuzu-0-1734+ds/debian/changelog
--- yuzu-0-1734+ds/debian/changelog	2026-09-29 22:21:38.000000000 +0800
+++ yuzu-0-1734+ds/debian/changelog	2026-10-15 23:46:15.000000000 +0800
@@ -1,3 +1,12 @@
+yuzu (0-1734+ds-10.1) unstable; urgency=3Dmedium
+
+  * Non-maintainer upload.
+  * Fix build with fmtlib 11 by making custom formatters' format methods
+    const and including fmt/ranges.h for fmt::join (Closes: #1150270).
+  * Initialize the const dummy control-flow block to fix a GCC 16 build er=
ror.
+
+ -- Aron Xu <aron@debian.org>  Thu, 15 Oct 2026 23:46:15 +0800
+
 yuzu (0-1734+ds-10) unstable; urgency=3Dlow
=20
   * d/rules: make tzdb2nx version reproducible.
diff -Nru yuzu-0-1734+ds/debian/patches/fmt-11.patch yuzu-0-1734+ds/debian/=
patches/fmt-11.patch
--- yuzu-0-1734+ds/debian/patches/fmt-11.patch	1970-01-01 07:30:00.00000000=
0 +0730
+++ yuzu-0-1734+ds/debian/patches/fmt-11.patch	2026-10-13 15:00:45.00000000=
0 +0800
@@ -0,0 +1,342 @@
+Description: Fix custom formatting with fmt 11
+ fmt 11 invokes custom formatters through a const reference, so their
+ format members must be const. Include fmt/ranges.h for fmt::join, which
+ is no longer provided by fmt/format.h.
+Bug-Debian: https://bugs.debian.org/1150270
+Forwarded: no
+Last-Update: 2026-10-13
+Author: Aron Xu <aron@debian.org>
+
+Index: yuzu-0-1734+ds/src/common/logging/formatter.h
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
+--- yuzu-0-1734+ds.orig/src/common/logging/formatter.h
++++ yuzu-0-1734+ds/src/common/logging/formatter.h
+@@ -14,7 +14,7 @@ template <typename T>
+ struct fmt::formatter<T, std::enable_if_t<std::is_enum_v<T>, char>>
+     : formatter<std::underlying_type_t<T>> {
+     template <typename FormatContext>
+-    auto format(const T& value, FormatContext& ctx) -> decltype(ctx.out()=
) {
++    auto format(const T& value, FormatContext& ctx) const -> decltype(ctx=
=2Eout()) {
+         return fmt::formatter<std::underlying_type_t<T>>::format(
+             static_cast<std::underlying_type_t<T>>(value), ctx);
+     }
+Index: yuzu-0-1734+ds/src/common/typed_address.h
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
+--- yuzu-0-1734+ds.orig/src/common/typed_address.h
++++ yuzu-0-1734+ds/src/common/typed_address.h
+@@ -262,7 +262,7 @@ struct fmt::formatter<Common::PhysicalAd
+         return ctx.begin();
+     }
+     template <typename FormatContext>
+-    auto format(const Common::PhysicalAddress& addr, FormatContext& ctx) {
++    auto format(const Common::PhysicalAddress& addr, FormatContext& ctx) =
const {
+         return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.G=
etValue()));
+     }
+ };
+@@ -273,7 +273,7 @@ struct fmt::formatter<Common::ProcessAdd
+         return ctx.begin();
+     }
+     template <typename FormatContext>
+-    auto format(const Common::ProcessAddress& addr, FormatContext& ctx) {
++    auto format(const Common::ProcessAddress& addr, FormatContext& ctx) c=
onst {
+         return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.G=
etValue()));
+     }
+ };
+@@ -284,7 +284,7 @@ struct fmt::formatter<Common::VirtualAdd
+         return ctx.begin();
+     }
+     template <typename FormatContext>
+-    auto format(const Common::VirtualAddress& addr, FormatContext& ctx) {
++    auto format(const Common::VirtualAddress& addr, FormatContext& ctx) c=
onst {
+         return fmt::format_to(ctx.out(), "{:#x}", static_cast<u64>(addr.G=
etValue()));
+     }
+ };
+Index: yuzu-0-1734+ds/src/core/arm/dynarmic/dynarmic_cp15.cpp
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
+--- yuzu-0-1734+ds.orig/src/core/arm/dynarmic/dynarmic_cp15.cpp
++++ yuzu-0-1734+ds/src/core/arm/dynarmic/dynarmic_cp15.cpp
+@@ -22,7 +22,7 @@ struct fmt::formatter<Dynarmic::A32::Cop
+         return ctx.begin();
+     }
+     template <typename FormatContext>
+-    auto format(const Dynarmic::A32::CoprocReg& reg, FormatContext& ctx) {
++    auto format(const Dynarmic::A32::CoprocReg& reg, FormatContext& ctx) =
const {
+         return fmt::format_to(ctx.out(), "cp{}", static_cast<size_t>(reg)=
);
+     }
+ };
+Index: yuzu-0-1734+ds/src/core/hle/service/psc/time/common.h
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
+--- yuzu-0-1734+ds.orig/src/core/hle/service/psc/time/common.h
++++ yuzu-0-1734+ds/src/core/hle/service/psc/time/common.h
+@@ -167,7 +167,7 @@ constexpr inline Result GetSpanBetweenTi
+ template <>
+ struct fmt::formatter<Service::PSC::Time::TimeType> : fmt::formatter<fmt:=
:string_view> {
+     template <typename FormatContext>
+-    auto format(Service::PSC::Time::TimeType type, FormatContext& ctx) {
++    auto format(Service::PSC::Time::TimeType type, FormatContext& ctx) co=
nst {
+         const string_view name =3D [type] {
+             using Service::PSC::Time::TimeType;
+             switch (type) {
+Index: yuzu-0-1734+ds/src/shader_recompiler/backend/glasm/reg_alloc.h
+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
+--- yuzu-0-1734+ds.orig/src/shader_recompiler/backend/glasm/reg_alloc.h
++++ yuzu-0-1734+ds/src/shader_recompiler/backend/glasm/reg_alloc.h
+@@ -184,7 +184,7 @@ struct fmt::formatter<Shader::Backend::G
+         return ctx.begin();
+     }
+     template <typename FormatContext>
+-    auto format(Shader::Backend::GLASM::Id id, FormatContext& ctx) {
++    auto format(Shader::Backend::GLASM::Id id, FormatContext& ctx) const {
+         return Shader::Backend::GLASM::FormatTo<true>(ctx, id);
+     }
+ };
+@@ -195,7 +195,7 @@ struct fmt::formatter<Shader::Backend::G
+         return ctx.begin();
+     }
+     template <typename FormatContext>
+-    auto format(const Shader::Backend::GLASM::Register& value, FormatCont=
ext& ctx) {
++    auto format(const Shader::Backend::GLASM::Register& value, FormatCont=
ext& ctx) const {
+         if (value.type !=3D Shader::Backend::GLASM::Type::Register) {
+             throw Shader::InvalidArgument("Register value type is not reg=
ister");
+         }
+@@ -209,7 +209,7 @@ struct fmt::formatter<Shader::Backend::G
+         return ctx.begin();
+     }
+     templa
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads