Open pront opened 1 day ago
Hello @pront -- Thanks for reporting this!
We started noticing this failure on certain CI jobs a couple of weeks ago. I put up a PR to address it: #584
As a workaround, you might try setting CFLAGS
in your environment:
export CFLAGS="-Wno-overriding-t-option"
This appears to have worked when I tested it here.
We plan to put out another release of aws-lc-fips-sys soon to correct this issue.
We plan to put out another release of aws-lc-fips-sys soon to correct this issue.
Thank you @justsmth. Looking forward to the next release.
Problem:
Build error:
clang: error: overriding '-mmacos-version-min=14.7' option with '--target=arm64-apple-macosx15.1' [-Werror,-Woverriding-option]
``` error: failed to run custom build command for `aws-lc-fips-sys v0.12.13` note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation. Caused by: process didn't exit successfully: `/Users/pavlos.rontidis/CLionProjects/vector/target/debug/build/aws-lc-fips-sys-4a4993c8465640bf/build-script-main` (exit status: 101) --- stdout cargo:rerun-if-env-changed=AWS_LC_FIPS_SYS_NO_PREFIX cargo:rerun-if-env-changed=AWS_LC_FIPS_SYS_PREGENERATING_BINDINGS cargo:rerun-if-env-changed=AWS_LC_FIPS_SYS_EXTERNAL_BINDGEN cargo:rerun-if-env-changed=AWS_LC_FIPS_SYS_NO_ASM cargo:rustc-cfg=aarch64_apple_darwin cargo:rerun-if-env-changed=AWS_LC_FIPS_SYS_STATIC cargo:rerun-if-env-changed=AWS_LC_FIPS_SYS_STATIC cargo:rerun-if-env-changed=CMAKE_TOOLCHAIN_FILE cargo:rerun-if-env-changed=CMAKE_TOOLCHAIN_FILE_aarch64_apple_darwin CMAKE_TOOLCHAIN_FILE_aarch64-apple-darwin = None CMAKE_TOOLCHAIN_FILE_aarch64_apple_darwin = None HOST_CMAKE_TOOLCHAIN_FILE = None CMAKE_TOOLCHAIN_FILE = None CMAKE_GENERATOR_aarch64-apple-darwin = None CMAKE_GENERATOR_aarch64_apple_darwin = None HOST_CMAKE_GENERATOR = None CMAKE_GENERATOR = None CMAKE_PREFIX_PATH_aarch64-apple-darwin = None CMAKE_PREFIX_PATH_aarch64_apple_darwin = None HOST_CMAKE_PREFIX_PATH = None CMAKE_PREFIX_PATH = None CMAKE_aarch64-apple-darwin = None CMAKE_aarch64_apple_darwin = None HOST_CMAKE = None CMAKE = Some("cmake") running: cd "/Users/pavlos.rontidis/CLionProjects/vector/target/debug/build/aws-lc-fips-sys-a5a091a5020ce430/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/Users/pavlos.rontidis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-fips-sys-0.12.13" "-DBUILD_SHARED_LIBS=1" "-DCMAKE_BUILD_TYPE=debug" "-DBORINGSSL_PREFIX=aws_lc_fips_0_12_13_" "-DBORINGSSL_PREFIX_HEADERS=/Users/pavlos.rontidis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-fips-sys-0.12.13/generated-include" "-DBUILD_TESTING=OFF" "-DBUILD_LIBSSL=OFF" "-DFIPS=1" "-DCMAKE_OSX_ARCHITECTURES=arm64" "-DCMAKE_SYSTEM_PROCESSOR=arm64" "-DCMAKE_INSTALL_PREFIX=/Users/pavlos.rontidis/CLionProjects/vector/target/debug/build/aws-lc-fips-sys-a5a091a5020ce430/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-macosx15.1" "-DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm/bin/clang" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-macosx15.1" "-DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-macosx15.1" "-DCMAKE_ASM_COMPILER=/opt/homebrew/opt/llvm/bin/clang" "--no-warn-unused-cli" Not searching for unused variables given on the command line. -- FIPS build mode configured -- FIPS entropy source method configured: Passive -- stdalign_check.c probe is negative, NOT enabling AWS_LC_STDALIGN_AVAILABLE: -- Change Dir: '/Users/pavlos.rontidis/CLionProjects/vector/target/debug/build/aws-lc-fips-sys-a5a091a5020ce430/out/build/aws-lc/CMakeFiles/CMakeTmp' Run Build Command(s): /opt/homebrew/bin/cmake -E env VERBOSE=1 /opt/homebrew/bin/gmake -f Makefile cmTC_5969a/fast /opt/homebrew/bin/gmake -f CMakeFiles/cmTC_5969a.dir/build.make CMakeFiles/cmTC_5969a.dir/build gmake[1]: Entering directory '/Users/pavlos.rontidis/CLionProjects/vector/target/debug/build/aws-lc-fips-sys-a5a091a5020ce430/out/build/aws-lc/CMakeFiles/CMakeTmp' /opt/homebrew/opt/llvm/bin/clang -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-macosx15.1 -fno-function-sections -fno-data-sections -std=c99 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Werror -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wwrite-strings -Wformat-security -Wunused-result -Wvla -Wtype-limits -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -ggdb -Wall -fvisibility=hidden -fno-common -Wnewline-eof -fcolor-diagnostics -Wstring-concatenation -Wimplicit-fallthrough -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk -mmacosx-version-min=14.7 -Werror -MD -MT CMakeFiles/cmTC_5969a.dir/stdalign_check.c.o -MF CMakeFiles/cmTC_5969a.dir/stdalign_check.c.o.d -o CMakeFiles/cmTC_5969a.dir/stdalign_check.c.o -c /Users/pavlos.rontidis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-fips-sys-0.12.13/aws-lc/tests/compiler_features_tests/stdalign_check.c clang: error: overriding '-mmacos-version-min=14.7' option with '--target=arm64-apple-macosx15.1' [-Werror,-Woverriding-option] gmake[1]: *** [CMakeFiles/cmTC_5969a.dir/build.make:82: CMakeFiles/cmTC_5969a.dir/stdalign_check.c.o] Error 1 gmake[1]: Leaving directory '/Users/pavlos.rontidis/CLionProjects/vector/target/debug/build/aws-lc-fips-sys-a5a091a5020ce430/out/build/aws-lc/CMakeFiles/CMakeTmp' gmake: *** [Makefile:133: cmTC_5969a/fast] Error 2 -- builtin_swap_check.c probe is negative, NOT enabling AWS_LC_BUILTIN_SWAP_SUPPORTED: -- Change Dir: '/Users/pavlos.rontidis/CLionProjects/vector/target/debug/build/aws-lc-fips-sys-a5a091a5020ce430/out/build/aws-lc/CMakeFiles/CMakeTmp' Run Build Command(s): /opt/homebrew/bin/cmake -E env VERBOSE=1 /opt/homebrew/bin/gmake -f Makefile cmTC_bbde8/fast /opt/homebrew/bin/gmake -f CMakeFiles/cmTC_bbde8.dir/build.make CMakeFiles/cmTC_bbde8.dir/build gmake[1]: Entering directory '/Users/pavlos.rontidis/CLionProjects/vector/target/debug/build/aws-lc-fips-sys-a5a091a5020ce430/out/build/aws-lc/CMakeFiles/CMakeTmp' /opt/homebrew/opt/llvm/bin/clang -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-macosx15.1 -fno-function-sections -fno-data-sections -std=c99 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Werror -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wwrite-strings -Wformat-security -Wunused-result -Wvla -Wtype-limits -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -ggdb -Wall -fvisibility=hidden -fno-common -Wnewline-eof -fcolor-diagnostics -Wstring-concatenation -Wimplicit-fallthrough -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk -mmacosx-version-min=14.7 -Werror -MD -MT CMakeFiles/cmTC_bbde8.dir/builtin_swap_check.c.o -MF CMakeFiles/cmTC_bbde8.dir/builtin_swap_check.c.o.d -o CMakeFiles/cmTC_bbde8.dir/builtin_swap_check.c.o -c /Users/pavlos.rontidis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-fips-sys-0.12.13/aws-lc/tests/compiler_features_tests/builtin_swap_check.c clang: error: overriding '-mmacos-version-min=14.7' option with '--target=arm64-apple-macosx15.1' [-Werror,-Woverriding-option] gmake[1]: *** [CMakeFiles/cmTC_bbde8.dir/build.make:82: CMakeFiles/cmTC_bbde8.dir/builtin_swap_check.c.o] Error 1 gmake[1]: Leaving directory '/Users/pavlos.rontidis/CLionProjects/vector/target/debug/build/aws-lc-fips-sys-a5a091a5020ce430/out/build/aws-lc/CMakeFiles/CMakeTmp' gmake: *** [Makefile:133: cmTC_bbde8/fast] Error 2 -- Disabling debug symbols for Clang internal assembler -- Configuring incomplete, errors occurred! --- stderr CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argumentYou can checkout this PR: https://github.com/vectordotdev/vector/pull/21504
Relevant details
AWS-LC for Rust versions or commit:
System information:
Build log: See above.