Closed df7cb closed 6 years ago
I'm also getting these on my Fedora 28 box (gcc 8.1.1).
/usr/lib64/ccache/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -O2 -I/usr/include/gdal -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 ogr_fdw_common.bc ogr_fdw_common.c make[1]: No rule to make target 'stringbuffer_pg.bc', needed by 'all'. Stop. make[1]: Waiting for unfinished jobs.... stringbuffer.c: In function 'stringbuffer_avprintf': stringbuffer.c:220:2: warning: function 'stringbuffer_avprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] len = vsnprintf(s->str_end, maxlen, fmt, ap2); ^~~ stringbuffer.c:240:3: warning: function 'stringbuffer_avprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] len = vsnprintf(s->str_end, maxlen, fmt, ap); ^~~ ogr_fdw_deparse.c: In function 'ogrDeparseNullTest': ogr_fdw_deparse.c:490:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ ogr_fdw_deparse.c:493:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' return true; ^
~ogr_fdw.c: In function 'ogrReadColumnData': ogr_fdw.c:1158:16: warning: implicit declaration of function 'get_relid_attribute_name'; did you mean 'get_rte_attribute_name'? [-Wimplicit-function-declaration] col.pgname = get_relid_attribute_name(rel->rd_id, att_tuple->attnum); ^~~~~~~~ get_rte_attribute_name ogr_fdw.c:1158:14: warning: assignment to 'char ' from 'int' makes pointer from integer without a cast [-Wint-conversion] col.pgname = get_relid_attribute_name(rel->rd_id, att_tuple->attnum); ^ ogr_fdw.c:1158:16: warning: implicit declaration of function 'get_relid_attribute_name' is invalid in C99 [-Wimplicit-function-declaration] col.pgname = get_relid_attribute_name(rel->rd_id, att_tuple->attnum); ^ ogr_fdw.c:1158:14: warning: incompatible integer to pointer conversion assigning to 'char ' from 'int' [-Wint-conversion] col.pgname = get_relid_attribute_name(rel->rd_id, att_tuple->attnum); ^~~~~~~~~~~~2 warnings generated. make[1]: Leaving directory '/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/master/ogr_fdw/master/pgsql-ogr-fdw-1.0.5' error: Bad exit status from /var/tmp/rpm-tmp.LvPh5Z (%build)
pgsql-ogr-fdw fails to build with PG 11beta1 when JIT is enabled, i.e. PostgreSQL was configured --with-llvm:
The reason it is failing is because of this Makefile rule, which builds
pg_stringbuffer_pg.o
frompg_stringbuffer.c
- note the missing_pg
part:This might as well be a PGXS bug - I'll open a thread on pgsql-hacker for discussion: https://www.postgresql.org/message-id/20180528074432.GB22299%40msg.df7cb.de