On 01/29/2018 10:57 PM, Andres Freund wrote:
> Hi,
>
> On 2018-01-29 22:51:38 +0100, Tomas Vondra wrote:
>> Hi, I wanted to look at this, but my attempts to build the jit branch
>> fail with some compile-time warnings (uninitialized variables) and
>> errors (unknown types, incorrect number of arguments). See the file
>> attached.
>
> Which git hash are you building? What llvm version is this building
> against? If you didn't specify LLVM_CONFIG=... what does llvm-config
> --version return?
>
I'm building against fdc6c7a6dddbd6df63717f2375637660bcd00fc6 (current
HEAD in the jit branch, AFAICS).
I'm building like this:
$ ./configure --enable-debug CFLAGS="-fno-omit-frame-pointer -O2" \
--with-llvm --prefix=/home/postgres/pg-llvm
$ make -s -j4 install
and llvm-config --version says this:
$ llvm-config --version
5.0.0svn
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services