[postgis-tickets] [PostGIS] #4094: Failure to build with PG 11devel configured --with-llvm

PostGIS trac at osgeo.org
Tue May 22 08:09:04 PDT 2018


#4094: Failure to build with PG 11devel configured --with-llvm
-----------------------------------+--------------------------------
 Reporter:  laurenz                |      Owner:  strk
     Type:  patch                  |     Status:  new
 Priority:  medium                 |  Milestone:  PostGIS PostgreSQL
Component:  build/upgrade/install  |    Version:  trunk
 Keywords:  LLVM clang             |
-----------------------------------+--------------------------------
 When PostgreSQL is configured `--with-llvm`, building PostGIS fails with:

 {{{
 /usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing
 -fwrapv -O2  -I/usr/include   -I/usr/include/libxml2 -I/usr/include
 -DHAVE_SFCGAL    -I/usr/include/gdal "-I../../libpgcommon"  -I../rt_core
 -I. -I./ -I/home/laurenz/pg/include/postgresql/server
 -I/home/laurenz/pg/include/postgresql/internal  -D_GNU_SOURCE
 -I/usr/include/libxml2  -flto=thin -emit-llvm -c -o rtpostgis.bc
 rtpostgis.c
 In file included from rtpostgis.c:138:
 ../../libpgcommon/lwgeom_pg.h:23:10: fatal error: 'liblwgeom.h' file not
 found
 #include "liblwgeom.h"
          ^~~~~~~~~~~~~
 1 error generated.
 make[2]: ***
 [/home/laurenz/pg/lib/postgresql/pgxs/src/makefiles/../../src/Makefile.global:1009:
 rtpostgis.bc] Error 1
 make[2]: Leaving directory '/home/laurenz/postgis/raster/rt_pg'
 make[1]: *** [Makefile:32: pglib] Error 2
 make[1]: Leaving directory '/home/laurenz/postgis/raster'
 make: *** [GNUmakefile:16: all] Error 1
 }}}

 The attached patch fixes the problem for me.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4094>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list