PGXS on CentOS 7.6

From: Николай Чадаев <nick-ch58(at)yandex(dot)ru>
To: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: PGXS on CentOS 7.6
Date: 2020-06-09 08:41:35
Message-ID: 619711591691985@mail.yandex.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

<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&gt;make PG_CONFIG=/usr/pgsql-12/bin/pg_config</div><div>. . . . . .</div><div>$&gt;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>

Attachment Content-Type Size
unknown_filename text/html 1.5 KB

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2020-06-09 15:24:18 Re: PGXS on CentOS 7.6
Previous Message David Harrigan 2020-06-07 20:02:15 Re: pages_in_range for BRIN index