Skip to content

Error while running USE_PGXS=1 make - made sure that clang and postgresql were installed  #2

Description

@brauliovas

1 warning generated.
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/usr/include/postgresql/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o similarity_gin.bc similarity_gin.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/usr/include/postgresql/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o block.bc block.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/usr/include/postgresql/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o cosine.bc cosine.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/usr/include/postgresql/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o dice.bc dice.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/usr/include/postgresql/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o euclidean.bc euclidean.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Xclang -no-opaque-pointers -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/usr/include/postgresql/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o hamming.bc hamming.c
hamming.c:179:65: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'Datum' (aka 'unsigned long') [-Wint-conversion]
elog(DEBUG1, "hammingdistance(%s, %s) = %.3f", DatumGetCString(a),
^
/usr/include/postgresql/server/utils/elog.h:239:34: note: expanded from macro 'elog'
ereport(elevel, errmsg_internal(VA_ARGS))
^~~~~~~~~~~
/usr/include/postgresql/server/utils/elog.h:164:37: note: expanded from macro 'ereport'
ereport_domain(elevel, TEXTDOMAIN, VA_ARGS)
^~~~~~~~~~~
/usr/include/postgresql/server/utils/elog.h:147:4: note: expanded from macro 'ereport_domain'
VA_ARGS, errfinish(FILE, LINE, func);
^~~~~~~~~~~
/usr/include/postgresql/server/postgres.h:335:23: note: passing argument to parameter 'X' here
DatumGetCString(Datum X)
^
hamming.c:180:20: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'Datum' (aka 'unsigned long') [-Wint-conversion]
DatumGetCString(b), res);
^
/usr/include/postgresql/server/utils/elog.h:239:34: note: expanded from macro 'elog'
ereport(elevel, errmsg_internal(VA_ARGS))
^~~~~~~~~~~
/usr/include/postgresql/server/utils/elog.h:164:37: note: expanded from macro 'ereport'
ereport_domain(elevel, TEXTDOMAIN, VA_ARGS)
^~~~~~~~~~~
/usr/include/postgresql/server/utils/elog.h:147:4: note: expanded from macro 'ereport_domain'
VA_ARGS, errfinish(FILE, LINE, func);
^~~~~~~~~~~
/usr/include/postgresql/server/postgres.h:335:23: note: passing argument to parameter 'X' here
DatumGetCString(Datum X)
^
hamming.c:188:58: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'Datum' (aka 'unsigned long') [-Wint-conversion]
elog(DEBUG1, "hamming(%s, %s) = %.3f", DatumGetCString(a), DatumGetCString(b),
^
/usr/include/postgresql/server/utils/elog.h:239:34: note: expanded from macro 'elog'
ereport(elevel, errmsg_internal(VA_ARGS))
^~~~~~~~~~~
/usr/include/postgresql/server/utils/elog.h:164:37: note: expanded from macro 'ereport'
ereport_domain(elevel, TEXTDOMAIN, VA_ARGS)
^~~~~~~~~~~
/usr/include/postgresql/server/utils/elog.h:147:4: note: expanded from macro 'ereport_domain'
VA_ARGS, errfinish(FILE, LINE, func);
^~~~~~~~~~~
/usr/include/postgresql/server/postgres.h:335:23: note: passing argument to parameter 'X' here
DatumGetCString(Datum X)
^
hamming.c:188:78: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'Datum' (aka 'unsigned long') [-Wint-conversion]
elog(DEBUG1, "hamming(%s, %s) = %.3f", DatumGetCString(a), DatumGetCString(b),
^
/usr/include/postgresql/server/utils/elog.h:239:34: note: expanded from macro 'elog'
ereport(elevel, errmsg_internal(VA_ARGS))
^~~~~~~~~~~
/usr/include/postgresql/server/utils/elog.h:164:37: note: expanded from macro 'ereport'
ereport_domain(elevel, TEXTDOMAIN, VA_ARGS)
^~~~~~~~~~~
/usr/include/postgresql/server/utils/elog.h:147:4: note: expanded from macro 'ereport_domain'
VA_ARGS, errfinish(FILE, LINE, func);
^~~~~~~~~~~
/usr/include/postgresql/server/postgres.h:335:23: note: passing argument to parameter 'X' here
DatumGetCString(Datum X)
^
4 errors generated.
make: *** [/usr/lib/postgresql/pgxs/src/makefiles/../../src/Makefile.global:1093: hamming.bc] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions