Re: PG vs LLVM 12 on seawasp, next round

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: PG vs LLVM 12 on seawasp, next round
Date: 2021-02-15 09:05:32
Message-ID: alpine.DEB.2.22.394.2102150931190.989588@pseudo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hello Thomas,

Thanks for looking at this, I'm currently far behind on many things and
not very responsive:-(

> Here is the creation of llvmjit.so:
>
> g++ ... -o llvmjit.so ... -L/home/fabien/clgtk/lib ... -lLLVMOrcJIT ...
>
> That'd be from llvm-config --ldflags or similar, from this binary:
>
> checking for llvm-config... (cached) /home/fabien/clgtk/bin/llvm-config
>
> So what does ls -slap /home/fabien/clgtk/lib show?

Plenty files and links, eg:

0 lrwxrwxrwx 1 fabien fabien 21 janv. 23 09:40 /home/fabien/clgtk/lib/libLLVMMCJIT.so -> libLLVMMCJIT.so.12git
2140 -rw-r--r-- 1 fabien fabien 2190824 janv. 23 09:28 /home/fabien/clgtk/lib/libLLVMMCJIT.so.12git
0 lrwxrwxrwx 1 fabien fabien 22 janv. 23 09:40 /home/fabien/clgtk/lib/libLLVMOrcJIT.so -> libLLVMOrcJIT.so.12git
40224 -rw-r--r-- 1 fabien fabien 41187208 janv. 23 09:34 /home/fabien/clgtk/lib/libLLVMOrcJIT.so.12git

Hmmm, clang recompilation has been failing for some weeks. Argh, this is
due to the recent "master" to "main" branch renaming.

> What does ldd
> /home/fabien/pg/build-farm-11/buildroot/HEAD/pgsql.build/tmp_install/home/fabien/pg/build-farm-11/buildroot/HEAD/inst/lib/postgresql/llvmjit.so

No such file of directory:-) because the directory is cleaned up.

> show? What do you have in seawap's LD_LIBRARY_PATH, and is the
> problem that you need to add /home/fabien/clgtk/lib to it

Argh. Would it be so stupid? :-( I thought the configuration stuff would
manage the link path automatically, which may be quite naïve, indeed.

> PS Could you try blowing away the accache directory so we can rule out
> bad cached configure stuff?

Hmmm. I've tried that before. I can do it again.

I've added an explicit LD_LIBRARY_PATH, which will be triggered at some
point later.

--
Fabien Coelho - CRI, MINES ParisTech

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zohar Gofer 2021-02-15 09:37:53 pg_replication_origin_session_setup and superuser
Previous Message Amit Langote 2021-02-15 08:53:33 Re: A reloption for partitioned tables - parallel_workers