apache / datasketches-postgresql

PostgreSQL extension providing approximate algorithms based on apache/datasketches-cpp
https://datasketches.apache.org
Apache License 2.0
84 stars 11 forks source link

Docker build failing #45

Closed mmusnjak closed 2 years ago

mmusnjak commented 2 years ago

Hi, My docker build is failing while running make:

#8 73.07 g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -fPIC -fPIC -I/usr/local/include -Iboost -Idatasketches-cpp/common/include -Idatasketches-cpp/kll/include -Idatasketches-cpp/cpc/include -Idatasketches-cpp/theta/include -Idatasketches-cpp/fi/include -Idatasketches-cpp/hll/include -Idatasketches-cpp/tuple/include -Idatasketches-cpp/req/include -I. -I./ -I/usr/include/postgresql/13/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c -o src/req_float_sketch_c_adapter.o src/req_float_sketch_c_adapter.cpp
#8 76.02 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -shared -o datasketches.so src/global_hooks.o src/base64.o src/common.o src/kll_float_sketch_pg_functions.o src/kll_float_sketch_c_adapter.o src/cpc_sketch_pg_functions.o src/cpc_sketch_c_adapter.o src/theta_sketch_pg_functions.o src/theta_sketch_c_adapter.o src/frequent_strings_sketch_pg_functions.o src/frequent_strings_sketch_c_adapter.o src/hll_sketch_pg_functions.o src/hll_sketch_c_adapter.o src/aod_sketch_pg_functions.o src/aod_sketch_c_adapter.o src/req_float_sketch_pg_functions.o src/req_float_sketch_c_adapter.o -L/usr/lib/x86_64-linux-gnu  -Wl,-z,relro -Wl,-z,now -L/usr/lib/llvm-7/lib  -Wl,--as-needed  -lstdc++ -L/usr/local/lib
#8 76.03 src/global_hooks.o: file not recognized: file format not recognized
#8 76.03 collect2: error: ld returned 1 exit status
#8 76.03 make: *** [/usr/lib/postgresql/13/lib/pgxs/src/makefiles/../../src/Makefile.shlib:293: datasketches.so] Error 1
------
executor failed running [/bin/sh -c echo "===> Adding prerequisites..."

Can anyone reproduce this?

mmusnjak commented 2 years ago

Seems to be working fine on Github actions: https://github.com/mmusnjak/datasketches-postgresql/runs/3644111392?check_suite_focus=true

Must be specific to my machine (macos big sur, docker desktop 3.5.2)