Thought I'd try out the new ubuntu 22.04 and upgraded my 21.10 system to 22.04 with "sudo do-release-upgrade". Things seemed to go well until trying to compile mame.
This system only has 4GB of memory and a 40GB swap file.
Every time I try to compile mame it kills the compile at some point and the bash terminal window as well. I pared it down to -j 1 and it gets as far as the link stage and quits before it completes the link.
I think there's some kind of oom-killer running.
We’ve enabled the userspace OOMD service and are shipping the systemd-oomd package by default on the “Ubuntu Desktop” flavour, to avoid overloaded systems and the need of the kernel’s OOM killer to kick in. The OOMD status can be checked using oomctl.
It's kind of irritating that it just disappears without a trace, no notification or message. I don't see any messages in dmesg, probably because the oomd is killing it first before the kernel kills it.
Maybe I'll boost this thing up to 8GB, I've got some memory sticks around here somewhere.