Re: JIT compiling with LLVM v10.0 - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: JIT compiling with LLVM v10.0
Date
Msg-id 32c81639-ef7a-ad50-f4fd-d7ac7deb51a8@proxel.se
Whole thread Raw
In response to Re: JIT compiling with LLVM v10.0  (Andres Freund <andres@anarazel.de>)
Responses Re: JIT compiling with LLVM v10.0  (Dmitry Dolgov <9erthalion6@gmail.com>)
List pgsql-hackers
On 02/07/2018 03:54 PM, Andres Freund wrote:
> I've pushed v10.0. The big (and pretty painful to make) change is that
> now all the LLVM specific code lives in src/backend/jit/llvm, which is
> built as a shared library which is loaded on demand.

It does not seem to be possible build without LLVM anymore.

Error:

In file included from planner.c:32:0:
../../../../src/include/jit/llvmjit.h:13:10: fatal error: 
llvm-c/Types.h: No such file or directory
  #include <llvm-c/Types.h>
           ^~~~~~~~~~~~~~~~

Options:

./configure --prefix=/home/andreas/dev/postgresql-inst 
--enable-tap-tests --enable-cassert --enable-debug

I also noticed the following typo:

diff --git a/configure.in b/configure.in
index b035966c0a..b89c4a138a 100644
--- a/configure.in
+++ b/configure.in
@@ -499,7 +499,7 @@ fi
  if test "$enable_coverage" = yes; then
    if test "$GCC" = yes; then
      CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
-    CFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
+    CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
    else
      AC_MSG_ERROR([--enable-coverage is supported only when using GCC])
    fi

Andreas


pgsql-hackers by date:

Previous
From: Kyotaro HORIGUCHI
Date:
Subject: Re: [HACKERS] More stats about skipped vacuums
Next
From: Etsuro Fujita
Date:
Subject: Re: non-bulk inserts and tuple routing