Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-03 Thread TalGloz
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 somethi

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-03 Thread Tom Lane
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

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-03 Thread TalGloz
Andrew Gierth wrote >> "TalGloz" == TalGloz < > glozmantal@ > > 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: >

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-03 Thread Andrew Gierth
> "TalGloz" == TalGloz 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 b

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-03 Thread TalGloz
Adrian Klaver-4 wrote > On 5/2/20 4:03 PM, TalGloz wrote: > > Did you? > > In Makefile below I see: > > #PG_LDFLAGS= -L$(INCLUDE_SEAL_LIB) -lseal -pthread > # Seal linker flags > SEAL_LDFLAGS = -L$(INCLUDE_SEAL_LIB) -lseal -pthread > > -- > Adrian Klaver > adrian.klaver@ It actually didn't

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread Adrian Klaver
On 5/2/20 4:03 PM, TalGloz wrote: Tom Lane-2 wrote TalGloz < glozmantal@ > writes: I dont understand why the output for Postgres 12 g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -o seal_diff_cpp.o -c seal_diff_cpp.c

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread TalGloz
Tom Lane-2 wrote > TalGloz < > glozmantal@ > > writes: >> I dont understand why the output for Postgres 12 >> g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute >> -Wformat-security -fno-strict-aliasing -fwrapv -O2 -o seal_diff_cpp.o -c >> seal_diff_cpp.cpp >> seal_diff_cpp.cpp

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread Adrian Klaver
On 5/2/20 2:44 PM, TalGloz wrote: Adrian Klaver-4 wrote On 5/2/20 2:18 PM, Tom Lane wrote: TalGloz < adrian.klaver@ The "include $(PGXS)" is defined in the Makefile. After changig the CXXFLAGS Hmm, time to clean my glasses. Have no idea what the below means. to PG_CXXFLAGS I get:

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread TalGloz
Adrian Klaver-4 wrote > On 5/2/20 2:18 PM, Tom Lane wrote: >> TalGloz < > glozmantal@ > > writes: >>> I dont understand why the output for Postgres 12 >>> g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute >>> -Wformat-security -fno-strict-aliasing -fwrapv -O2 -o seal_diff_cpp.o

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread Adrian Klaver
On 5/2/20 2:18 PM, Tom Lane wrote: TalGloz writes: I dont understand why the output for Postgres 12 g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -o seal_diff_cpp.o -c seal_diff_cpp.cpp seal_diff_cpp.cpp:2:10: fatal error

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread Tom Lane
TalGloz writes: > I dont understand why the output for Postgres 12 > g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute > -Wformat-security -fno-strict-aliasing -fwrapv -O2 -o seal_diff_cpp.o -c > seal_diff_cpp.cpp > seal_diff_cpp.cpp:2:10: fatal error: postgres.h: No such file

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread TalGloz
Adrian Klaver-4 wrote > On 5/2/20 1:09 PM, TalGloz wrote: >> Adrian Klaver-4 wrote > >> >> Yes, they were created when using make against Postgres 10 and I clean >> them >> every time when I try a different version of Postgres. > > Well I'm reaching the end of what I can do. All I have left is t

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread Adrian Klaver
On 5/2/20 1:09 PM, TalGloz wrote: Adrian Klaver-4 wrote Yes, they were created when using make against Postgres 10 and I clean them every time when I try a different version of Postgres. Well I'm reaching the end of what I can do. All I have left is that the examples I have seen use: #in

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread TalGloz
Adrian Klaver-4 wrote > On 5/2/20 1:03 PM, TalGloz wrote: >> Adrian Klaver-4 wrote >>> On 5/2/20 12:39 PM, TalGloz wrote: Adrian Klaver-4 wrote > On 5/2/20 12:28 PM, TalGloz wrote: >> I'm trying to upgrade from PostgreSQL 10 to 12 and I need to compile >> all >> my >> manua

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread Adrian Klaver
On 5/2/20 1:03 PM, TalGloz wrote: Adrian Klaver-4 wrote On 5/2/20 12:39 PM, TalGloz wrote: Adrian Klaver-4 wrote On 5/2/20 12:28 PM, TalGloz wrote: I'm trying to upgrade from PostgreSQL 10 to 12 and I need to compile all my manually created C extension functions against PostrgreSQL 12 before

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread TalGloz
Adrian Klaver-4 wrote > On 5/2/20 12:39 PM, TalGloz wrote: >> Adrian Klaver-4 wrote >>> On 5/2/20 12:28 PM, TalGloz wrote: I'm trying to upgrade from PostgreSQL 10 to 12 and I need to compile all my manually created C extension functions against PostrgreSQL 12 before starti

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread Adrian Klaver
On 5/2/20 12:39 PM, TalGloz wrote: Adrian Klaver-4 wrote On 5/2/20 12:28 PM, TalGloz wrote: I'm trying to upgrade from PostgreSQL 10 to 12 and I need to compile all my manually created C extension functions against PostrgreSQL 12 before starting the upgrade process. I have this Makefile that co

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread TalGloz
Adrian Klaver-4 wrote > On 5/2/20 12:28 PM, TalGloz wrote: >> I'm trying to upgrade from PostgreSQL 10 to 12 and I need to compile all >> my >> manually created C extension functions against PostrgreSQL 12 before >> starting the upgrade process. I have this Makefile that compiles >> perfectly >> th

Re: Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread Adrian Klaver
On 5/2/20 12:28 PM, TalGloz wrote: I'm trying to upgrade from PostgreSQL 10 to 12 and I need to compile all my manually created C extension functions against PostrgreSQL 12 before starting the upgrade process. I have this Makefile that compiles perfectly the seal_diff_cpp.cpp C extension function

Compiling C Extension Functions against PostgreSQL 12

2020-05-02 Thread TalGloz
I'm trying to upgrade from PostgreSQL 10 to 12 and I need to compile all my manually created C extension functions against PostrgreSQL 12 before starting the upgrade process. I have this Makefile that compiles perfectly the seal_diff_cpp.cpp C extension function against PostgreSQL 10: MODULES = se