I forgot to mention that I verified that after these changes, OSv still builds on the older Fedora 33 (with gcc 10). Only the __cxa_finalize() patch in took some trickery to work on both.
-- Nadav Har'El [email protected] On Mon, Jun 14, 2021 at 9:21 AM Nadav Har'El <[email protected]> wrote: > Here is an eclectic collection of patches needed to get OSv to compile > on Fedora 34. Most of the patches are about changes in gcc 11. > > After this series "make" and "scripts/build image=rogue; scripts/run.py" > work, but the default Lua shell (scripts/build) and the tests (make > check) still don't work and will need more patches. > > Nadav Har'El (12): > fix compatibility features.h for Fedora 34 > Fix __cxa_finalize() signature > bsd/sha2.c: fix mismatched signatures > Fix warnings about misleading indentation > xen: fix overread and overwrite bug > Makefile: avoid warning in one Musl source file > fs/vfs/main.cc: fix gcc 11 build error > core/trace.cc: free aligned_alloc() with free() > sched: free aligned_alloc() with free() > core/mmu.cc: silence warning > add __libc_single_threaded symbol > scripts/setup.py: add Fedora 34 > > scripts/setup.py | 9 +++- > include/osv/sched.hh | 13 ++++++ > bsd/sys/net/if.cc | 4 +- > bsd/sys/netinet/in_mcast.cc | 3 +- > bsd/sys/netinet/tcp_syncache.cc | 3 +- > bsd/sys/xen/evtchn.cc | 77 +++++++++++++++++---------------- > bsd/sys/xen/xenbus/xenbus.cc | 16 +++---- > core/mmu.cc | 4 ++ > core/sched.cc | 12 ++--- > core/trace.cc | 6 +-- > fs/vfs/main.cc | 6 +-- > runtime.cc | 18 ++++++-- > Makefile | 1 + > bsd/sys/crypto/sha2/sha2.c | 12 ++--- > bsd/sys/xen/evtchn.h | 5 ++- > include/glibc-compat/features.h | 5 +++ > 16 files changed, 119 insertions(+), 75 deletions(-) > > -- > 2.31.1 > > -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/CANEVyjuaiZ%2Bipr%2BZk0wpkXsk0i%3D6jObxN9pmx9ABqGz0btqY_w%40mail.gmail.com.
