[xsd-users] XSD fails to build with gcc 10.3.0

Boris Kolpackov boris at codesynthesis.com
Wed Jun 23 09:44:57 EDT 2021


Dorier, Matthieu <mdorier at anl.gov> writes:

> I was trying to build XSD on my Ubuntu machine with gcc 10.3.0 and it
> eventually fails with the following error:
> 
> /projects/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx: In function ‘std::wostream& operator<<(std::wostream&, const Path&)’:
> /projects/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:298:13: error: no match for ‘operator<<’ (operand types are ‘std::wostream’ {aka ‘std::basic_ostream<wchar_t>’} and ‘cutl::fs::basic_path<char>::string_type’ {aka ‘std::__cxx11::basic_string<char>’})
>   298 |   return os << path.string ();
>       |          ~~ ^~ ~~~~~~~~~~~~~~
>       |          |                 |
>       |          |                 cutl::fs::basic_path<char>::string_type {aka std::__cxx11::basic_string<char>}
>       |          std::wostream {aka std::basic_ostream<wchar_t>}
> 
> It seems to build fine on another machine with gcc 9.3.0.

I believe this is the fix for this issue:

https://git.codesynthesis.com/cgit/libxsd-frontend/libxsd-frontend/commit/?id=5029f8665190879285787a9dcdaf5f997cadd2e2

The easiest is probably to apply this (trivial) patch to the
version you are already using. Alternatively (and if you are
feeling adventurous) I can give you instructions on building
the latest master with build2.



More information about the xsd-users mailing list