public inbox for [email protected]
help / color / mirror / Atom feedPGXS on CentOS 7.6
3+ messages / 2 participants
[nested] [flat]
* PGXS on CentOS 7.6
@ 2020-06-09 08:41 Николай Чадаев <[email protected]>
2020-06-09 15:24 ` Re: PGXS on CentOS 7.6 Tom Lane <[email protected]>
0 siblings, 1 reply; 3+ messages in thread
From: Николай Чадаев @ 2020-06-09 08:41 UTC (permalink / raw)
To: [email protected]
<div><div>Hi all</div><div> </div><div>I don't understand how PGXS work under CentOS 7.</div><div>For example: the small and correct Makefile</div><div> </div><div>...........................................................</div><div>MODULE_big = pg_hashids</div><div>OBJS = pg_hashids.o hashids.o</div><div> </div><div>EXTENSION = pg_hashids</div><div>DATA = pg_hashids--1.3.sql \</div><div>pg_hashids--1.2.1--1.3.sql \</div><div>pg_hashids--1.2--1.3.sql \</div><div>pg_hashids--1.1--1.2.sql \</div><div>pg_hashids--1.0--1.1.sql</div><div> </div><div>PG_CONFIG = pg_config</div><div>PGXS := $(shell $(PG_CONFIG) --pgxs)</div><div>include $(PGXS)</div><div>................................................................</div><div> </div><div>I try to build it.</div><div> </div><div>PG>make PG_CONFIG=/usr/pgsql-12/bin/pg_config</div><div>. . . . . .</div><div>$>make PG_CONFIG=/usr/pgsql-12/bin/pg_config</div><div>/opt/rh/llvm-toolset-7/root/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2 -I. -I./ -I/usr/pgsql-12/include/server -I/usr/pgsql-12/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o pg_hashids.bc pg_hashids.c</div><div>clang: error: unknown argument: '-flto=thin'</div><div> </div><div>The error</div><div> </div><div>On Ubuntu 18.4 all are going well.</div></div><div> </div><div>-- </div><div>Nick Chadaev<div> </div><div> +7(916)175-3061</div><div> +7(958)820-7975</div><div> </div><div> </div></div>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PGXS on CentOS 7.6
2020-06-09 08:41 PGXS on CentOS 7.6 Николай Чадаев <[email protected]>
@ 2020-06-09 15:24 ` Tom Lane <[email protected]>
2020-06-09 15:43 ` Re: PGXS on CentOS 7.6 Николай Чадаев <[email protected]>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2020-06-09 15:24 UTC (permalink / raw)
To: Николай Чадаев <[email protected]>; +Cc: [email protected]
=?utf-8?B?0J3QuNC60L7Qu9Cw0Lkg0KfQsNC00LDQtdCy?= <[email protected]> writes:
PG>make PG_CONFIG=/usr/pgsql-12/bin/pg_config
. . . . . .
$>make PG_CONFIG=/usr/pgsql-12/bin/pg_config
/opt/rh/llvm-toolset-7/root/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2 -I. -I./ -I/usr/pgsql-12/include/server -I/usr/pgsql-12/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o pg_hashids.bc pg_hashids.c
clang: error: unknown argument: '-flto=thin'
Hm. I'm guessing that that version of clang is too old. Are you
perhaps overriding the value of CLANG that our Makefile.global
tries to set?
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PGXS on CentOS 7.6
2020-06-09 08:41 PGXS on CentOS 7.6 Николай Чадаев <[email protected]>
2020-06-09 15:24 ` Re: PGXS on CentOS 7.6 Tom Lane <[email protected]>
@ 2020-06-09 15:43 ` Николай Чадаев <[email protected]>
0 siblings, 0 replies; 3+ messages in thread
From: Николай Чадаев @ 2020-06-09 15:43 UTC (permalink / raw)
To: Tom Lane <[email protected]>; +Cc: [email protected] <[email protected]>
<div>Many thanks Tom,</div><div> </div><div>I am thinking about it.</div><div> </div><div>-- </div><div>Regards Nick<div> </div><div> +7(916)175-3061</div><div> +7(958)820-7975</div><div> </div><div> </div><div> </div><div> </div><div>09.06.2020, 18:24, "Tom Lane" <[email protected]>:</div><blockquote><p>=?utf-8?B?0J3QuNC60L7Qu9Cw0Lkg0KfQsNC00LDQtdCy?= <<a href="mailto:[email protected]">[email protected]</a>> writes:<br />PG>make PG_CONFIG=/usr/pgsql-12/bin/pg_config<br />. . . . . .<br />$>make PG_CONFIG=/usr/pgsql-12/bin/pg_config<br />/opt/rh/llvm-toolset-7/root/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2 -I. -I./ -I/usr/pgsql-12/include/server -I/usr/pgsql-12/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -flto=thin -emit-llvm -c -o pg_hashids.bc pg_hashids.c<br />clang: error: unknown argument: '-flto=thin'<br /><br />Hm. I'm guessing that that version of clang is too old. Are you<br />perhaps overriding the value of CLANG that our Makefile.global<br />tries to set?<br /><br /> regards, tom lane</p></blockquote></div>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-06-09 15:43 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-06-09 08:41 PGXS on CentOS 7.6 Николай Чадаев <[email protected]>
2020-06-09 15:24 ` Tom Lane <[email protected]>
2020-06-09 15:43 ` Николай Чадаев <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox