Skip to content

macOS Boost.Python build fails due to NumPy 2.x incompatibility #233

@zychen8

Description

@zychen8

I built MoonRay on macOS Sequoia. The dependency build (Step 4) failed when compiling Boost.Python because the bundled Boost version is not compatible with NumPy 2.x.

Manually replaced reinterpret_cast<PyArray_Descr*>(ptr())->elsize by PyDataType_ELSIZE(reinterpret_cast<PyArray_Descr*>(ptr())) in /Applications/MoonRay/build-deps/Boost-prefix/src/Boost/libs/python/src/numpy/dtype.cpp. It worked and built successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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