Skip to content

Watchman fails to build with fmt 8.1.0+ #2717

Description

@carlocab

Hi there, we're trying to update Homebrew's version of Watchman at Homebrew/homebrew-core#92869. We were last able to build Watchman against fmt 8.0.1, and it now no longer builds since Homebrew's fmt was updated to 8.1.0. The failure occurs on multiple versions of macOS and on Linux.

The Watchman build fails with this error:

  In file included from /tmp/watchman-20220110-77236-142y8ko/watchman-2022.01.10.00/watchman/PendingCollection.cpp:8:
  In file included from /tmp/watchman-20220110-77236-142y8ko/watchman-2022.01.10.00/watchman/PendingCollection.h:11:
  In file included from /opt/homebrew/include/folly/futures/Promise.h:23:
  In file included from /opt/homebrew/include/folly/futures/detail/Core.h:27:
  In file included from /opt/homebrew/include/folly/Executor.h:25:
  In file included from /opt/homebrew/include/folly/Range.h:45:
  In file included from /opt/homebrew/include/fmt/format.h:48:
  /opt/homebrew/include/fmt/core.h:1722:3: error: static_assert failed due to requirement 'formattable_pointer' "Formatting of non-void pointers is disallowed."
    static_assert(formattable_pointer,
    ^             ~~~~~~~~~~~~~~~~~~~

Complete build logs available at https://github.com/Homebrew/homebrew-core/actions/runs/1680135847.

I tried to follow the call stack (see the log after the snippet I pasted above), and it doesn't look to me that Watchman is passing any pointers at all to fmt. However, I don't really do C++, and I'm unfamiliar with Watchman's codebase, so I could be mistaken.

Any assistance trying to resolve this would be appreciated. Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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