to reach the error in there do:
$ postgresql-12-12.2/build/tmp_install/usr/lib/postgresql/12/lib/bitcode
$ /usr/lib/llvm-10/bin/llvm-lto -thinlto -thinlto-action=thinlink -o postgres.index.bc postgres/access/brin/brin.bc
I extracted the same on x86 and tried it there, it works on x86.
So you really will need an s390x system to trigger the crash.
This is the full build directory.
to reach the error in there do: 12-12.2/ build/tmp_ install/ usr/lib/ postgresql/ 12/lib/ bitcode llvm-10/ bin/llvm- lto -thinlto -thinlto- action= thinlink -o postgres.index.bc postgres/ access/ brin/brin. bc
$ postgresql-
$ /usr/lib/
I extracted the same on x86 and tried it there, it works on x86.
So you really will need an s390x system to trigger the crash.