Tried to build postgreSQL --with-llvm and LLVM_CONFIG= llvm_path/bin/llvm_config options. Used LLVM 12.0.1 Steps followed: 1. Built TPCH schema with HammerDB-v4.2 2. Observed following error: --> Vuser 1:CREATING TPCH INDEXES Error in Virtual User 1: ERROR: could not load library " <path/to/postgresql/installation>/lib/postgresql/llvmjit.so": libLLVMOrcJIT.so.12git: cannot open shared object file: No such file or directory --> After fixing the above error observed below error: Vuser 1:CREATING TPCH INDEXES Error in Virtual User 1: ERROR: could not load library "/postgreSQLv13.3v-llvm-build/llvm-build-2/lib/postgresql/llvmjit.so": <path/to/postgresql/installation>/lib/postgresql/llvmjit.so: undefined symbol: _ZN4llvm31install_bad_alloc_error_handlerEPFvPvRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbES0_ --> The above API is present in library, even though it is giving error. postgresql-13.3/src/backend/jit/llvm/llvmjit_error.cpp:62: llvm::install_bad_alloc_error_handler(fatal_llvm_new_handler); llvm/Support/ErrorHandling.h:96:void install_bad_alloc_error_handler(fatal_error_handler_t handler, (llvm compiler path) Binary file postgresql-13.3/src/backend/jit/llvm/llvmjit_error.o matches Binary file postgresql-13.3/src/backend/jit/llvm/llvmjit.so matches Please do the needful. Thanks.