[FIX] fix alpine dependencies for pg_vector compilation#34
[FIX] fix alpine dependencies for pg_vector compilation#34Auneor wants to merge 1 commit intoTecnativa:masterfrom
Conversation
|
Could you show what errors do you have please? |
|
clang-19 -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-format-truncation -O2 -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2 -flto=thin -emit-llvm -c -o src/bitutils.bc src/bitutils.c |
|
Which version are you trying to build? And how? |
|
simon@ ~/git/docker-postgres-autoconf (master_tecnativa) $ git remote -v simon@ ~/git/docker-postgres-autoconf (master_tecnativa) $ git status Modifications qui ne seront pas validées : simon@ ~/git/docker-postgres-autoconf (master_tecnativa) $ git rev-parse HEAD simon@ ~/git/docker-postgres-autoconf (master_tecnativa) $ git diff simon@ ~/git/docker-postgres-autoconf (master_tecnativa) $ docker build -t test-pgvector:1.0 . Sending build context to Docker daemon 18.94kB SNIPgcc -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 -Wmissing-variable-declarations -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -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/usr/local/lib -L/usr/local/lib -Wl,--as-needed -fvisibility=hidden |
|
I can build v18 using this command: And i have no problems. Could you try? |
|
if i do your command with --no-cache i have the error: cp sql/vector.sql sql/vector--0.8.1.sql |
|
docker build --build-arg BASE_TAG=18-alpine -t docker-postgres-autoconf:local . --no-cache |
|
I can’t reproduce it: with BASE_TAG=18-alpine the build completes and I don’t see any clang-19 ... -emit-llvm step. Could you paste the output of: and try forcing amd64: Also, are you on an ARM machine (Apple Silicon / ARM64 Linux) or using emulation (--platform / QEMU)? The base image and toolchain can differ between amd64 and arm64, which could explain why you hit the clang-19/LLVM bitcode path. |
|
i'm on amd64: |
|
Nice, I can see that you don't have buildx installed. I recomend you to install it. On Ubuntu 24.04 you can usually do: Then, you will be able to build, for example, using this command: Let me know if this works for you. |
|
Hello Josep, |
I had errors when building image, leaving the image without pg_vector enabled.
This fix the build errors