#1150444 kylin-ai-vector-engine: FTBFS: /usr/include/fmt/compile.h:169:25: error: call of overloaded ‘write<char>(std::back_insert_iterator<std::__cxx11::basic_string<char> >&, const folly::Range<const char*>&)’ is ambiguous

#1150444#5
Date:
2026-10-09 18:13:37 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:kylin-ai-vector-engine, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
      |       ~~~~~~~~~~~~~~~~~~
  170 |           "nullptr_t should be passed if you want {} to be default constructed"),
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  171 |       folly::StringPiece(demangle(type)));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fmt/compile.h:169:25: error: call of overloaded ‘write<char>(std::back_insert_iterator<std::__cxx11::basic_string<char> >&, const folly::Range<const char*>&)’ is ambiguous
  169 |       return write<Char>(out, arg);
      |              ~~~~~~~~~~~^~~~~~~~~~
  • there are 2 candidates
In file included from /<<PKGBUILDDIR>>/thirdparty/folly/folly/FBString.h:34,
                 from /<<PKGBUILDDIR>>/thirdparty/folly/folly/Demangle.h:19,
                 from /<<PKGBUILDDIR>>/thirdparty/folly/folly/Conv.h:124,
                 from /<<PKGBUILDDIR>>/thirdparty/folly/folly/Exception.h:25,
                 from /<<PKGBUILDDIR>>/thirdparty/folly/folly/Singleton.h:126,
                 from /<<PKGBUILDDIR>>/thirdparty/folly/folly/Singleton.cpp:17:
    • candidate 1: ‘constexpr OutputIt fmt::v11::detail::write(OutputIt, const T&) [with Char = char; OutputIt = std::back_insert_iterator<std::__cxx11::basic_string<char> >; T = folly::Range<const char*>; typename std::enable_if<has_to_string_view<T>::value, int>::type <anonymous> = 0]’
      /usr/include/fmt/format.h:3390:16:
       3390 | constexpr auto write(OutputIt out, const T& value) -> OutputIt {
            |                ^~~~~
    • candidate 2: ‘constexpr OutputIt fmt::v11::detail::write(OutputIt, const T&) [with Char = char; OutputIt = std::back_insert_iterator<std::__cxx11::basic_string<char> >; T = folly::Range<const char*>; typename std::enable_if<((type_constant<decltype (type_mapper<Char>::map(declval<T&>())), Char>::value == type::custom_type) && (! std::is_fundamental<T>::value)), int>::type <anonymous> = 0]’
      /usr/include/fmt/format.h:3439:20:
       3439 | FMT_CONSTEXPR auto write(OutputIt out, const T& value) -> OutputIt {
            |                    ^~~~~
make[3]: *** [thirdparty/folly/CMakeFiles/folly_base.dir/build.make:334: thirdparty/folly/CMakeFiles/folly_base.dir/folly/Singleton.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1163: thirdparty/folly/CMakeFiles/folly_base.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j1 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------