From: TalGloz <glozmantal@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Compiling C Extension Functions against PostgreSQL 12
Date: Sun, 3 May 2020 07:48:42 -0700 (MST)
Message-ID: <1588517322862-0.post@n3.nabble.com> (raw)
In-Reply-To: <15293.1588516010@sss.pgh.pa.us>
References: <1588449802471-0.post@n3.nabble.com>
<ec76736a-7842-d1ed-13a9-82789ed08017@aklaver.com>
<1588450167090-0.post@n3.nabble.com>
<9443e9f9-1eec-d4f5-eb19-fb6d1da9c587@aklaver.com>
<1588452776591-0.post@n3.nabble.com>
<1610.1588454290@sss.pgh.pa.us>
<1588460637089-0.post@n3.nabble.com>
<87imhd2z1n.fsf@news-spur.riddles.org.uk>
<1588498969130-0.post@n3.nabble.com>
<15293.1588516010@sss.pgh.pa.us>
Tom Lane-2 wrote
> TalGloz <
> glozmantal@
> > writes:
>> Andrew Gierth wrote
>>> I didn't see an easy way of disabling bitcode emission for a module,
>>> though I think that has been discussed before.
>
> After taking a quick look through pgxs.mk, it looks like you might
> be able to do something like
> override with_llvm := no
> in your Makefile before including the PG parts.
>
>> Will the absence of LLVM bit-code files effect the functionality of my
>> "seal_mean_cxx_v2.so" library in Postgresql12 or I just won't benefit
>> from
>> Postgres JIT compiler (postgresql12-llvmjit package)?
>
> Should just prevent the possibility of "inline"-ing your functions
> in JIT compilation.
>
>> All the errors occurring for the llvm compilation part relate to the
>> Microsoft SEAL <https://github.com/microsoft/SEAL> library that
>> my
>> seal_mean_cxx_v2.cpp uses. Since it is a third party library then maybe I
>> should post the errors output there and see what they have to say about
>> it...
>
> Yeah, the ultimate solution is clearly over on that side. These
> last errors you've posted don't seem particularly Postgres-related.
>
> regards, tom lane
Setting "override with_llvm := no" did make the compilation step with llvm
go away. I'm using an older version of SEAL and I wanted to maintain my code
functionality after upgrading to Postgres 12. I'll be posting the llvm
related errors on the SEAL project page for more clarification, maybe the
usage of the old SEAL version is the problem. Anyways, after retaining the
original functionality with Postgres 12 I'll be focusing on updating my code
to comply with the latest SEAL version.
Thanks to all of you for helping me with this "issue".
Best regards,
TalGloz
--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: glozmantal@gmail.com
Subject: Re: Compiling C Extension Functions against PostgreSQL 12
In-Reply-To: <1588517322862-0.post@n3.nabble.com>
References: <1588449802471-0.post@n3.nabble.com> <ec76736a-7842-d1ed-13a9-82789ed08017@aklaver.com> <1588450167090-0.post@n3.nabble.com> <9443e9f9-1eec-d4f5-eb19-fb6d1da9c587@aklaver.com> <1588452776591-0.post@n3.nabble.com> <1610.1588454290@sss.pgh.pa.us> <1588460637089-0.post@n3.nabble.com> <87imhd2z1n.fsf@news-spur.riddles.org.uk> <1588498969130-0.post@n3.nabble.com> <15293.1588516010@sss.pgh.pa.us> <1588517322862-0.post@n3.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox