From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: sylvie.empereur-mot@bull.net
Subject: BUG #15969: PG12 b3 with LLVM JIT can't load library llvmjit.so: unresolvd symbol llvm::fatal_error_handler
Date: Tue, 20 Aug 2019 16:41:06 +0000
Message-ID: <15969-aced8b41fc355163@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15969
Logged by: Sylvie Empereur
Email address: sylvie.empereur-mot@bull.net
PostgreSQL version: 12beta3
Operating system: Linux RedHat 7.6
Description:
SW and HW Environment:
- LINUX RedHat Entreprise 7.6 (ppc64le on Power9 processors)
- GCC 4.8.5 (included in RHEL7.6)
- make 3.8.2
- LLVM8 and CLANG8
- PostgreSQL 12 beta3 built with support for LLVM JIT based compilation
- Doc PostgreSQL (chap31 JIT Compilation) indicates script configure, to be
run with parameter LLVM_CONFIG.
- PG12 script configure requires parameter CLANG also.
configure --without-readline --with-llvm
LLVM_CONFIG='/home/postgres/clang+llvm-8.0.1-powerpc64le-linux-rhel-7.4/bin/llvm-config'
CLANG='/home/postgres/clang+llvm-8.0.1-powerpc64le-linux-rhel-7.4/bin/clang'
make clean
make -j40 world
make check
Error Symptom:
- make check step, shows 26 identical failures from total of 193 autotests
:
ERROR: could not load library
"/nvme/postgresql-12beta3/tmp_install/usr/local/pgsql/lib/llvmjit.so":
/nvme/postgresql-12beta3/tmp_install/usr/local/pgsql/lib/llvmjit.so:
undefined symbol: _ZNSt3_V214error_categoryD2Ev
- The symbol C++ library llvm::fatal_error_handler is defined in CLANG
library libclang.so
- Symbol resolution shows up when the shared lib llvmjit.so tries to resolve
symbol llvm::fatal_error_handler, defined in the shared library
libclang.so
- Symbol table entries in CLANG/LLVM library libclang.so
$ objdump –t
$HOME/clang+llvm-8.0.1-powerpc64le-linux-rhel-7.4/lib/libclang.so |grep -i
fatal_error_handler
/home/postgresql-12beta2/clang+llvm-8.0.1-powerpc64le-linux-rhel-7.4/lib/libclang.so:
file format elf64-powerpcle
SYMBOL TABLE:
00000000005ae150 l F .text 0000000000000048 0x60
fatal_error_handler(void*, std::string const&, bool)
000000000220fe30 l F .text 00000000000000cc 0x60
llvm::install_fatal_error_handler(void (*)(void*, std::string const&, bool),
void*)
The flag characters as follows: "l" => The symbol is a local (l)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, sylvie.empereur-mot@bull.net
Subject: Re: BUG #15969: PG12 b3 with LLVM JIT can't load library llvmjit.so: unresolvd symbol llvm::fatal_error_handler
In-Reply-To: <15969-aced8b41fc355163@postgresql.org>
References: <15969-aced8b41fc355163@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox