← Back to team overview

kicad-developers team mailing list archive

Re: Build error.

 

Thanks!

On 2/27/21 8:54 AM, Jon Evans wrote:
> Should be fixed now.
> 
> On Sat, Feb 27, 2021 at 7:48 AM Wayne Stambaugh <stambaughw@xxxxxxxxx
> <mailto:stambaughw@xxxxxxxxx>> wrote:
> 
>     Looks like a commit in the last 24 hours broke KiCad builds with Python
>     enabled.  Here is the build error on Linux using gcc 9.3.0.
> 
>     In file included from
>     /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h:33,
>                      from /usr/include/c++/9/bits/allocator.h:46,
>                      from /usr/include/c++/9/string:41,
>                      from /usr/include/c++/9/stdexcept:39,
>                      from
>     /home/wayne/build/kicad/trunk-debug-gtk3-phoenix-occt/pcbnew/pcbnew_wrap.cxx:3006:
>     /usr/include/c++/9/ext/new_allocator.h: In instantiation of ‘void
>     __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up =
>     std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >; _Args = {const
>     std::pair<ZONE* const, std::unique_ptr<DRC_RTREE,
>     std::default_delete<DRC_RTREE> > >&}; _Tp =
>     std::_Rb_tree_node<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE>
>     > >]’:
>     /usr/include/c++/9/bits/alloc_traits.h:482:2:   required from ‘static
>     void std::allocator_traits<std::allocator<_CharT>
>     >::construct(std::allocator_traits<std::allocator<_CharT>
>     >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::pair<ZONE*
>     const, std::unique_ptr<DRC_RTREE> >; _Args = {const std::pair<ZONE*
>     const, std::unique_ptr<DRC_RTREE, std::default_delete<DRC_RTREE> > >&};
>     _Tp = std::_Rb_tree_node<std::pair<ZONE* const,
>     std::unique_ptr<DRC_RTREE> > >;
>     std::allocator_traits<std::allocator<_CharT> >::allocator_type =
>     std::allocator<std::_Rb_tree_node<std::pair<ZONE* const,
>     std::unique_ptr<DRC_RTREE> > > >]’
>     /usr/include/c++/9/bits/stl_tree.h:614:32:   required from ‘void
>     std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
>     _Alloc>::_M_construct_node(std::_Rb_tree<_Key, _Val, _KeyOfValue,
>     _Compare, _Alloc>::_Link_type, _Args&& ...) [with _Args = {const
>     std::pair<ZONE* const, std::unique_ptr<DRC_RTREE,
>     std::default_delete<DRC_RTREE> > >&}; _Key = ZONE*; _Val =
>     std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >; _KeyOfValue =
>     std::_Select1st<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> > >;
>     _Compare = std::less<ZONE*>; _Alloc = std::allocator<std::pair<ZONE*
>     const, std::unique_ptr<DRC_RTREE> > >; std::_Rb_tree<_Key, _Val,
>     _KeyOfValue, _Compare, _Alloc>::_Link_type =
>     std::_Rb_tree_node<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE>
>     > >*]’
>     /usr/include/c++/9/bits/stl_tree.h:487:3:   required from
>     ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue,
>     _Compare, _Alloc>::_Reuse_or_alloc_node::operator()(_Arg&&) [with _Arg =
>     const std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >&; _Key =
>     ZONE*; _Val = std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >;
>     _KeyOfValue = std::_Select1st<std::pair<ZONE* const,
>     std::unique_ptr<DRC_RTREE> > >; _Compare = std::less<ZONE*>; _Alloc =
>     std::allocator<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> > >;
>     std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type =
>     std::_Rb_tree_node<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE>
>     > >*]’
>     /usr/include/c++/9/bits/stl_tree.h:658:33:   required from
>     ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue,
>     _Compare, _Alloc>::_M_clone_node(std::_Rb_tree<_Key, _Val, _KeyOfValue,
>     _Compare, _Alloc>::_Const_Link_type, _NodeGen&) [with _NodeGen =
>     std::_Rb_tree<ZONE*, std::pair<ZONE* const, std::unique_ptr<DRC_RTREE>
>     >, std::_Select1st<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >
>     >, std::less<ZONE*>, std::allocator<std::pair<ZONE* const,
>     std::unique_ptr<DRC_RTREE> > > >::_Reuse_or_alloc_node; _Key = ZONE*;
>     _Val = std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >; _KeyOfValue
>     = std::_Select1st<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> > >;
>     _Compare = std::less<ZONE*>; _Alloc = std::allocator<std::pair<ZONE*
>     const, std::unique_ptr<DRC_RTREE> > >; std::_Rb_tree<_Key, _Val,
>     _KeyOfValue, _Compare, _Alloc>::_Link_type =
>     std::_Rb_tree_node<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >
>     >*; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
>     _Alloc>::_Const_Link_type = const std::_Rb_tree_node<std::pair<ZONE*
>     const, std::unique_ptr<DRC_RTREE> > >*]’
>     /usr/include/c++/9/bits/stl_tree.h:1875:13:   required from
>     ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue,
>     _Compare, _Alloc>::_M_copy(std::_Rb_tree<_Key, _Val, _KeyOfValue,
>     _Compare, _Alloc>::_Const_Link_type, std::_Rb_tree<_Key, _Val,
>     _KeyOfValue, _Compare, _Alloc>::_Base_ptr, _NodeGen&) [with _NodeGen =
>     std::_Rb_tree<ZONE*, std::pair<ZONE* const, std::unique_ptr<DRC_RTREE>
>     >, std::_Select1st<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >
>     >, std::less<ZONE*>, std::allocator<std::pair<ZONE* const,
>     std::unique_ptr<DRC_RTREE> > > >::_Reuse_or_alloc_node; _Key = ZONE*;
>     _Val = std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >; _KeyOfValue
>     = std::_Select1st<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> > >;
>     _Compare = std::less<ZONE*>; _Alloc = std::allocator<std::pair<ZONE*
>     const, std::unique_ptr<DRC_RTREE> > >; std::_Rb_tree<_Key, _Val,
>     _KeyOfValue, _Compare, _Alloc>::_Link_type =
>     std::_Rb_tree_node<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >
>     >*; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
>     _Alloc>::_Const_Link_type = const std::_Rb_tree_node<std::pair<ZONE*
>     const, std::unique_ptr<DRC_RTREE> > >*; std::_Rb_tree<_Key, _Val,
>     _KeyOfValue, _Compare, _Alloc>::_Base_ptr = std::_Rb_tree_node_base*]’
>     /usr/include/c++/9/bits/stl_tree.h:901:15:   required from
>     ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue,
>     _Compare, _Alloc>::_M_copy(const std::_Rb_tree<_Key, _Val, _KeyOfValue,
>     _Compare, _Alloc>&, _NodeGen&) [with _NodeGen = std::_Rb_tree<ZONE*,
>     std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >,
>     std::_Select1st<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> > >,
>     std::less<ZONE*>, std::allocator<std::pair<ZONE* const,
>     std::unique_ptr<DRC_RTREE> > > >::_Reuse_or_alloc_node; _Key = ZONE*;
>     _Val = std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> >; _KeyOfValue
>     = std::_Select1st<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> > >;
>     _Compare = std::less<ZONE*>; _Alloc = std::allocator<std::pair<ZONE*
>     const, std::unique_ptr<DRC_RTREE> > >; std::_Rb_tree<_Key, _Val,
>     _KeyOfValue, _Compare, _Alloc>::_Link_type =
>     std::_Rb_tree_node<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE>
>     > >*]’
>     /usr/include/c++/9/bits/stl_tree.h:1783:16:   required from
>     ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&
>     std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
>     _Alloc>::operator=(const std::_Rb_tree<_Key, _Val, _KeyOfValue,
>     _Compare, _Alloc>&) [with _Key = ZONE*; _Val = std::pair<ZONE* const,
>     std::unique_ptr<DRC_RTREE> >; _KeyOfValue =
>     std::_Select1st<std::pair<ZONE* const, std::unique_ptr<DRC_RTREE> > >;
>     _Compare = std::less<ZONE*>; _Alloc = std::allocator<std::pair<ZONE*
>     const, std::unique_ptr<DRC_RTREE> > >]’
>     /usr/include/c++/9/bits/stl_map.h:100:11:   required from here
>     /usr/include/c++/9/ext/new_allocator.h:145:20: error: use of deleted
>     function ‘constexpr std::pair<_T1, _T2>::pair(const std::pair<_T1,
>     _T2>&) [with _T1 = ZONE* const; _T2 = std::unique_ptr<DRC_RTREE>]’
>       145 |  noexcept(noexcept(::new((void *)__p)
>           |                    ^~~~~~~~~~~~~~~~~~
>       146 |        _Up(std::forward<_Args>(__args)...)))
>           |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
>                      from /usr/include/c++/9/bits/char_traits.h:39,
>                      from /usr/include/c++/9/string:40,
>                      from /usr/include/c++/9/stdexcept:39,
>                      from
>     /home/wayne/build/kicad/trunk-debug-gtk3-phoenix-occt/pcbnew/pcbnew_wrap.cxx:3006:
>     /usr/include/c++/9/bits/stl_pair.h:303:17: note: ‘constexpr
>     std::pair<_T1, _T2>::pair(const std::pair<_T1, _T2>&) [with _T1 = ZONE*
>     const; _T2 = std::unique_ptr<DRC_RTREE>]’ is implicitly deleted because
>     the default definition would be ill-formed:
>       303 |       constexpr pair(const pair&) = default;
>           |                 ^~~~
>     /usr/include/c++/9/bits/stl_pair.h:303:17: error: use of deleted
>     function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const
>     std::unique_ptr<_Tp, _Dp>&) [with _Tp = DRC_RTREE; _Dp =
>     std::default_delete<DRC_RTREE>]’
>     In file included from /usr/include/c++/9/memory:80,
>                      from
>     /home/wayne/src/kicad-trunk/include/macros_swig.h:38,
>                      from
>     /home/wayne/build/kicad/trunk-debug-gtk3-phoenix-occt/pcbnew/pcbnew_wrap.cxx:5125:
>     /usr/include/c++/9/bits/unique_ptr.h:414:7: note: declared here
>       414 |       unique_ptr(const unique_ptr&) = delete;
>           |       ^~~~~~~~~~
>     cc1plus: warning: unrecognized command line option ‘-Wno-everything’
>     make[2]: ***
>     [pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/build.make:3724:
>     pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/pcbnew_wrap.cxx.o] Error 1
>     make[1]: *** [CMakeFiles/Makefile2:3366:
>     pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/all] Error 2
>     make: *** [Makefile:163: all] Error 2
> 
>     _______________________________________________
>     Mailing list: https://launchpad.net/~kicad-developers
>     <https://launchpad.net/~kicad-developers>
>     Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>     <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>     Unsubscribe : https://launchpad.net/~kicad-developers
>     <https://launchpad.net/~kicad-developers>
>     More help   : https://help.launchpad.net/ListHelp
>     <https://help.launchpad.net/ListHelp>
> 


Follow ups

References