Comments (4)
Hi @japinli, I'm not sure how to reproduce the warning (it's also not present on CI). Can you paste the compiler command that's generating it? From my understanding, all of the compilers where we enable USE_TARGET_CLONES
should support it.
from pgvector.
Hi @japinli, I'm not sure how to reproduce the warning (it's also not present on CI). Can you paste the compiler command that's generating it? From my understanding, all of the compilers where we enable
USE_TARGET_CLONES
should support it.
Here are my compile actions:
japin@b97a6632-06dc-427e-aa18-cbd95d4bbfae:~/codes/extensions/pgvector$ make USE_PGXS=1
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/bitutils.o src/bitutils.c -MMD -MP -MF .deps/bitutils.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/bitvec.o src/bitvec.c -MMD -MP -MF .deps/bitvec.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/halfutils.o src/halfutils.c -MMD -MP -MF .deps/halfutils.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/halfvec.o src/halfvec.c -MMD -MP -MF .deps/halfvec.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/hnsw.o src/hnsw.c -MMD -MP -MF .deps/hnsw.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/hnswbuild.o src/hnswbuild.c -MMD -MP -MF .deps/hnswbuild.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/hnswinsert.o src/hnswinsert.c -MMD -MP -MF .deps/hnswinsert.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/hnswscan.o src/hnswscan.c -MMD -MP -MF .deps/hnswscan.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/hnswutils.o src/hnswutils.c -MMD -MP -MF .deps/hnswutils.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/hnswvacuum.o src/hnswvacuum.c -MMD -MP -MF .deps/hnswvacuum.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/ivfbuild.o src/ivfbuild.c -MMD -MP -MF .deps/ivfbuild.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/ivfflat.o src/ivfflat.c -MMD -MP -MF .deps/ivfflat.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/ivfinsert.o src/ivfinsert.c -MMD -MP -MF .deps/ivfinsert.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/ivfkmeans.o src/ivfkmeans.c -MMD -MP -MF .deps/ivfkmeans.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/ivfscan.o src/ivfscan.c -MMD -MP -MF .deps/ivfscan.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/ivfutils.o src/ivfutils.c -MMD -MP -MF .deps/ivfutils.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/ivfvacuum.o src/ivfvacuum.c -MMD -MP -MF .deps/ivfvacuum.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/sparsevec.o src/sparsevec.c -MMD -MP -MF .deps/sparsevec.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/vector.o src/vector.c -MMD -MP -MF .deps/vector.Po
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -shared -o vector.so src/bitutils.o src/bitvec.o src/halfutils.o src/halfvec.o src/hnsw.o src/hnswbuild.o src/hnswinsert.o src/hnswscan.o src/hnswutils.o src/hnswvacuum.o src/ivfbuild.o src/ivfflat.o src/ivfinsert.o src/ivfkmeans.o src/ivfscan.o src/ivfutils.o src/ivfvacuum.o src/sparsevec.o src/vector.o -L/data/japin/codes/postgres/build/pg/lib -L/usr/lib/llvm-12/lib -Wl,--as-needed -Wl,-rpath,'/data/japin/codes/postgres/build/pg/lib',--enable-new-dtags -fvisibility=hidden
cp sql/vector.sql sql/vector--0.7.0.sql
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/bitutils.bc src/bitutils.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/bitvec.bc src/bitvec.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/halfutils.bc src/halfutils.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/halfvec.bc src/halfvec.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/hnsw.bc src/hnsw.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/hnswbuild.bc src/hnswbuild.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/hnswinsert.bc src/hnswinsert.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/hnswscan.bc src/hnswscan.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/hnswutils.bc src/hnswutils.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/hnswvacuum.bc src/hnswvacuum.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/ivfbuild.bc src/ivfbuild.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/ivfflat.bc src/ivfflat.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/ivfinsert.bc src/ivfinsert.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/ivfkmeans.bc src/ivfkmeans.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/ivfscan.bc src/ivfscan.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/ivfutils.bc src/ivfutils.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/ivfvacuum.bc src/ivfvacuum.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/sparsevec.bc src/sparsevec.c
/usr/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2 -I. -I./ -I/data/japin/codes/postgres/build/pg/include/server -I/data/japin/codes/postgres/build/pg/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/vector.bc src/vector.c
src/vector.c:568:1: warning: unknown attribute 'target_clones' ignored [-Wunknown-attributes]
VECTOR_TARGET_CLONES static float
^~~~~~~~~~~~~~~~~~~~
src/vector.c:38:45: note: expanded from macro 'VECTOR_TARGET_CLONES'
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "fma")))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vector.c:615:1: warning: unknown attribute 'target_clones' ignored [-Wunknown-attributes]
VECTOR_TARGET_CLONES static float
^~~~~~~~~~~~~~~~~~~~
src/vector.c:38:45: note: expanded from macro 'VECTOR_TARGET_CLONES'
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "fma")))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vector.c:657:1: warning: unknown attribute 'target_clones' ignored [-Wunknown-attributes]
VECTOR_TARGET_CLONES static double
^~~~~~~~~~~~~~~~~~~~
src/vector.c:38:45: note: expanded from macro 'VECTOR_TARGET_CLONES'
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "fma")))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vector.c:733:1: warning: unknown attribute 'target_clones' ignored [-Wunknown-attributes]
VECTOR_TARGET_CLONES static float
^~~~~~~~~~~~~~~~~~~~
src/vector.c:38:45: note: expanded from macro 'VECTOR_TARGET_CLONES'
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "fma")))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
japin@b97a6632-06dc-427e-aa18-cbd95d4bbfae:~/codes/extensions/pgvector$ pg_config
BINDIR = /data/japin/codes/postgres/build/pg/bin
DOCDIR = /data/japin/codes/postgres/build/pg/share/doc
HTMLDIR = /data/japin/codes/postgres/build/pg/share/doc
INCLUDEDIR = /data/japin/codes/postgres/build/pg/include
PKGINCLUDEDIR = /data/japin/codes/postgres/build/pg/include
INCLUDEDIR-SERVER = /data/japin/codes/postgres/build/pg/include/server
LIBDIR = /data/japin/codes/postgres/build/pg/lib
PKGLIBDIR = /data/japin/codes/postgres/build/pg/lib
LOCALEDIR = /data/japin/codes/postgres/build/pg/share/locale
MANDIR = /data/japin/codes/postgres/build/pg/share/man
SHAREDIR = /data/japin/codes/postgres/build/pg/share
SYSCONFDIR = /data/japin/codes/postgres/build/pg/etc
PGXS = /data/japin/codes/postgres/build/pg/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/data/japin/codes/postgres/build/pg' '--enable-tap-tests' '--enable-debug' '--enable-cassert' '--enable-depend' '--enable-dtrace' '--with-icu' '--with-llvm' '--with-openssl' '--with-python' '--with-libxml' '--with-libxslt' '--with-lz4' '--with-pam' 'CFLAGS=-Wmissing-prototypes -Wincompatible-pointer-types'
CC = gcc
CPPFLAGS = -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -Wmissing-prototypes -Wincompatible-pointer-types
CFLAGS_SL = -fPIC
LDFLAGS = -L/usr/lib/llvm-12/lib -Wl,--as-needed -Wl,-rpath,'/data/japin/codes/postgres/build/pg/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -llz4 -lxslt -lxml2 -lpam -lssl -lcrypto -lz -lreadline -lm
VERSION = PostgreSQL 16.2
from pgvector.
Thanks @japinli. It looks like support for target_clones
was added in Clang 14 (llvm/llvm-project@9deab60), so restored the attribute check in the commit above.
from pgvector.
Thanks @japinli. It looks like support for
target_clones
was added in Clang 14 (llvm/llvm-project@9deab60), so restored the attribute check in the commit above.
Thanks for your quick fix.
from pgvector.
Related Issues (20)
- What are the impacts of dimension for sparsevec? HOT 1
- Duplicate error when creating a vector index using HNSW HOT 6
- tuning the tmpCtx to improve HNSW build performance HOT 5
- Index vector_ip_ops does not work for halfvec HOT 1
- Can the "LIMIT" statement be included as one of arguments when doing scan operation? HOT 1
- SQL Error [XX000]: FATAL: failed to open bitcode file "/usr/local/lib/postgresql/bitcode/vector/src/vector.bc": No such file or directory HOT 4
- how to list existing databases in postgresql using python HOT 2
- HNSW Indexing and Filtering HOT 2
- A question about building index in background. HOT 1
- Installation instructions unclear HOT 1
- Large vector data type will cause performance decline? HOT 1
- A question regard table_open() in background worker when building index HOT 3
- jVector Implementation
- Type Error when working with Langchain (Missing Positional Argument: evalue) HOT 1
- pgvector still use row-based storage instead of columnar storage ? HOT 1
- Can't get the query planner to use HNSW index HOT 3
- 【search failed】 2000w、768dim, data search failed HOT 1
- ERROR: index row size 6160 exceeds btree version 4 maximum 2704 for index HOT 3
- Make difficulties HOT 2
- Table Insert Performance with HNSW Index HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgvector.