← Back to team overview

kicad-developers team mailing list archive

Python scripting build broken on windows.

 

One of the last couple of patches this morning broke the python
scripting build on windows.  I'm getting the following error (and yes I
deleted pcbnew_wrap in an attempt to fix the issue):

[ 84%] Building CXX object
pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/pcbnew_wrap.cxx.obj
C:/msys64/home/wstambaugh/build32/kicad/trunk-release/pcbnew/pcbnew_wrap.cxx:
In function 'PyObject* _wrap_GetNewConfig(PyObject*, PyObject*)':
C:/msys64/home/wstambaugh/build32/kicad/trunk-release/pcbnew/pcbnew_wrap.cxx:23565:132:
error: use of deleted function 'std::unique_ptr<_Tp,
_Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp =
wxConfigBase; _Dp = std::default_delete<wxConfigBase>]'
   resultobj = SWIG_NewPointerObj((new std::unique_ptr< wxConfigBase
>(static_cast< const std::unique_ptr< wxConfigBase >& >(result))),
SWIGTYPE_p_std__unique_ptrT_wxConfigBase_t, SWIG_POINTER_OWN |  0 );

                                                           ^
C:/msys64/home/wstambaugh/build32/kicad/trunk-release/pcbnew/pcbnew_wrap.cxx:1187:89:
note: in definition of macro 'SWIG_NewPointerObj'
 #define SWIG_NewPointerObj(ptr, type, flags)
SWIG_Python_NewPointerObj(NULL, ptr, type, flags)

                ^~~
In file included from C:/msys64/mingw32/include/c++/7.4.0/memory:80:0,
                 from
C:/msys64/home/wstambaugh/src/kicad-trunk/include/macros.h:37,
                 from
C:/msys64/home/wstambaugh/build32/kicad/trunk-release/pcbnew/pcbnew_wrap.cxx:5411:
C:/msys64/mingw32/include/c++/7.4.0/bits/unique_ptr.h:388:7: note:
declared here
       unique_ptr(const unique_ptr&) = delete;
       ^~~~~~~~~~
C:/msys64/home/wstambaugh/build32/kicad/trunk-release/pcbnew/pcbnew_wrap.cxx:
In instantiation of 'SwigValueWrapper<T>&
SwigValueWrapper<T>::operator=(const T&) [with T =
std::unique_ptr<wxConfigBase>]':
C:/msys64/home/wstambaugh/build32/kicad/trunk-release/pcbnew/pcbnew_wrap.cxx:23564:48:
  required from here
C:/msys64/home/wstambaugh/build32/kicad/trunk-release/pcbnew/pcbnew_wrap.cxx:32:65:
error: use of deleted function 'std::unique_ptr<_Tp,
_Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp =
wxConfigBase; _Dp = std::default_delete<wxConfigBase>]'
   SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new
T(t)); pointer = tmp; return *this; }
                                                                 ^~~~~~~~
In file included from C:/msys64/mingw32/include/c++/7.4.0/memory:80:0,
                 from
C:/msys64/home/wstambaugh/src/kicad-trunk/include/macros.h:37,
                 from
C:/msys64/home/wstambaugh/build32/kicad/trunk-release/pcbnew/pcbnew_wrap.cxx:5411:
C:/msys64/mingw32/include/c++/7.4.0/bits/unique_ptr.h:388:7: note:
declared here
       unique_ptr(const unique_ptr&) = delete;
       ^~~~~~~~~~
make[2]: ***
[pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/build.make:3561:
pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/pcbnew_wrap.cxx.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:1775:
pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Cheers,

Wayne


Follow ups