Skip to content

failed to build 2025.10.16 release against fmt 12.1.0 #1825

@chenrui333

Description

@chenrui333

👋 seeing regression build failure with 2025.10.16 release against fmt 12.1.0

  In file included from /private/tmp/vcpkg-20251030-63553-iv56vj/vcpkg-tool-2025-10-16/src/vcpkg/base/checks.cpp:1:
  In file included from /private/tmp/vcpkg-20251030-63553-iv56vj/vcpkg-tool-2025-10-16/include/vcpkg/base/checks.h:3:
  /private/tmp/vcpkg-20251030-63553-iv56vj/vcpkg-tool-2025-10-16/include/vcpkg/base/lineinfo.h:22:1: error: reference to 'formatter' is ambiguous
     22 | VCPKG_FORMAT_WITH_TO_STRING(vcpkg::LineInfo);
        | ^
  /private/tmp/vcpkg-20251030-63553-iv56vj/vcpkg-tool-2025-10-16/include/vcpkg/base/fwd/fmt.h:28:17: note: expanded from macro 'VCPKG_FORMAT_WITH_TO_STRING'
     28 |     struct fmt::formatter<Type, Char, void> : fmt::formatter<std::string, Char, void>                                  \
        |                 ^
  /private/tmp/vcpkg-20251030-63553-iv56vj/vcpkg-tool-2025-10-16/include/vcpkg/base/fwd/fmt.h:8:16: note: candidate found by name lookup is 'fmt::v11::formatter'
      8 |         struct formatter;
        |                ^
  /opt/homebrew/include/fmt/base.h:655:8: note: candidate found by name lookup is 'fmt::v12::formatter'
    655 | struct formatter {
        |        ^

relates to Homebrew/homebrew-core#251812

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions