Hi, <div><br></div><div>You need to choose CFLAGS that are common between clang and gcc, as PostGIS is being compiled by both, to support JIT. This is the same for any extension of PG11. <br><br><div class="gmail_quote"><div dir="ltr">On чц, 23 жні 2018, 16:16 Devrim Gündüz <<a href="mailto:devrim@gunduz.org">devrim@gunduz.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
While RPMifying 2.5.0beta2, I hit the error below. The same spec file builds<br>
against PostgreSQL 10, btw. This is related to the new JIT feature:<br>
<br>
/usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2  -I../liblwgeom -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I../libpgcommon  -I/usr/geos36/include -I/usr/proj49/include  -I/usr/include/libxml2 -I/usr/include -DHAVE_SFCGAL    -fPIC -I/usr/include -DHAVE_SFCGAL -I. -I./ -I/usr/pgsql-11/include/server -I/usr/pgsql-11/include/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include -flto=thin -emit-llvm -c -o postgis_module.bc postgis_module.c<br>
clang-6.0: error: unknown argument: '-fcf-protection'<br>
make[2]: *** [/usr/pgsql-11/lib/pgxs/src/makefiles/../../src/Makefile.global:1009: postgis_module.bc] Error 1<br>
<br>
Can you please take a look?<br>
<br>
Thanks!<br>
<br>
Regards,<br>
-- <br>
Devrim Gündüz<br>
EnterpriseDB: <a href="https://www.enterprisedb.com" rel="noreferrer" target="_blank">https://www.enterprisedb.com</a><br>
PostgreSQL Consultant, Red Hat Certified Engineer<br>
Twitter: @DevrimGunduz , @DevrimGunduzTR<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Darafei Praliaskouski<br>Support me: <a href="http://patreon.com/komzpa">http://patreon.com/komzpa</a></div></div>