From 86e394630dc628372de6583675618721f0293dde Mon Sep 17 00:00:00 2001 From: kpango Date: Mon, 15 Jul 2024 16:13:31 +0900 Subject: [PATCH] fix Signed-off-by: kpango --- Makefile | 4 ++-- Makefile.d/build.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 44ddfff5013..5ffc6e47726 100644 --- a/Makefile +++ b/Makefile @@ -597,8 +597,8 @@ ngt/install: /usr/local/include/NGT/Capi.h ## install Faiss faiss/install: /usr/local/lib/libfaiss.so /usr/local/lib/libfaiss.so: - curl -fsSLO https://github.com/facebookresearch/faiss/archive/v$(FAISS_VERSION).tar.gz - tar zxf v$(FAISS_VERSION).tar.gz -C $(TEMP_DIR)/ + curl -fsSL https://github.com/facebookresearch/faiss/archive/v$(FAISS_VERSION).tar.gz -o $(TEMP_DIR)/v$(FAISS_VERSION).tar.gz + tar zxf $(TEMP_DIR)/v$(FAISS_VERSION).tar.gz -C $(TEMP_DIR)/ cd $(TEMP_DIR)/faiss-$(FAISS_VERSION) && \ cmake -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=OFF -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -B build . && \ make -C build -j faiss && \ diff --git a/Makefile.d/build.mk b/Makefile.d/build.mk index 8fb7b6609f8..f51a875fe1c 100644 --- a/Makefile.d/build.mk +++ b/Makefile.d/build.mk @@ -17,7 +17,6 @@ .PHONY: binary/build ## build all binaries binary/build: \ - cmd/agent/core/faiss/faiss \ cmd/agent/core/ngt/ngt \ cmd/agent/sidecar/sidecar \ cmd/discoverer/k8s/discoverer \ @@ -32,12 +31,13 @@ binary/build: \ cmd/tools/benchmark/job/job \ cmd/tools/benchmark/operator/operator \ cmd/index/operator/index-operator + # cmd/agent/core/faiss/faiss \ cmd/agent/core/ngt/ngt: \ ngt/install $(eval CGO_ENABLED = 1) - $(call go-build,agent/core/ngt,-linkmode 'external',-static -fPIC -pthread -fopenmp -std=gnu++20 -lstdc++ -lm -z relro -z now -flto -march=native -fno-plt -Ofast,--sort-common,--as-needed -fvisibility=hidden -ffp-contract=fast $(EXTLDFLAGS), cgo,NGT-$(NGT_VERSION),$@) + $(call go-build,agent/core/ngt,-linkmode 'external',-static -fPIC -pthread -fopenmp -std=gnu++20 -lstdc++ -lm -z relro -z now -flto -march=native -fno-plt -Ofast -fvisibility=hidden -ffp-contract=fast $(EXTLDFLAGS), cgo,NGT-$(NGT_VERSION),$@) cmd/agent/core/faiss/faiss: \ faiss/install