I’ve merged an attempted fix. (Of course the previous one compiled fine on CLang too, so I’m not 100% confident in it -- but it seem to fit the error GCC was generating.)
> On 10 Jun 2020, at 12:59, Wayne Stambaugh <stambau...@gmail.com> wrote: > > I forgot to mention, lead devs please do not commit any new code until > this gets fixed. > > On 6/10/20 7:14 AM, Wayne Stambaugh wrote: >> As of commit 4138c8554 I'm getting the following build error on linux. >> >> /home/wayne/src/kicad-trunk/pcbnew/drc/drc_rule_parser.cpp: In >> constructor ‘DRC_RULES_PARSER::DRC_RULES_PARSER(BOARD*, const wxString&, >> const wxString&)’: >> /home/wayne/src/kicad-trunk/pcbnew/drc/drc_rule_parser.cpp:36:26: error: >> invalid user-defined conversion from ‘const wxString’ to ‘FILE*’ {aka >> ‘_IO_FILE*’} [-fpermissive] >> 36 | DRC_RULES_LEXER( aSource, aSourceDescr ), >> | ^~~~~~~ >> In file included from /usr/include/wx-3.0/wx/memory.h:15, >> from /usr/include/wx-3.0/wx/object.h:19, >> from /usr/include/wx-3.0/wx/wx.h:15, >> from /home/wayne/src/kicad-trunk/include/fctsys.h:28, >> from >> /home/wayne/src/kicad-trunk/pcbnew/drc/drc_rule_parser.cpp:25: >> /usr/include/wx-3.0/wx/string.h:1629:5: note: candidate is: >> ‘wxString::operator const void*() const’ <near match> >> 1629 | operator const void*() const { return c_str(); } >> | ^~~~~~~~ >> /usr/include/wx-3.0/wx/string.h:1629:5: note: no known conversion from >> ‘const void*’ to ‘FILE*’ {aka ‘_IO_FILE*’} >> In file included from >> /home/wayne/src/kicad-trunk/pcbnew/./drc/drc_rule_parser.h:31, >> from >> /home/wayne/src/kicad-trunk/pcbnew/drc/drc_rule_parser.cpp:26: >> /home/wayne/build/kicad/trunk-debug-gtk3-python/common/drc_rules_lexer.h:108:28: >> note: initializing argument 1 of >> ‘DRC_RULES_LEXER::DRC_RULES_LEXER(FILE*, const wxString&)’ >> 108 | DRC_RULES_LEXER( FILE* aFile, const wxString& aFilename ) : >> | ~~~~~~^~~~~ >> > > _______________________________________________ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp