-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: unknown attribute target_clones #546
Comments
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 |
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 |
Thanks @japinli. It looks like support for |
Thanks for your quick fix. |
Hi,
When I try to build pgvector on Ubuntu 22.04, it complains $subject, as follows:
Here are my environments:
I found that commit 4e093f9 changes this behavior.
What's the reason to remove the checking of the target_clones attribute?
The text was updated successfully, but these errors were encountered: