kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #44236
Re: Profligacy of messages/ link errors building 5.99 on Windows 10/Msys
That looks quite strange. Did you try a clean build directort? Maybe
there is some caching that is broken after a toolchain update? Pure
speculation.
On Tue, 21 Jul 2020 at 16:47, Brian Piccioni
<brian@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> It is a non-release tag, but as a developer I sort of need it to compile ...
>
> On 2020-07-21 10:45 a.m., Alex wrote:
>
> I too, also had the same errors, but assumed that 5.99 was some weird non-release tag, and switched to a different branch, as this is my first day building the application.
>
> On Tue, Jul 21, 2020, 4:42 PM Brian Piccioni <brian@xxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> When building I get a slew of errors or information messages of the type
>> (see below). During linking I then get a pile of "undefined" errors.
>> There are so many I can't reproduce them all.
>>
>> When I link I get a fatal error.
>>
>> This is the Master branch downloaded a few minutes before compiling. I
>> tried updating Msys and get the same result.
>>
>>
>> 42 | struct ctype_base
>> | ^~~~~~~~~~
>> In file included from C:/msys64/mingw64/include/c++/10.1.0/string:43,
>> from C:/msys64/mingw64/include/wx-3.0/wx/stringimpl.h:66,
>> from C:/msys64/mingw64/include/wx-3.0/wx/unichar.h:15,
>> from C:/msys64/mingw64/include/wx-3.0/wx/strvararg.h:22,
>> from C:/msys64/mingw64/include/wx-3.0/wx/string.h:46,
>> from C:/msys64/mingw64/include/wx-3.0/wx/memory.h:15,
>> from C:/msys64/mingw64/include/wx-3.0/wx/object.h:19,
>> from C:/msys64/mingw64/include/wx-3.0/wx/wx.h:15,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/include/fctsys.h:28,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/dialogs/panel_modedit_defaults.cpp:24:
>> C:/msys64/mingw64/include/c++/10.1.0/bits/localefwd.h:125:9: note:
>> replace the class-key with 'struct'
>> 125 | class ctype_base;
>> | ^~~~~~~~~~
>> In file included from
>> C:/msys64/mingw64/include/c++/10.1.0/bits/locale_facets.h:41,
>> from
>> C:/msys64/mingw64/include/c++/10.1.0/bits/basic_ios.h:37,
>> from C:/msys64/mingw64/include/c++/10.1.0/ios:44,
>> from C:/msys64/mingw64/include/c++/10.1.0/ostream:38,
>> from C:/msys64/mingw64/include/c++/10.1.0/iostream:39,
>> from C:/msys64/mingw64/include/wx-3.0/wx/ioswrap.h:18,
>> from C:/msys64/mingw64/include/wx-3.0/wx/textctrl.h:33,
>> from C:/msys64/mingw64/include/wx-3.0/wx/wx.h:81,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/include/fctsys.h:28,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/dialogs/panel_modedit_defaults.cpp:24:
>> C:/msys64/mingw64/include/c++/10.1.0/x86_64-w64-mingw32/bits/ctype_base.h:42:10:
>> note: 'std::ctype_base' defined as 'struct' here
>> 42 | struct ctype_base
>> | ^~~~~~~~~~
>> [ 93%] Building CXX object
>> pcbnew/CMakeFiles/pcbnew_kiface_objects.dir/initpcb.cpp.obj
>> In file included from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/thirdparty/nlohmann_json/nlohmann/json.hpp:70,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/include/settings/json_settings.h:24,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/include/settings/app_settings.h:25,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/pcbnew_settings.h:24,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/dialogs/dialog_update_pcb.cpp:29:
>> C:/msys64/mingw64/include/c++/10.1.0/valarray:574:20: note: replace the
>> class-key with 'struct'
>> 574 | friend class _Array<_Tp>;
>> | ^~~~~~~~~~~
>> In file included from C:/msys64/mingw64/include/c++/10.1.0/valarray:100,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/thirdparty/nlohmann_json/nlohmann/json.hpp:70,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/include/settings/json_settings.h:24,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/include/settings/app_settings.h:25,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/pcbnew_settings.h:24,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/dialogs/dialog_update_pcb.cpp:29:
>> C:/msys64/mingw64/include/c++/10.1.0/bits/valarray_array.h:396:12: note:
>> 'std::_Array<_Tp>' defined as 'struct' here
>> 396 | struct _Array
>> | ^~~~~~
>> In file included from
>> C:/msys64/mingw64/include/c++/10.1.0/bits/ios_base.h:46,
>> from C:/msys64/mingw64/include/c++/10.1.0/streambuf:41,
>> from
>> C:/msys64/mingw64/include/c++/10.1.0/bits/streambuf_iterator.h:35,
>> from C:/msys64/mingw64/include/c++/10.1.0/iterator:66,
>> from C:/msys64/mingw64/include/c++/10.1.0/regex:43,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/dialogs/panel_pcbnew_color_settings.cpp:21:
>> C:/msys64/mingw64/include/c++/10.1.0/system_error:54:9: note: replace
>> the class-key with 'struct'
>> 54 | class error_code;
>> | ^~~~~~~~~~
>> C:/msys64/mingw64/include/c++/10.1.0/system_error:180:10: note:
>> 'std::error_code' defined as 'struct' here
>> 180 | struct error_code
>> | ^~~~~~~~~~
>> C:/msys64/mingw64/include/c++/10.1.0/system_error:55:9: note: replace
>> the class-key with 'struct'
>> 55 | class error_condition;
>> | ^~~~~~~~~~~~~~~
>> C:/msys64/mingw64/include/c++/10.1.0/system_error:278:10: note:
>> 'std::error_condition' defined as 'struct' here
>> 278 | struct error_condition
>> | ^~~~~~~~~~~~~~~
>> In file included from C:/msys64/mingw64/include/c++/10.1.0/string:43,
>> from C:/msys64/mingw64/include/c++/10.1.0/bitset:47,
>> from C:/msys64/mingw64/include/c++/10.1.0/regex:39,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/dialogs/panel_pcbnew_color_settings.cpp:21:
>> C:/msys64/mingw64/include/c++/10.1.0/bits/localefwd.h:125:9: note:
>> replace the class-key with 'struct'
>> 125 | class ctype_base;
>> | ^~~~~~~~~~
>> In file included from
>> C:/msys64/mingw64/include/c++/10.1.0/bits/locale_facets.h:41,
>> from C:/msys64/mingw64/include/c++/10.1.0/locale:40,
>> from C:/msys64/mingw64/include/c++/10.1.0/regex:44,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/dialogs/panel_pcbnew_color_settings.cpp:21:
>> C:/msys64/mingw64/include/c++/10.1.0/x86_64-w64-mingw32/bits/ctype_base.h:42:10:
>> note: 'std::ctype_base' defined as 'struct' here
>> 42 | struct ctype_base
>> | ^~~~~~~~~~
>> In file included from C:/msys64/mingw64/include/c++/10.1.0/string:43,
>> from C:/msys64/mingw64/include/c++/10.1.0/bitset:47,
>> from C:/msys64/mingw64/include/c++/10.1.0/regex:39,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/dialogs/panel_pcbnew_color_settings.cpp:21:
>> C:/msys64/mingw64/include/c++/10.1.0/bits/localefwd.h:203:9: note:
>> replace the class-key with 'struct'
>> 203 | class messages_base;
>> | ^~~~~~~~~~~~~
>> In file included from C:/msys64/mingw64/include/c++/10.1.0/locale:41,
>> from C:/msys64/mingw64/include/c++/10.1.0/regex:44,
>> from
>> C:/Users/bjpic/KicadWork/FixedFormatting/kicad/pcbnew/dialogs/panel_pcbnew_color_settings.cpp:21:
>> C:/msys64/mingw64/include/c++/10.1.0/bits/locale_facets_nonio.h:1770:10:
>> note: 'std::messages_base' defined as 'struct' here
>> 1770 | struct messages_base
>>
>>
>> Link Errors
>>
>> [ 98%] Built target qa_eeschema
>> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>> CMakeFiles/pcbnew_kiface.dir/objects.a(pcbnew_wrap.cxx.obj):pcbnew_wrap.cxx:(.text+0x23cd):
>> undefined reference to `.refptr.PyObject_GenericGetAttr'
>> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>> CMakeFiles/pcbnew_kiface.dir/objects.a(pcbnew_wrap.cxx.obj): in function
>> `std::invalid_argument::invalid_argument(std::invalid_argument const&)':
>> C:/msys64/mingw64/include/c++/10.1.0/stdexcept:174: undefined reference
>> to `.refptr._ZTVSt16invalid_argument'
>> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>> CMakeFiles/pcbnew_kiface.dir/objects.a(pcbnew_wrap.cxx.obj): in function
>> `std::_Sp_counted_deleter<NETCLASS*, SWIG_null_deleter,
>> std::allocator<void>,
>> (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)':
>> C:/msys64/mingw64/include/c++/10.1.0/bits/shared_ptr_base.h:490:
>> undefined reference to `typeinfo for SWIG_null_deleter'
>> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>> CMakeFiles/pcbnew_kiface.dir/objects.a(pcbnew_wrap.cxx.obj): in function
>> `swig::traits_from<KIID>::from(KIID const&)':
>> C:/Users/bjpic/KicadWork/FixedFormatting/debug/pcbnew/pcbnew_wrap.cxx:3929:
>> undefined reference to `swig::traits_from_ptr<KIID>::from(KIID*, int)'
>> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>> CMakeFiles/pcbnew_kiface.dir/objects.a(pcbnew_wrap.cxx.obj):pcbnew_wrap.cxx:(.rdata$_ZTI17SWIG_null_deleter+0x8):
>> undefined reference to `typeinfo name for SWIG_null_deleter'
>> collect2.exe: error: ld returned 1 exit status
>> make[2]: *** [pcbnew/CMakeFiles/pcbnew_kiface.dir/build.make:635:
>> pcbnew/_pcbnew.kiface] Error 1
>> make[1]: *** [CMakeFiles/Makefile2:3284:
>> pcbnew/CMakeFiles/pcbnew_kiface.dir/all] Error 2
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help : https://help.launchpad.net/ListHelp
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
Follow ups
References