Re: JIT compiling with LLVM v10.0

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: JIT compiling with LLVM v10.0
Date: 2018-02-08 09:29:15
Message-ID: 32c81639-ef7a-ad50-f4fd-d7ac7deb51a8@proxel.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Etsuro Fujita 2018-02-08 10:16:04 Re: non-bulk inserts and tuple routing
Previous Message Kyotaro HORIGUCHI 2018-02-08 09:21:56 Re: [HACKERS] More stats about skipped vacuums