Old version: ubuntu@s1lp05:~$ dpkg -S /usr/lib/llvm-10/bin/llvm-lto llvm-10: /usr/lib/llvm-10/bin/llvm-lto ubuntu@s1lp05:~$ dpkg -l llvm-10 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-======================-============-=========================================== ii llvm-10 1:10.0.0~+rc5-1ubuntu1 s390x Modular compiler and toolchain technologies
Fails: ubuntu@s1lp05:~$ /usr/lib/llvm-10/bin/llvm-lto -thinlto -thinlto-action=thinlink -o /home/ubuntu/postgresql-12-12.2/build/tmp_install/usr/lib/postgresql/12/lib/bitcode/postgres.index.bc /home/ubuntu/postgresql-12-12.2/build/tmp_install/usr/lib/postgresql/12/lib/bitcode/postgres/access/brin/brin.bc Stack dump: 0. Program arguments: /usr/lib/llvm-10/bin/llvm-lto -thinlto -thinlto-action=thinlink -o /home/ubuntu/postgresql-12-12.2/build/tmp_install/usr/lib/postgresql/12/lib/bitcode/postgres.index.bc /home/ubuntu/postgresql-12-12.2/build/tmp_install/usr/lib/postgresql/12/lib/bitcode/postgres/access/brin/brin.bc #0 0x000003ffa032b1ca PrintStackTrace /build/llvm-toolchain-10-m0H4U3/llvm-toolchain-10-10.0.0~+rc5/llvm/lib/Support/Unix/Signals.inc:568:7 #1 0x000003ffa032b1ca PrintStackTraceSignalHandler /build/llvm-toolchain-10-m0H4U3/llvm-toolchain-10-10.0.0~+rc5/llvm/lib/Support/Unix/Signals.inc:624:3 Segmentation fault
Upgrade: ubuntu@s1lp05:~$ sudo apt dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: libapt-pkg5.90 libberkeleydb-perl libbind9-161 libboost-iostreams1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libbrlapi0.6 libcbor0 libcgi-fast-perl libcgi-pm-perl libclass-accessor-perl libdns-export1104 libdns-export1107 libdns1104 libdns1107 libdns1109 libfcgi-perl libfreezethaw-perl libicu63 libirs161 libisc-export1100 libisc-export1104 libisc1100 libisc1104 libisc1105 libisccc161 libisccfg163 liblwres161 libmldbm-perl libprocps7 libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libpython3.7 libpython3.7-minimal libpython3.7-stdlib libruby2.5 libsbc1 libspandsp2 libwireshark12 libwiretap9 libwscodecs2 libwsutil10 linux-5.4-headers-5.4.0-14 linux-headers-4.15.0-62 linux-headers-4.15.0-62-generic linux-headers-4.15.0-74 linux-headers-4.15.0-74-generic linux-headers-5.4.0-14-generic linux-headers-5.4.0-9 linux-headers-5.4.0-9-generic linux-image-4.15.0-62-generic linux-image-4.15.0-74-generic linux-image-5.4.0-14-generic linux-image-5.4.0-9-generic linux-modules-4.15.0-62-generic linux-modules-4.15.0-74-generic linux-modules-5.4.0-14-generic linux-modules-5.4.0-9-generic linux-modules-extra-4.15.0-62-generic linux-modules-extra-4.15.0-74-generic linux-modules-extra-5.4.0-14-generic linux-modules-extra-5.4.0-9-generic php7.3-dev python2 python2-minimal python2.7 python2.7-minimal python3-asn1crypto python3-nacl python3-pymacaroons python3.7 python3.7-minimal ruby2.5 ruby2.5-dev ruby2.5-doc Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: libllvm10-dbgsym llvm-10-dbgsym llvm-10-dev-dbgsym llvm-10-runtime-dbgsym llvm-10-tools-dbgsym The following packages will be upgraded: clang-10 libclang-common-10-dev libclang-cpp10 libclang1-10 libllvm10 llvm-10 llvm-10-dev llvm-10-runtime llvm-10-tools 9 upgraded, 0 newly installed, 5 to remove and 0 not upgraded. Need to get 70.0 MB of archives. After this operation, 100 MB disk space will be freed. Do you want to continue? [Y/n] Y Get:1 http://ports.ubuntu.com focal-proposed/universe s390x llvm-10-dev s390x 1:10.0.0-1ubuntu2 [26.7 MB] Get:2 http://ports.ubuntu.com focal-proposed/universe s390x llvm-10-tools s390x 1:10.0.0-1ubuntu2 [311 kB] Get:3 http://ports.ubuntu.com focal-proposed/universe s390x clang-10 s390x 1:10.0.0-1ubuntu2 [67.7 kB] Get:4 http://ports.ubuntu.com focal-proposed/universe s390x libclang-common-10-dev s390x 1:10.0.0-1ubuntu2 [1158 kB] Get:5 http://ports.ubuntu.com focal-proposed/universe s390x libclang-cpp10 s390x 1:10.0.0-1ubuntu2 [11.3 MB] Get:6 http://ports.ubuntu.com focal-proposed/main s390x libllvm10 s390x 1:10.0.0-1ubuntu2 [16.7 MB] Get:7 http://ports.ubuntu.com focal-proposed/universe s390x llvm-10 s390x 1:10.0.0-1ubuntu2 [5268 kB] Get:8 http://ports.ubuntu.com focal-proposed/universe s390x llvm-10-runtime s390x 1:10.0.0-1ubuntu2 [160 kB] Get:9 http://ports.ubuntu.com focal-proposed/universe s390x libclang1-10 s390x 1:10.0.0-1ubuntu2 [8295 kB] Fetched 70.0 MB in 22s (3225 kB/s) (Reading database ... 287633 files and directories currently installed.) Removing libllvm10-dbgsym:s390x (1:10.0.0~+rc5-1ubuntu1) ... Removing llvm-10-dbgsym (1:10.0.0~+rc5-1ubuntu1) ... Removing llvm-10-dev-dbgsym (1:10.0.0~+rc5-1ubuntu1) ... Removing llvm-10-runtime-dbgsym (1:10.0.0~+rc5-1ubuntu1) ... Removing llvm-10-tools-dbgsym (1:10.0.0~+rc5-1ubuntu1) ... (Reading database ... 287503 files and directories currently installed.) Preparing to unpack .../0-llvm-10-dev_1%3a10.0.0-1ubuntu2_s390x.deb ... Unpacking llvm-10-dev (1:10.0.0-1ubuntu2) over (1:10.0.0~+rc5-1ubuntu1) ... Preparing to unpack .../1-llvm-10-tools_1%3a10.0.0-1ubuntu2_s390x.deb ... Unpacking llvm-10-tools (1:10.0.0-1ubuntu2) over (1:10.0.0~+rc5-1ubuntu1) ... Preparing to unpack .../2-clang-10_1%3a10.0.0-1ubuntu2_s390x.deb ... Unpacking clang-10 (1:10.0.0-1ubuntu2) over (1:10.0.0~+rc5-1ubuntu1) ... Preparing to unpack .../3-libclang-common-10-dev_1%3a10.0.0-1ubuntu2_s390x.deb ... Unpacking libclang-common-10-dev (1:10.0.0-1ubuntu2) over (1:10.0.0~+rc5-1ubuntu1) ... Preparing to unpack .../4-libclang-cpp10_1%3a10.0.0-1ubuntu2_s390x.deb ... Unpacking libclang-cpp10 (1:10.0.0-1ubuntu2) over (1:10.0.0~+rc5-1ubuntu1) ... Preparing to unpack .../5-libllvm10_1%3a10.0.0-1ubuntu2_s390x.deb ... Unpacking libllvm10:s390x (1:10.0.0-1ubuntu2) over (1:10.0.0~+rc5-1ubuntu1) ... Preparing to unpack .../6-llvm-10_1%3a10.0.0-1ubuntu2_s390x.deb ... Unpacking llvm-10 (1:10.0.0-1ubuntu2) over (1:10.0.0~+rc5-1ubuntu1) ... Preparing to unpack .../7-llvm-10-runtime_1%3a10.0.0-1ubuntu2_s390x.deb ... Unpacking llvm-10-runtime (1:10.0.0-1ubuntu2) over (1:10.0.0~+rc5-1ubuntu1) ... Preparing to unpack .../8-libclang1-10_1%3a10.0.0-1ubuntu2_s390x.deb ... Unpacking libclang1-10 (1:10.0.0-1ubuntu2) over (1:10.0.0~+rc5-1ubuntu1) ... Setting up llvm-10-tools (1:10.0.0-1ubuntu2) ... Setting up libllvm10:s390x (1:10.0.0-1ubuntu2) ... Setting up libclang1-10 (1:10.0.0-1ubuntu2) ... Setting up libclang-common-10-dev (1:10.0.0-1ubuntu2) ... Setting up libclang-cpp10 (1:10.0.0-1ubuntu2) ... Setting up llvm-10-runtime (1:10.0.0-1ubuntu2) ... Setting up clang-10 (1:10.0.0-1ubuntu2) ... Setting up llvm-10 (1:10.0.0-1ubuntu2) ... Setting up llvm-10-dev (1:10.0.0-1ubuntu2) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for libc-bin (2.31-0ubuntu6) ...
New version: ubuntu@s1lp05:~$ /usr/lib/llvm-10/bin/llvm-lto -thinlto -thinlto-action=thinlink -o /home/ubuntu/postgresql-12-12.2/build/tmp_install/usr/lib/postgresql/12/lib/bitcode/postgres.index.bc /home/ubuntu/postgresql-12-12.2/build/tmp_install/usr/lib/postgresql/12/lib/bitcode/postgres/access/brin/brin.bc <no crash>
So yeah - this update will fix the issue once it migrates into the -release pocket.
Old version: llvm-10/ bin/llvm- lto llvm-10/ bin/llvm- lto Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ====-== ======= ======= ======- ======= =====-= ======= ======= ======= ======= ======= ======= 0~+rc5- 1ubuntu1 s390x Modular compiler and toolchain technologies
ubuntu@s1lp05:~$ dpkg -S /usr/lib/
llvm-10: /usr/lib/
ubuntu@s1lp05:~$ dpkg -l llvm-10
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii llvm-10 1:10.0.
Fails: llvm-10/ bin/llvm- lto -thinlto -thinlto- action= thinlink -o /home/ubuntu/ postgresql- 12-12.2/ build/tmp_ install/ usr/lib/ postgresql/ 12/lib/ bitcode/ postgres. index.bc /home/ubuntu/ postgresql- 12-12.2/ build/tmp_ install/ usr/lib/ postgresql/ 12/lib/ bitcode/ postgres/ access/ brin/brin. bc llvm-10/ bin/llvm- lto -thinlto -thinlto- action= thinlink -o /home/ubuntu/ postgresql- 12-12.2/ build/tmp_ install/ usr/lib/ postgresql/ 12/lib/ bitcode/ postgres. index.bc /home/ubuntu/ postgresql- 12-12.2/ build/tmp_ install/ usr/lib/ postgresql/ 12/lib/ bitcode/ postgres/ access/ brin/brin. bc llvm-toolchain- 10-m0H4U3/ llvm-toolchain- 10-10.0. 0~+rc5/ llvm/lib/ Support/ Unix/Signals. inc:568: 7 SignalHandler /build/ llvm-toolchain- 10-m0H4U3/ llvm-toolchain- 10-10.0. 0~+rc5/ llvm/lib/ Support/ Unix/Signals. inc:624: 3
ubuntu@s1lp05:~$ /usr/lib/
Stack dump:
0. Program arguments: /usr/lib/
#0 0x000003ffa032b1ca PrintStackTrace /build/
#1 0x000003ffa032b1ca PrintStackTrace
Segmentation fault
Upgrade: iostreams1. 67.0 libboost- system1. 67.0 libboost- thread1. 67.0 libbrlapi0.6 libcbor0 libcgi-fast-perl libcgi-pm-perl accessor- perl libdns-export1104 libdns-export1107 libdns1104 libdns1107 libdns1109 libfcgi-perl libfreezethaw-perl libicu63 libirs161 libisc-export1100 libisc-export1104 7-minimal libpython2.7-stdlib libpython3.7 7-minimal libpython3.7-stdlib libruby2.5 libsbc1 libspandsp2 libwireshark12 libwiretap9 libwscodecs2 libwsutil10 linux-5. 4-headers- 5.4.0-14 linux-headers- 4.15.0- 62 headers- 4.15.0- 62-generic linux-headers- 4.15.0- 74 linux-headers- 4.15.0- 74-generic linux-headers- 5.4.0-14- generic linux-headers- 5.4.0-9 linux-headers- 5.4.0-9- generic image-4. 15.0-62- generic linux-image- 4.15.0- 74-generic linux-image- 5.4.0-14- generic linux-image- 5.4.0-9- generic linux-modules- 4.15.0- 62-generic linux-modules- 4.15.0- 74-generic modules- 5.4.0-14- generic linux-modules- 5.4.0-9- generic linux-modules- extra-4. 15.0-62- generic linux-modules- extra-4. 15.0-74- generic linux-modules- extra-5. 4.0-14- generic modules- extra-5. 4.0-9-generic php7.3-dev python2 python2-minimal python2.7 python2.7-minimal python3-asn1crypto python3-nacl python3-pymacaroons python3.7 python3.7-minimal ruby2.5 runtime- dbgsym llvm-10- tools-dbgsym common- 10-dev libclang-cpp10 libclang1-10 libllvm10 llvm-10 llvm-10-dev llvm-10-runtime llvm-10-tools ports.ubuntu. com focal-proposed/ universe s390x llvm-10-dev s390x 1:10.0.0-1ubuntu2 [26.7 MB] ports.ubuntu. com focal-proposed/ universe s390x llvm-10-tools s390x 1:10.0.0-1ubuntu2 [311 kB] ports.ubuntu. com focal-proposed/ universe s390x clang-10 s390x 1:10.0.0-1ubuntu2 [67.7 kB] ports.ubuntu. com focal-proposed/ universe s390x libclang- common- 10-dev s390x 1:10.0.0-1ubuntu2 [1158 kB] ports.ubuntu. com focal-proposed/ universe s390x libclang-cpp10 s390x 1:10.0.0-1ubuntu2 [11.3 MB] ports.ubuntu. com focal-proposed/main s390x libllvm10 s390x 1:10.0.0-1ubuntu2 [16.7 MB] ports.ubuntu. com focal-proposed/ universe s390x llvm-10 s390x 1:10.0.0-1ubuntu2 [5268 kB] ports.ubuntu. com focal-proposed/ universe s390x llvm-10-runtime s390x 1:10.0.0-1ubuntu2 [160 kB] ports.ubuntu. com focal-proposed/ universe s390x libclang1-10 s390x 1:10.0.0-1ubuntu2 [8295 kB] dbgsym: s390x (1:10.0. 0~+rc5- 1ubuntu1) ... 0~+rc5- 1ubuntu1) ... 0~+rc5- 1ubuntu1) ... runtime- dbgsym (1:10.0. 0~+rc5- 1ubuntu1) ... tools-dbgsym (1:10.0. 0~+rc5- 1ubuntu1) ... 10-dev_ 1%3a10. 0.0-1ubuntu2_ s390x.deb ... 0~+rc5- 1ubuntu1) ... 10-tools_ 1%3a10. 0.0-1ubuntu2_ s390x.deb ... 0~+rc5- 1ubuntu1) ... 10_1%3a10. 0.0-1ubuntu2_ s390x.deb ... 0~+rc5- 1ubuntu1) ... common- 10-dev_ 1%3a10. 0.0-1ubuntu2_ s390x.deb ... common- 10-dev (1:10.0.0-1ubuntu2) over (1:10.0. 0~+rc5- 1ubuntu1) ... cpp10_1% 3a10.0. 0-1ubuntu2_ s390x.deb ... 0~+rc5- 1ubuntu1) ... _1%3a10. 0.0-1ubuntu2_ s390x.deb ... 0~+rc5- 1ubuntu1) ... 10_1%3a10. 0.0-1ubuntu2_ s390x.deb ... 0~+rc5- 1ubuntu1) ... 10-runtime_ 1%3a10. 0.0-1ubuntu2_ s390x.deb ... 0~+rc5- 1ubuntu1) ... -10_1%3a10. 0.0-1ubuntu2_ s390x.deb ... 0~+rc5- 1ubuntu1) ... common- 10-dev (1:10.0.0-1ubuntu2) ...
ubuntu@s1lp05:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libapt-pkg5.90 libberkeleydb-perl libbind9-161 libboost-
libclass-
libisc1100 libisc1104 libisc1105 libisccc161 libisccfg163 liblwres161 libmldbm-perl libprocps7 libpython2-stdlib libpython2.
libpython3.
linux-
linux-
linux-
linux-
ruby2.5-dev ruby2.5-doc
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libllvm10-dbgsym llvm-10-dbgsym llvm-10-dev-dbgsym llvm-10-
The following packages will be upgraded:
clang-10 libclang-
9 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
Need to get 70.0 MB of archives.
After this operation, 100 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Fetched 70.0 MB in 22s (3225 kB/s)
(Reading database ... 287633 files and directories currently installed.)
Removing libllvm10-
Removing llvm-10-dbgsym (1:10.0.
Removing llvm-10-dev-dbgsym (1:10.0.
Removing llvm-10-
Removing llvm-10-
(Reading database ... 287503 files and directories currently installed.)
Preparing to unpack .../0-llvm-
Unpacking llvm-10-dev (1:10.0.0-1ubuntu2) over (1:10.0.
Preparing to unpack .../1-llvm-
Unpacking llvm-10-tools (1:10.0.0-1ubuntu2) over (1:10.0.
Preparing to unpack .../2-clang-
Unpacking clang-10 (1:10.0.0-1ubuntu2) over (1:10.0.
Preparing to unpack .../3-libclang-
Unpacking libclang-
Preparing to unpack .../4-libclang-
Unpacking libclang-cpp10 (1:10.0.0-1ubuntu2) over (1:10.0.
Preparing to unpack .../5-libllvm10
Unpacking libllvm10:s390x (1:10.0.0-1ubuntu2) over (1:10.0.
Preparing to unpack .../6-llvm-
Unpacking llvm-10 (1:10.0.0-1ubuntu2) over (1:10.0.
Preparing to unpack .../7-llvm-
Unpacking llvm-10-runtime (1:10.0.0-1ubuntu2) over (1:10.0.
Preparing to unpack .../8-libclang1
Unpacking libclang1-10 (1:10.0.0-1ubuntu2) over (1:10.0.
Setting up llvm-10-tools (1:10.0.0-1ubuntu2) ...
Setting up libllvm10:s390x (1:10.0.0-1ubuntu2) ...
Setting up libclang1-10 (1:10.0.0-1ubuntu2) ...
Setting up libclang-
Setting up libclang-cpp10 (1:10.0.0-1ubuntu2) ...
Setting up llvm-10-runtime (1:10.0.0-1ubuntu2) ...
Setting up clang-10 (1:10.0.0-1ubuntu2) ...
Setting up llvm-10 (1:10.0.0-1ubuntu2) ...
Setting up llvm-10-dev (1:10.0.0-1ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu6) ...
New version: llvm-10/ bin/llvm- lto -thinlto -thinlto- action= thinlink -o /home/ubuntu/ postgresql- 12-12.2/ build/tmp_ install/ usr/lib/ postgresql/ 12/lib/ bitcode/ postgres. index.bc /home/ubuntu/ postgresql- 12-12.2/ build/tmp_ install/ usr/lib/ postgresql/ 12/lib/ bitcode/ postgres/ access/ brin/brin. bc
ubuntu@s1lp05:~$ /usr/lib/
<no crash>
So yeah - this update will fix the issue once it migrates into the -release pocket.