Hi, my KiCad5.99 (git master) build on Ubuntu 19 is failing, any ideas what I might be doing wrong? Thanks for the help.
[ 24%] Building CXX object common/CMakeFiles/pcbcommon.dir/__/pcbnew/netlist_reader/kicad_netlist_reader.cpp.o
/opt/kicad/pcbnew/netlist_reader/kicad_netlist_reader.cpp: In member function ‘void KICAD_NETLIST_PARSER::parseNet()’:
/opt/kicad/pcbnew/netlist_reader/kicad_netlist_reader.cpp:241:22: error: ‘T_pinfunction’ was not declared in this scope
case T_pinfunction:
^~~~~~~~~~~~~
/opt/kicad/pcbnew/netlist_reader/kicad_netlist_reader.cpp:241:22: note: suggested alternative: ‘pin_function’
case T_pinfunction:
^~~~~~~~~~~~~
pin_function
/opt/kicad/pcbnew/netlist_reader/kicad_netlist_reader.cpp:247:22: error: ‘T_pintype’ was not declared in this scope
case T_pintype:
^~~~~~~~~
/opt/kicad/pcbnew/netlist_reader/kicad_netlist_reader.cpp:247:22: note: suggested alternative: ‘pin_type’
case T_pintype:
^~~~~~~~~
pin_type
/opt/kicad/pcbnew/netlist_reader/kicad_netlist_reader.cpp: In member function ‘void KICAD_NETLIST_PARSER::parseComponent()’:
/opt/kicad/pcbnew/netlist_reader/kicad_netlist_reader.cpp:371:14: error: ‘T_property’ was not declared in this scope
case T_property:
^~~~~~~~~~
/opt/kicad/pcbnew/netlist_reader/kicad_netlist_reader.cpp:371:14: note: suggested alternative: ‘wxPGProperty’
case T_property:
^~~~~~~~~~
wxPGProperty
I then erased the build directory and recompiled from scratch. Now getting:
../scripting/libscripting.a(python_scripting.cpp.o): In function `_Py_DECREF':
/usr/include/python3.8/object.h:478: undefined reference to `_Py_Dealloc'
../scripting/libscripting.a(python_scripting.cpp.o): In function `RunPythonMethodWithReturnedString(char const*, wxString&)':
/opt/kicad/scripting/python_scripting.cpp:234: undefined reference to `PyUnicode_AsEncodedString'
../scripting/libscripting.a(python_scripting.cpp.o): In function `PyStringToWx(_object*)':
/opt/kicad/scripting/python_scripting.cpp:320: undefined reference to `PyUnicode_AsEncodedString'
../scripting/libscripting.a(python_scripting.cpp.o): In function `PyArrayStringToWx(_object*)':
/opt/kicad/scripting/python_scripting.cpp:353: undefined reference to `PyUnicode_AsEncodedString'
../scripting/libscripting.a(python_scripting.cpp.o): In function `PyErrStringWithTraceback()':
/opt/kicad/scripting/python_scripting.cpp:393: undefined reference to `PyException_SetTraceback'
/opt/kicad/scripting/python_scripting.cpp:395: undefined reference to `PyUnicode_FromString'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::str::str(char const*)':
/opt/kicad/thirdparty/pybind11/include/pybind11/pytypes.h:957: undefined reference to `PyUnicode_FromString'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::str::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >() const':
/opt/kicad/thirdparty/pybind11/include/pybind11/pytypes.h:974: undefined reference to `PyUnicode_AsUTF8String'
/opt/kicad/thirdparty/pybind11/include/pybind11/pytypes.h:980: undefined reference to `PyBytes_AsStringAndSize'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::internals::~internals()':
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/internals.h:121: undefined reference to `PyThread_tss_free'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::get_internals()':
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/internals.h:293: undefined reference to `PyThread_tss_alloc'
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/internals.h:294: undefined reference to `PyThread_tss_create'
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/internals.h:296: undefined reference to `PyThread_tss_set'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::instance::allocate_layout()':
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/type_caster_base.h:388: undefined reference to `PyMem_Calloc'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::error_string[abi:cxx11]()':
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/type_caster_base.h:432: undefined reference to `PyException_SetTraceback'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::get_thread_state_unchecked()':
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/type_caster_base.h:481: undefined reference to `_PyThreadState_UncheckedGet'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::type_caster<bool, void>::load(pybind11::handle, bool)':
/opt/kicad/thirdparty/pybind11/include/pybind11/cast.h:293: undefined reference to `_Py_FalseStruct'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::gil_scoped_acquire::gil_scoped_acquire()':
/opt/kicad/thirdparty/pybind11/include/pybind11/gil.h:54: undefined reference to `PyThread_tss_get'
/opt/kicad/thirdparty/pybind11/include/pybind11/gil.h:72: undefined reference to `PyThread_tss_set'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::gil_scoped_acquire::dec_ref()':
/opt/kicad/thirdparty/pybind11/include/pybind11/gil.h:104: undefined reference to `PyThread_tss_set'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::make_static_property_type()':
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/class.h:62: undefined reference to `PyUnicode_FromString'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11_meta_getattro':
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/class.h:161: undefined reference to `PyInstanceMethod_Type'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::make_default_metaclass()':
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/class.h:239: undefined reference to `PyUnicode_FromString'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::make_object_base_type(_typeobject*)':
/opt/kicad/thirdparty/pybind11/include/pybind11/detail/class.h:445: undefined reference to `PyUnicode_FromString'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::cpp_function::initialize_generic(std::unique_ptr<pybind11::detail::function_record, pybind11::cpp_function::InitializingFunctionRecordDeleter>&&, char const*, std::type_info const* const*, unsigned long)':
/opt/kicad/thirdparty/pybind11/include/pybind11/pybind11.h:374: undefined reference to `PyInstanceMethod_Type'
/opt/kicad/thirdparty/pybind11/include/pybind11/pybind11.h:492: undefined reference to `PyInstanceMethod_New'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::string_caster<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, false>::decode_utfN(char const*, long)':
/opt/kicad/thirdparty/pybind11/include/pybind11/cast.h:404: undefined reference to `PyUnicode_DecodeUTF8'
../scripting/libscripting.a(python_scripting.cpp.o): In function `pybind11::detail::string_caster<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, false>::load(pybind11::handle, bool)':
/opt/kicad/thirdparty/pybind11/include/pybind11/cast.h:372: undefined reference to `PyUnicode_AsEncodedString'
/opt/kicad/thirdparty/pybind11/include/pybind11/cast.h:376: undefined reference to `PyBytes_AsString'
/opt/kicad/thirdparty/pybind11/include/pybind11/cast.h:377: undefined reference to `PyBytes_Size'
../scripting/libscripting.a(python_scripting.cpp.o): In function `bool pybind11::detail::string_caster<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, false>::load_bytes<char>(std::enable_if<std::is_same<char, char>::value, pybind11::handle>::type)':
/opt/kicad/thirdparty/pybind11/include/pybind11/cast.h:420: undefined reference to `PyBytes_AsString'
/opt/kicad/thirdparty/pybind11/include/pybind11/cast.h:422: undefined reference to `PyBytes_Size'
collect2: error: ld returned 1 exit status
make[2]: *** [bitmap2component/bitmap2component] Error 1
make[1]: *** [bitmap2component/CMakeFiles/bitmap2component.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....