Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVFaC-0005s7-5s for pgsql-general@arkaria.postgresql.org; Sun, 03 May 2020 14:27:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jVFa9-0005x2-Kp for pgsql-general@arkaria.postgresql.org; Sun, 03 May 2020 14:27:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVFa9-0005wv-DD for pgsql-general@lists.postgresql.org; Sun, 03 May 2020 14:27:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVFa2-00055I-0x for pgsql-general@postgresql.org; Sun, 03 May 2020 14:27:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 043EQo3L015294; Sun, 3 May 2020 10:26:50 -0400 From: Tom Lane To: TalGloz cc: pgsql-general@postgresql.org Subject: Re: Compiling C Extension Functions against PostgreSQL 12 In-reply-to: <1588498969130-0.post@n3.nabble.com> References: <1588448354769-0.post@n3.nabble.com> <1b0a4606-2964-48ef-0736-ff51db2d2e1d@aklaver.com> <1588449802471-0.post@n3.nabble.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> Comments: In-reply-to TalGloz message dated "Sun, 03 May 2020 02:42:49 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15292.1588516010.1@sss.pgh.pa.us> Date: Sun, 03 May 2020 10:26:50 -0400 Message-ID: <15293.1588516010@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk TalGloz 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 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