Skip to content

pybind11 seems broken on MacOS/homebrew starting today? #1929

Description

@lgritz

Just last night (basically, since Homebrew bumped to pybind11 v2.4.0), my project started failing with the following error message:

/usr/local/include/pybind11/numpy.h:157:23: error: expression is not an integral constant expression
        NPY_UINT64_ = platform_lookup<std::uint64_t, unsigned long, unsigned long long, unsigned int>(
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/pybind11/numpy.h:121:12: note: non-constexpr function 'get<0, int, int, int>' cannot be used in a constant expression
    return std::get<code_index::value>(std::make_tuple(codes...));
           ^

I verified that it builds properly with v2.3.0, v2.2.4 (my previous default that my build system downloads automatically if no system install is found). I also checked v2.4.1 and it exhibits the same failure.

Ring a bell? Is there something I should be fixing on my end?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions