Bug ID 1158369
Summary GCC 10: xsd build fails
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Basesystem
Assignee bnc-team-screening@forge.provo.novell.com
Reporter martin.liska@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Fails due to:

[  276s] g++  -I/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend
-I/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend
-I/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl
-I/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl     -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type
-flto=auto -fcommon -g  -o
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.o
-c
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.cxx
[  276s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:
In function 'std::wostream& operator<<(std::wostream&, const Path&)':
[  276s]
/home/abuild/rpmbuild/BUILD/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 'const char*')
[  276s]   298 |   return os << path.string ().c_str ();
[  276s]       |          ~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~
[  276s]       |          |                          |
[  276s]       |          |                          const char*
[  276s]       |          std::wostream {aka std::basic_ostream<wchar_t>}
[  276s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:296:1:
note: candidate: 'std::wostream& operator<<(std::wostream&, const Path&)'
[  276s]   296 | operator<< (std::wostream& os,
XSDFrontend::SemanticGraph::Path const& path)
[  276s]       | ^~~~~~~~
[  276s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:296:72:
note:   no known conversion for argument 2 from 'const char*' to 'const Path&'
{aka 'const cutl::fs::basic_path<char>&'}
[  276s]   296 | operator<< (std::wostream& os,
XSDFrontend::SemanticGraph::Path const& path)
[  276s]       |                               
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
[  276s] In file included from /usr/include/c++/10/string:55,
[  276s]                  from /usr/include/c++/10/bits/locale_classes.h:40,
[  276s]                  from /usr/include/c++/10/bits/ios_base.h:41,
[  276s]                  from /usr/include/c++/10/streambuf:41,
[  276s]                  from
/usr/include/c++/10/bits/streambuf_iterator.h:35,
[  276s]                  from /usr/include/c++/10/iterator:66,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/pointer-iterator.hxx:8,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:18,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:9:
[  276s] /usr/include/c++/10/bits/basic_string.h:6428:5: note: candidate:
'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT,
_Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const
std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
[  276s]  6428 |     operator<<(basic_ostream<_CharT, _Traits>& __os,
[  276s]       |     ^~~~~~~~
[  276s] /usr/include/c++/10/bits/basic_string.h:6428:5: note:   template
argument deduction/substitution failed:
[  276s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:298:38:
note:   mismatched types 'const std::__cxx11::basic_string<_CharT, _Traits,
_Alloc>' and 'const char*'
[  276s]   298 |   return os << path.string ().c_str ();
[  276s]       |                                      ^
[  276s] In file included from /usr/include/c++/10/bits/ios_base.h:46,
[  276s]                  from /usr/include/c++/10/streambuf:41,
[  276s]                  from
/usr/include/c++/10/bits/streambuf_iterator.h:35,
[  276s]                  from /usr/include/c++/10/iterator:66,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/pointer-iterator.hxx:8,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:18,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:9:
[  276s] /usr/include/c++/10/system_error:243:5: note: candidate:
'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>&
std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)'
[  276s]   243 |     operator<<(basic_ostream<_CharT, _Traits>& __os, const
error_code& __e)
[  276s]       |     ^~~~~~~~
[  276s] /usr/include/c++/10/system_error:243:5: note:   template argument
deduction/substitution failed:
[  276s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:298:37:
note:   cannot convert 'cutl::fs::basic_path<C>::string() const [with C = char;
cutl::fs::basic_path<C>::string_type =
std::__cxx11::basic_string<char>]().std::__cxx11::basic_string<char>::c_str()'
(type 'const char*') to type 'const std::error_code&'
[  276s]   298 |   return os << path.string ().c_str ();
[  276s]       |                ~~~~~~~~~~~~~~~~~~~~~^~
[  276s] In file included from /usr/include/c++/10/memory:83,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/any.hxx:8,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/compiler/context.hxx:14,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:19,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:9:
[  276s] /usr/include/c++/10/bits/shared_ptr.h:69:5: note: candidate:
'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp>
std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT,
_Traits>&, const std::__shared_ptr<_Tp, _Lp>&)'
[  276s]    69 |     operator<<(std::basic_ostream<_Ch, _Tr>& __os,
[  276s]       |     ^~~~~~~~
[  276s] /usr/include/c++/10/bits/shared_ptr.h:69:5: note:   template argument
deduction/substitution failed:
[  276s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.cxx:298:38:
note:   mismatched types 'const std::__shared_ptr<_Tp, _Lp>' and 'const char*'
[  276s]   298 |   return os << path.string ().c_str ();
[  276s]       |                                      ^
[  276s] In file included from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr.hxx:8,
[  276s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/graph.hxx:11,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:17,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.hxx:11,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.cxx:10:
[  277s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr/base.hxx:34:41:
warning: dynamic exception specifications are deprecated in C++11
[-Wdeprecated]
[  277s]    34 | operator new (std::size_t, cutl::share) throw
(std::bad_alloc);
[  277s]       |                                         ^~~~~
[  277s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr/base.hxx:64:39:
warning: dynamic exception specifications are deprecated in C++11
[-Wdeprecated]
[  277s]    64 |     operator new (std::size_t, share) throw (std::bad_alloc);
[  277s]       |                                       ^~~~~
[  277s] In file included from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr/base.hxx:89,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr.hxx:8,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/graph.hxx:11,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:17,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.hxx:11,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.cxx:10:
[  277s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr/base.ixx:62:39:
warning: dynamic exception specifications are deprecated in C++11
[-Wdeprecated]
[  277s]    62 |   operator new (std::size_t n, share) throw (std::bad_alloc)
[  277s]       |                                       ^~~~~
[  277s] g++  -I/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend
-I/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend
-I/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl
-I/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl     -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type
-flto=auto -fcommon -g  -o
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.o
-c
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.cxx
[  277s] In file included from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/compiler/context.hxx:14,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:19,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.hxx:11,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.cxx:10:
[  277s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/any.hxx:147:12:
warning: 'template<class> class std::auto_ptr' is deprecated
[-Wdeprecated-declarations]
[  277s]   147 |       std::auto_ptr<holder> holder_;
[  277s]       |            ^~~~~~~~
[  277s] In file included from /usr/include/c++/10/memory:82,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/any.hxx:8,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/compiler/context.hxx:14,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:19,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.hxx:11,
[  277s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/fundamental.cxx:10:
[  277s] /usr/include/c++/10/bits/unique_ptr.h:53:28: note: declared here
[  277s]    53 |   template<typename> class auto_ptr;
[  277s]       |                            ^~~~~~~~
[  278s] In file included from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr.hxx:8,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/graph.hxx:11,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:17,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.hxx:8,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.cxx:7:
[  278s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr/base.hxx:34:41:
warning: dynamic exception specifications are deprecated in C++11
[-Wdeprecated]
[  278s]    34 | operator new (std::size_t, cutl::share) throw
(std::bad_alloc);
[  278s]       |                                         ^~~~~
[  278s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr/base.hxx:64:39:
warning: dynamic exception specifications are deprecated in C++11
[-Wdeprecated]
[  278s]    64 |     operator new (std::size_t, share) throw (std::bad_alloc);
[  278s]       |                                       ^~~~~
[  278s] In file included from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr/base.hxx:89,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr.hxx:8,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/graph.hxx:11,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:17,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.hxx:8,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.cxx:7:
[  278s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/shared-ptr/base.ixx:62:39:
warning: dynamic exception specifications are deprecated in C++11
[-Wdeprecated]
[  278s]    62 |   operator new (std::size_t n, share) throw (std::bad_alloc)
[  278s]       |                                       ^~~~~
[  278s] make: ***
[/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/build-0.3/cxx/generic/cxx-o.make:23:
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.o]
Error 1
[  278s] make: *** Waiting for unfinished jobs....
[  278s] In file included from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/compiler/context.hxx:14,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:19,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.hxx:8,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.cxx:7:
[  278s]
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/any.hxx:147:12:
warning: 'template<class> class std::auto_ptr' is deprecated
[-Wdeprecated-declarations]
[  278s]   147 |       std::auto_ptr<holder> holder_;
[  278s]       |            ^~~~~~~~
[  278s] In file included from /usr/include/c++/10/memory:82,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/container/any.hxx:8,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libcutl/cutl/compiler/context.hxx:14,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/elements.hxx:19,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.hxx:8,
[  278s]                  from
/home/abuild/rpmbuild/BUILD/xsd-4.0.0+dep/libxsd-frontend/xsd-frontend/semantic-graph/list.cxx:7:
[  278s] /usr/include/c++/10/bits/unique_ptr.h:53:28: note: declared here
[  278s]    53 |   template<typename> class auto_ptr;
[  278s]       |                            ^~~~~~~~
[  280s] error: Bad exit status from /var/tmp/rpm-tmp.gA7nRy (%build)


You are receiving this mail because: