Ubuntu 22.10 (amd64) cannot execute any x32 binaries on my freshly installed computer (x32: x32-ABI, see https://en.wikipedia.org/wiki/X32_ABI). Example program helloworld.c:
#include <stdio.h>
int main(argv) { printf("Hello World.\n"); }
The resulting binary fails as follows (also if the binary was produced on older Ubuntu versions):
# gcc-12 -mx32 -o helloworld helloworld.c
# ./helloworld
-bash: ./helloworld: cannot execute binary file: Exec format error
If I try the resulting binary on 22.04 or any older Ubuntu version, it works as expected. My foreign architectures look fine:
# dpkg --print-foreign-architectures
i386
Is there a relevant change from 22.04 to 22.10?