-
Notifications
You must be signed in to change notification settings - Fork 109
Description
clang and llvm should be added to the package line, including docker. Otherwise make fails with clang-19 and llvm-to missing
apk add git gcc libc-dev make postgresql-dev postgresql-contrib clang llvm
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./include/ -fvisibility=hidden -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/tds_fdw.bc src/tds_fdw.c make: clang-19: No such file or directory make: *** [/usr/local/lib/postgresql/pgxs/src/makefiles/../../src/Makefile.global:1085: src/tds_fdw.bc] Error 127 hpe-pg:/cfg/fdw/tds_fdw# clang-19 bash: clang-19: command not found
cd '/usr/local/lib/postgresql/bitcode' && /usr/lib/llvm19/bin/llvm-lto -thinlto -thinlto-action=thinlink -o tds_fdw.index.bc tds_fdw/src/tds_fdw.bc tds_fdw/src/options.bc tds_fdw/src/deparse.bc /bin/sh: /usr/lib/llvm19/bin/llvm-lto: not found