PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID15969
PG Version12beta3
OSLinux RedHat 7.6
Opened2019-08-20 16:41:06+00
Reported bySylvie Empereur

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      15969
Logged by:          Sylvie Empereur
Email address:      (redacted)
PostgreSQL version: 12beta3
Operating system:   Linux RedHat 7.6

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
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
undefined symbol: _ZNSt3_V214error_categoryD2Ev
-	The symbol C++ library  llvm::fatal_error_handler is defined in CLANG
-	Symbol resolution shows up when the shared lib tries to resolve
symbol llvm::fatal_error_handler, defined in the shared library
-	Symbol table entries in CLANG/LLVM library
$ objdump –t
$HOME/clang+llvm-8.0.1-powerpc64le-linux-rhel-7.4/lib/ |grep -i
 file format elf64-powerpcle
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),
The flag characters as follows:     "l"   =>    The symbol is a local (l)


2019-08-20 16:41:06+00PG Bug reporting formBUG #15969: PG12 b3 with LLVM JIT can't load library unresolvd symbol llvm::fatal_error_handler
2019-08-20 16:55:57+00Andres FreundRe: BUG #15969: PG12 b3 with LLVM JIT can't load library unresolvd symbol llvm::fatal_error_handler