Created attachment 203060 [details] patch Remove #pragma GCC diagnostic from postgis/lwgeom_functions_basic.c and postgis/lwgeom_geos.c to fix build with base GCC. Tested on powerpc64 and amd64. Hardware sponsored by IntegriCloud.
Thanks.
A commit references this bug: Author: linimon Date: Fri Mar 29 14:41:55 UTC 2019 New revision: 497146 URL: https://svnweb.freebsd.org/changeset/ports/497146 Log: Fix build on gcc-based architectures: lwgeom_functions_basic.c:1566: error: #pragma GCC diagnostic not allowed inside functions PR: 236728 Submitted by: Piotr Kubaj Approved by: maintainer Changes: head/databases/postgis25/Makefile