Skip to content

OSv fails to build on Fedora 36 #1198

@nyh

Description

@nyh

OSv fails to compile on Fedora 36 (which, among other things, has gcc 12.1.1).
Some of the errors:

include/osv/sched.hh:353:30: error: field ‘_name’ has incomplete type ‘std::array<char, 16>’
  353 |         std::array<char, 16> _name = {};
      |                              ^~~~~
./bsd/sys/sys/queue.h:591:26: error: storing the address of local variable ‘tb’ in ‘*queue.tq_active.tqh_last’ [-Werror=dangling-pointer=]
  591 |         (head)->tqh_last = &TAILQ_NEXT((elm), field);                   \
      |                          ^
./drivers/pci-function.hh:360:28: error: ‘template<class _Arg, class _Result> struct std::unary_function’ is deprecated [-Werror=deprecated-declarations]
  360 |         struct hash : std::unary_function< const function*, std::size_t> {
      |                            ^~~~~~~~~~~~~~

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions