[postgis-devel] 2.5.0beta2 build error against PostgreSQL 11 beta3

Darafei "Komяpa" Praliaskouski me at komzpa.net
Thu Aug 23 06:19:25 PDT 2018


Hi,

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.

On чц, 23 жні 2018, 16:16 Devrim Gündüz <devrim at gunduz.org> wrote:

>
> Hi,
>
> While RPMifying 2.5.0beta2, I hit the error below. The same spec file
> builds
> against PostgreSQL 10, btw. This is related to the new JIT feature:
>
> /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
> clang-6.0: error: unknown argument: '-fcf-protection'
> make[2]: ***
> [/usr/pgsql-11/lib/pgxs/src/makefiles/../../src/Makefile.global:1009:
> postgis_module.bc] Error 1
>
> Can you please take a look?
>
> Thanks!
>
> Regards,
> --
> Devrim Gündüz
> EnterpriseDB: https://www.enterprisedb.com
> PostgreSQL Consultant, Red Hat Certified Engineer
> Twitter: @DevrimGunduz , @DevrimGunduzTR
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-devel

-- 
Darafei Praliaskouski
Support me: http://patreon.com/komzpa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20180823/5e53caf2/attachment.html>


More information about the postgis-devel mailing list