pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: TalGloz <glozmantal@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Compiling C Extension Functions against PostgreSQL 12
Date: Sun, 03 May 2020 10:11:05 +0100
Message-ID: <87imhd2z1n.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <1588460637089-0.post@n3.nabble.com>
References: <1588447687198-0.post@n3.nabble.com>
	<4edd59f3-4d95-c41c-6839-7d022946f8d4@aklaver.com>
	<1588448354769-0.post@n3.nabble.com>
	<1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com>
	<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>

>>>>> "TalGloz" == TalGloz  <glozmantal@gmail.com> writes:

 TalGloz> Which is good, my seal_mean_cxx_v2.so being created and copied
 TalGloz> to /usr/pgsql-12/lib/. But right after that I get this and it
 TalGloz> doesn't seem to effect my seal_mean_cxx_v2.so library:

What's happening here is that it's attempting to build LLVM bitcode
files for your library for the benefit of the JIT compiler that exists
in recent postgres versions - without these files, your extension
functions cannot be inlined into generated code.

This requires that your code be compilable using clang (as well as gcc
if that's what was used to build PG itself), and there's clearly some
disagreement going on between clang and your system header files that's
causing the failure.

I didn't see an easy way of disabling bitcode emission for a module,
though I think that has been discussed before.

-- 
Andrew (irc:RhodiumToad)





view thread (20+ messages)  latest in thread

Message-ID: <87imhd2z1n.fsf@news-spur.riddles.org.uk>
Permalink:  ../87imhd2z1n.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87imhd2z1n.fsf@news-spur.riddles.org.uk

 · 

reply

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: andrew@tao11.riddles.org.uk, glozmantal@gmail.com
  Subject: Re: Compiling C Extension Functions against PostgreSQL 12
  In-Reply-To: <87imhd2z1n.fsf@news-spur.riddles.org.uk>
  References: <1588447687198-0.post@n3.nabble.com> <4edd59f3-4d95-c41c-6839-7d022946f8d4@aklaver.com> <1588448354769-0.post@n3.nabble.com> <1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com> <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>

* 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