← Back to team overview

kicad-developers team mailing list archive

Re: Build failure of 5.1.2 in Fedora rawhide

 

Here is the top of pcbnew.py, and I'll paste this into the bug report:

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.0
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
    raise RuntimeError('Python 2.7 or later required')



On 5/8/19 9:42 AM, Steven A. Falco wrote:
> Yes.  swig-4.0.0-1.fc31.x86_64
> 
> On 5/8/19 9:40 AM, Nick Østergaard wrote:
>> Is the swig version 4.0.0?
>>
>> ons. 8. maj 2019 15.39 skrev Steven A. Falco <stevenfalco@xxxxxxxxx <mailto:stevenfalco@xxxxxxxxx>>:
>>
>>     I've started getting a build error on 5.1.2 in Fedora rawhide.  Here is part of the log:
>>
>>     [ 68%] Generating pcbnew_wrap.cxx, pcbnew.py
>>     cd /builddir/build/BUILD/kicad-5.1.2/pcbnew && /usr/bin/cmake -E make_directory /builddir/build/BUILD/kicad-5.1.2/pcbnew/docstrings
>>     cd /builddir/build/BUILD/kicad-5.1.2/pcbnew && /usr/bin/cmake -E touch /builddir/build/BUILD/kicad-5.1.2/pcbnew/docstrings/docstrings.i
>>     cd /builddir/build/BUILD/kicad-5.1.2/pcbnew && /usr/bin/swig -python -c++ -outdir /builddir/build/BUILD/kicad-5.1.2/pcbnew -I/builddir/build/BUILD/kicad-5.1.2/pcbnew -I/builddir/build/BUILD/kicad-5.1.2/pcbnew/../include -I/builddir/build/BUILD/kicad-5.1.2/pcbnew/../scripting -I/builddir/build/BUILD/kicad-5.1.2/pcbnew/../common/swig -I -DHAVE_STDINT_H -DKICAD_SCRIPTING -DKICAD_SCRIPTING_MODULES -DKICAD_SCRIPTING_PYTHON3 -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SCRIPTING_WXPYTHON_PHOENIX -DKICAD_SCRIPTING_ACTION_MENU -DKICAD_SPICE -DKICAD_USE_OCE -DGLM_FORCE_CTOR_INIT -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DUSE_WX_OVERLAY -DPCBNEW -o /builddir/build/BUILD/kicad-5.1.2/pcbnew/pcbnew_wrap.cxx swig/pcbnew.i
>>     cd /builddir/build/BUILD/kicad-5.1.2/pcbnew && /usr/bin/python3 /builddir/build/BUILD/kicad-5.1.2/scripting/build_tools/fix_swig_imports.py /builddir/build/BUILD/kicad-5.1.2/pcbnew/pcbnew.py
>>     Error: the swig import helper was not fixed, check /builddir/build/BUILD/kicad-5.1.2/pcbnew/pcbnew.py
>>            and fix this script: fix_swig_imports.py
>>
>>     I've uploaded the complete build log here:
>>
>>     https://www.dropbox.com/s/1c822nrmpi9go2x/build.log?dl=0
>>
>>     If a patch can be generated for this, I'll apply it.  Or if folks prefer to wait until 5.1.3 (if any), then that would be fine too.
>>
>>     There are also some warnings in the build log that I uploaded, so I'll paste them in here for easy reference, in case they are of interest:
>>
>>     BUILDSTDERR: /builddir/build/BUILD/kicad-5.1.2/pcbnew/../include/common.h:380: Warning 317: Specialization of non-template 'less'.
>>     BUILDSTDERR: /builddir/build/BUILD/kicad-5.1.2/pcbnew/../include/eda_text.h:45: Warning 401: Nothing known about base class 'std::mutex'. Ignored.
>>     BUILDSTDERR: class_board.h:51: Warning 315: Nothing known about 'std::unique_ptr'.
>>
>>     BUILDSTDERR: /builddir/build/BUILD/kicad-5.1.2/polygon/clipper.cpp:892:38: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct ClipperLib::TEdge'; use assignment or value-initialization instead [-Wclass-memaccess]
>>     BUILDSTDERR:   892 |     std::memset( e, 0, sizeof(TEdge) );
>>
>>     BUILDSTDERR: /builddir/build/BUILD/kicad-5.1.2/common/kicad_curl/kicad_curl.cpp:49:13: warning: 'void lock_callback(int, int, const char*, int)' defined but not used [-Wunused-function]
>>     BUILDSTDERR:    49 | static void lock_callback( int mode, int type, const char* file, int line )
>>
>>     BUILDSTDERR: /builddir/build/BUILD/kicad-5.1.2/include/math/vector2d.h:323:5: warning: '*((void*)& cursorSetting +16)' may be used uninitialized in this function [-Wmaybe-uninitialized]
>>     BUILDSTDERR:   323 |     x = aVector.x;
>>
>>     BUILDSTDERR: /builddir/build/BUILD/kicad-5.1.2/pcbnew/board_design_settings.cpp:380:35: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
>>     BUILDSTDERR:   380 |         for( int index = 0; index <= m_Pt_param->GetCount(); ++index )
>>
>>     BUILDSTDERR: /builddir/build/BUILD/kicad-5.1.2/eeschema/dialogs/dialog_spice_model.cpp:809:38: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
>>     BUILDSTDERR:   809 |     m_pwlValList->SetItemData( idx, *reinterpret_cast<long*>( &timeF ) );
>>
>>             Steve
>>
>>
>>
>>
>>     _______________________________________________
>>     Mailing list: https://launchpad.net/~kicad-developers
>>     Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>>     Unsubscribe : https://launchpad.net/~kicad-developers
>>     More help   : https://help.launchpad.net/ListHelp
>>
> 
> 



References