← Back to team overview

kicad-developers team mailing list archive

Build failure of 5.1.2 in Fedora rawhide

 

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





Follow ups