Here a backtrace in GDB, let me know if I can check anything for you there:
ubuntu@s1lp05:~/postgresql-12-12.2/build/tmp_install/usr/lib/postgresql/12/lib/bitcode$ gdb /usr/lib/llvm-10/bin/llvm-ltoGNU gdb (Ubuntu 9.1-0ubuntu1) 9.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "s390x-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/llvm-10/bin/llvm-lto...
Reading symbols from /usr/lib/debug/.build-id/2c/dfd421eef6cbe0600d24e01b38e71763bb4333.debug...
(gdb) run -thinlto -thinlto-action=thinlink -o postgres.index.bc postgres/access/brin/brin.bc
Starting program: /usr/lib/llvm-10/bin/llvm-lto -thinlto -thinlto-action=thinlink -o postgres.index.bc postgres/access/brin/brin.bc
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/s390x-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
handleErrors<(lambda at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/include/llvm/Support/Error.h:988:33)>(void) ()
at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/include/llvm/Support/Error.h:907
907 /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/include/llvm/Support/Error.h: No such file or directory.
(gdb) bt
#0 handleErrors<(lambda at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/include/llvm/Support/Error.h:988:33)>(void) ()
at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/include/llvm/Support/Error.h:907
#1 0x000003fff9d512e0 in handleAllErrors<(lambda at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/include/llvm/Support/Error.h:988:33)> ()
at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/include/llvm/Support/Error.h:925
#2 toString () at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/include/llvm/Support/Error.h:988
#3 0x000003fffab16536 in addModule () at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/lib/LTO/ThinLTOCodeGenerator.cpp:515
#4 0x000000008001c5ce in thinLink () at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/tools/llvm-lto/llvm-lto.cpp:577
#5 0x000000008001464a in run () at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/tools/llvm-lto/llvm-lto.cpp:541
#6 main () at /build/llvm-toolchain-10-PvK6ID/llvm-toolchain-10-10.0.0~+rc3/llvm/tools/llvm-lto/llvm-lto.cpp:912
Here a backtrace in GDB, let me know if I can check anything for you there:
ubuntu@ s1lp05: ~/postgresql- 12-12.2/ build/tmp_ install/ usr/lib/ postgresql/ 12/lib/ bitcode$ gdb /usr/lib/ llvm-10/ bin/llvm- ltoGNU gdb (Ubuntu 9.1-0ubuntu1) 9.1 gnu.org/ licenses/ gpl.html> www.gnu. org/software/ gdb/bugs/>. www.gnu. org/software/ gdb/documentati on/>.
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "s390x-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help". llvm-10/ bin/llvm- lto... debug/. build-id/ 2c/dfd421eef6cb e0600d24e01b38e 71763bb4333. debug.. . action= thinlink -o postgres.index.bc postgres/ access/ brin/brin. bc llvm-10/ bin/llvm- lto -thinlto -thinlto- action= thinlink -o postgres.index.bc postgres/ access/ brin/brin. bc linux-gnu/ libthread_ db.so.1" .
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/
Reading symbols from /usr/lib/
(gdb) run -thinlto -thinlto-
Starting program: /usr/lib/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/s390x-
Program received signal SIGSEGV, Segmentation fault. (lambda at /build/ llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/include/ llvm/Support/ Error.h: 988:33) >(void) () llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/include/ llvm/Support/ Error.h: 907 llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/include/ llvm/Support/ Error.h: No such file or directory. (lambda at /build/ llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/include/ llvm/Support/ Error.h: 988:33) >(void) () llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/include/ llvm/Support/ Error.h: 907 <(lambda at /build/ llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/include/ llvm/Support/ Error.h: 988:33) > () llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/include/ llvm/Support/ Error.h: 925 llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/include/ llvm/Support/ Error.h: 988 llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/lib/ LTO/ThinLTOCode Generator. cpp:515 llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/tools/ llvm-lto/ llvm-lto. cpp:577 llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/tools/ llvm-lto/ llvm-lto. cpp:541 llvm-toolchain- 10-PvK6ID/ llvm-toolchain- 10-10.0. 0~+rc3/ llvm/tools/ llvm-lto/ llvm-lto. cpp:912
handleErrors<
at /build/
907 /build/
(gdb) bt
#0 handleErrors<
at /build/
#1 0x000003fff9d512e0 in handleAllErrors
at /build/
#2 toString () at /build/
#3 0x000003fffab16536 in addModule () at /build/
#4 0x000000008001c5ce in thinLink () at /build/
#5 0x000000008001464a in run () at /build/
#6 main () at /build/