Skip to content

[Bug]: Cygwin builds are broken #28712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
QuLogic opened this issue Aug 13, 2024 · 0 comments
Open

[Bug]: Cygwin builds are broken #28712

QuLogic opened this issue Aug 13, 2024 · 0 comments

Comments

@QuLogic
Copy link
Member

QuLogic commented Aug 13, 2024

Bug summary

See https://github.com/matplotlib/matplotlib/actions/runs/10361240536/job/28681178039#step:12:209.

This is mostly just a tracking issue to point people to; the error is in compiling contourpy, which is tracked here: contourpy/contourpy#409 but due to a pybind11 issue here: pybind/pybind11#5224

Code for reproduction

n/a

Actual outcome

      ccache c++ -Isrc/_contourpy.cpython-39-x86_64-cygwin.dll.p -Isrc -I../src -I/usr/include/python3.9 -I/usr/local/lib/python3.9/site-packages/pybind11/include -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -DCONTOURPY_VERSION=1.2.1 -MD -MQ src/_contourpy.cpython-39-x86_64-cygwin.dll.p/wrap.cpp.o -MF src/_contourpy.cpython-39-x86_64-cygwin.dll.p/wrap.cpp.o.d -o src/_contourpy.cpython-39-x86_64-cygwin.dll.p/wrap.cpp.o -c ../src/wrap.cpp
      In file included from /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/specfun.h:45,
                       from /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/cmath:1935,
                       from /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/math.h:36,
                       from /usr/include/python3.9/pyport.h:205,
                       from /usr/include/python3.9/Python.h:50,
                       from /usr/local/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/common.h:274,
                       from /usr/local/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
                       from /usr/local/lib/python3.9/site-packages/pybind11/include/pybind11/detail/class.h:12,
                       from /usr/local/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:13,
                       from ../src/common.h:4,
                       from ../src/output_array.h:4,
                       from ../src/chunk_local.h:4,
                       from ../src/base.h:13,
                       from ../src/base_impl.h:4,
                       from ../src/wrap.cpp:1:
      In static member function 'static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = pybind11::detail::type_info* const; _Up = pybind11::detail::type_info*; bool _IsMove = false]',
          inlined from '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = pybind11::detail::type_info* const*; _OI = pybind11::detail::type_info**]' at /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/stl_algobase.h:501:30,
          inlined from '_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = pybind11::detail::type_info* const*; _OI = pybind11::detail::type_info**]' at /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/stl_algobase.h:528:42,
          inlined from '_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = pybind11::detail::type_info* const*; _OI = pybind11::detail::type_info**]' at /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/stl_algobase.h:535:31,
          inlined from '_OI std::copy(_II, _II, _OI) [with _II = pybind11::detail::type_info* const*; _OI = pybind11::detail::type_info**]' at /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/stl_algobase.h:626:7,
          inlined from 'static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = pybind11::detail::type_info* const*; _ForwardIterator = pybind11::detail::type_info**]' at /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/stl_uninitialized.h:147:27,
          inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = pybind11::detail::type_info* const*; _ForwardIterator = pybind11::detail::type_info**]' at /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/stl_uninitialized.h:185:15,
          inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = pybind11::detail::type_info* const*; _ForwardIterator = pybind11::detail::type_info**; _Tp = pybind11::detail::type_info*]' at /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/stl_uninitialized.h:372:37,
          inlined from 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = pybind11::detail::type_info* const*; _Tp = pybind11::detail::type_info*; _Alloc = std::allocator<pybind11::detail::type_info*>]' at /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/vector.tcc:339:35,
          inlined from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = pybind11::detail::type_info*; _Alloc = std::allocator<pybind11::detail::type_info*>]' at /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/stl_vector.h:787:21,
          inlined from 'pybind11::detail::generic_type::initialize(const pybind11::detail::type_record&)::<lambda(pybind11::detail::internals&)>' at /usr/local/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:1434:75,
          inlined from 'decltype (cb(pybind11::detail::get_internals())) pybind11::detail::with_internals(const F&) [with F = generic_type::initialize(const pybind11::detail::type_record&)::<lambda(internals&)>]' at /usr/local/lib/python3.9/site-packages/pybind11/include/pybind11/detail/../detail/internals.h:626:14,
          inlined from 'void pybind11::detail::generic_type::initialize(const pybind11::detail::type_record&)' at /usr/local/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:1426:23:
      /usr/lib/gcc/x86_64-pc-cygwin/12/include/c++/bits/stl_algobase.h:434:30: error: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' forming offset 8 is out of the bounds [0, 8] of object '<anonymous>' with type 'pybind11::detail::type_info* const [1]' [-Werror=array-bounds]
        434 |             __builtin_memmove(__result, __first, sizeof(_Tp) * _Num);
            |             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/local/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h: In member function 'void pybind11::detail::generic_type::initialize(const pybind11::detail::type_record&)':
      /usr/local/lib/python3.9/site-packages/pybind11/include/pybind11/pybind11.h:1434:75: note: '<anonymous>' declared here
       1434 |             internals.registered_types_py[(PyTypeObject *) m_ptr] = {tinfo};
            |                                                                           ^
      cc1plus: all warnings being treated as errors
      ninja: build stopped: subcommand failed.
      [end of output]

Expected outcome

Job compiles.

Additional information

Note that Cygwin is disabled on main as we require Python 3.10 there and only 3.9 is available on Cygwin still.

Operating system

No response

Matplotlib Version

v3.9.x branch

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

git checkout

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

No branches or pull requests

1 participant