-
Notifications
You must be signed in to change notification settings - Fork 1
Description
error: failed to run custom build command for vector v0.1.0 (/Users/xwg/dev/rust/diskannrs/vector)
Caused by:
process didn't exit successfully: /Users/xwg/dev/rust/diskannrs/target/debug/build/vector-af8f441a8c195020/build-script-build (exit status: 1)
--- stdout
cargo:rerun-if-changed=distance.c
Building for MacOS
OUT_DIR = Some(/Users/xwg/dev/rust/diskannrs/target/debug/build/vector-b195271d5f7659a5/out)
TARGET = Some(aarch64-apple-darwin)
OPT_LEVEL = Some(0)
HOST = Some(aarch64-apple-darwin)
cargo:rerun-if-env-changed=CC_x86_64-apple-darwin
CC_x86_64-apple-darwin = None
cargo:rerun-if-env-changed=CC_x86_64_apple_darwin
CC_x86_64_apple_darwin = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CROSS_COMPILE
CROSS_COMPILE = None
RUSTC_LINKER = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
cargo:rerun-if-env-changed=MACOSX_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = Some(-mavx2 -mfma -Wno-error -MP -O2 -D NDEBUG -D MKL_ILP64 -D USE_AVX2 -D USE_ACCELERATED_PQ -D NOMINMAX -D _TARGET_ARM_APPLE_DARWIN)
cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS
CC_SHELL_ESCAPED_FLAGS = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_apple_darwin
CFLAGS_x86_64_apple_darwin = None
cargo:rerun-if-env-changed=CFLAGS_x86_64-apple-darwin
CFLAGS_x86_64-apple-darwin = None
CARGO_ENCODED_RUSTFLAGS = Some()
cargo:warning=distance.c:19:21: error: always_inline function '_mm256_cvtph_ps' requires target feature 'f16c', but would be inlined into function 'distance_compare_avx2_f16' that is compiled without support for 'f16c'
cargo:warning= 19 | __m256 v1 = _mm256_cvtph_ps(v1_packed);
cargo:warning= | ^
cargo:warning=distance.c:20:21: error: always_inline function '_mm256_cvtph_ps' requires target feature 'f16c', but would be inlined into function 'distance_compare_avx2_f16' that is compiled without support for 'f16c'
cargo:warning= 20 | __m256 v2 = _mm256_cvtph_ps(v2_packed);
cargo:warning= | ^
cargo:warning=2 errors generated.
--- stderr
error occurred in cc-rs: command did not execute successfully (status code exit status: 1): env -u IPHONEOS_DEPLOYMENT_TARGET LC_ALL="C" "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "--target=x86_64-apple-macosx" "-mmacosx-version-min=15.2" "-Werror" "-mavx2" "-mfma" "-Wno-error" "-MP" "-O2" "-D" "NDEBUG" "-D" "MKL_ILP64" "-D" "USE_AVX2" "-D" "USE_ACCELERATED_PQ" "-D" "NOMINMAX" "-D" "_TARGET_ARM_APPLE_DARWIN" "-o" "/Users/xwg/dev/rust/diskannrs/target/debug/build/vector-b195271d5f7659a5/out/db3b6bfb95261072-distance.o" "-c" "distance.c"