bcachefs icon indicating copy to clipboard operation
bcachefs copied to clipboard

Nixpkgs’s `pkgsi686Linux.nix.aws-sdk-cpp` package fails to build on `x86_64-linux` with bcachefs

Open Jayman2000 opened this issue 7 months ago • 3 comments

Steps to Reproduce

  1. Open a terminal.

  2. Make sure that you have the Nix package manager installed by running this command:

    nix-build --version
    

    If that command succeeds, then you’re good to go. If that command fails, then you need to install the Nix package manager.

  3. (Optional) Start a VM that can be used to reproduce the bug by running this command:

    nix \
        --extra-experimental-features 'nix-command flakes' \
        run git+https://codeberg.org/JasonYundt/jasons-minimal-nixos-configs.git?rev=fb25382f6f59332b687f6ae4cd4afbdb2e60f25c#run-test-vm-bcachefs
    

    You can replace the run-test-vm-bcachefs part at the end of that previous command with run-test-vm-ext4 if you want to try to follow these steps on an ext4 VM.

  4. Make sure that you’re on an x86_64-linux system by running this command:

    nix-instantiate --eval --expr 'assert builtins.currentSystem == "x86_64-linux"; "You’re using the correct type of system."'
    
  5. Create a file named default.nix that contains this Nix expression:

    # This file is dedicated to the public domain using 🅭🄍1.0:
    # <https://creativecommons.org/publicdomain/zero/1.0>.
    let
      nixpkgsCommit = "75c70069bf0c8cb01eb869c8df890e9468caa366";
      nixpkgsTarball = builtins.fetchTarball {
        url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsCommit}.tar.gz";
        sha256 = "1i46922jw9w86zyk446mhk7ddfnaj6g6vakixcpldyngkg4lr2fk";
      };
      pkgs = import nixpkgsTarball { };
    in
    pkgs.pkgsi686Linux.nix.aws-sdk-cpp
    

    If you’re using the VM from step 3, then you can create default.nix by using GNU nano.

  6. Change directory into the directory that contains default.nix by running this command:

    cd <path-to-dir-that-contains-default.nix>
    
  7. Try to build the Nix expression by running this command:

    nix-build
    
  8. If you used the VM from step 3, then shut it down by running this command:

    systemctl poweroff
    

Results

I tried following the steps to reproduce with an ext4 VM, and the build succeeded. I tried following the steps to reproduce with a bcachefs VM, and the build failed. Here’s a log of the failed build:

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/cw0m3i7wsrnivczcspvsr62942iz0vsg-source
source root is source
unpackPhase completed in 58 seconds
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
substituteStream() in derivation aws-sdk-cpp-1.11.448: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'cmake/AWSSDKConfig.cmake')
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
fixing cmake files...
cmake flags: -DCMAKE&lowbar;FIND&lowbar;USE&lowbar;SYSTEM&lowbar;PACKAGE&lowbar;REGISTRY=OFF -DCMAKE&lowbar;FIND&lowbar;USE&lowbar;PACKAGE&lowbar;REGISTRY=OFF -DCMAKE&lowbar;EXPORT&lowbar;NO&lowbar;PACKAGE&lowbar;REGISTRY=ON -DCMAKE&lowbar;BUILD&lowbar;TYPE=Release -DBUILD&lowbar;TESTING=OFF -DCMAKE&lowbar;INSTALL&lowbar;LOCALEDIR=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448/share/locale -DCMAKE&lowbar;INSTALL&lowbar;LIBEXECDIR=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448/libexec -DCMAKE&lowbar;INSTALL&lowbar;LIBDIR=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448/lib -DCMAKE&lowbar;INSTALL&lowbar;DOCDIR=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448/share/doc/aws-cpp-sdk-all -DCMAKE&lowbar;INSTALL&lowbar;INFODIR=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448/share/info -DCMAKE&lowbar;INSTALL&lowbar;MANDIR=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448/share/man -DCMAKE&lowbar;INSTALL&lowbar;INCLUDEDIR=/nix/store/hikh5yjvag5sc4fmicsbf2kc68cpmyy2-aws-sdk-cpp-1.11.448-dev/include -DCMAKE&lowbar;INSTALL&lowbar;SBINDIR=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448/sbin -DCMAKE&lowbar;INSTALL&lowbar;BINDIR=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448/bin -DCMAKE&lowbar;INSTALL&lowbar;NAME&lowbar;DIR=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448/lib -DCMAKE&lowbar;POLICY&lowbar;DEFAULT&lowbar;CMP0025=NEW -DCMAKE&lowbar;FIND&lowbar;FRAMEWORK=LAST -DCMAKE&lowbar;STRIP=/nix/store/awp4diicbigk3xgsrs26jwx59g09hl43-gcc-wrapper-14.2.1.20250322/bin/strip -DCMAKE&lowbar;RANLIB=/nix/store/awp4diicbigk3xgsrs26jwx59g09hl43-gcc-wrapper-14.2.1.20250322/bin/ranlib -DCMAKE&lowbar;AR=/nix/store/awp4diicbigk3xgsrs26jwx59g09hl43-gcc-wrapper-14.2.1.20250322/bin/ar -DCMAKE&lowbar;C&lowbar;COMPILER=gcc -DCMAKE&lowbar;CXX&lowbar;COMPILER=g++ -DCMAKE&lowbar;INSTALL&lowbar;PREFIX=/nix/store/z9503hz5rjzlcj15hl8hk7n24n5bi23a-aws-sdk-cpp-1.11.448 -DCMAKE&lowbar;MODULE&lowbar;PATH=/nix/store/j5q1a1ky6x7s05ymfbz1f6ilqbik54xi-aws-c-common-0.10.3/lib/cmake -DBUILD&lowbar;DEPS=OFF -DCUSTOM&lowbar;MEMORY&lowbar;MANAGEMENT=0 -DBUILD&lowbar;ONLY=s3\;transfer
CMake Warning at CMakeLists.txt:9 (message):
  In 1.11 releases, we are releasing experimental alternative building
  mode.By setting -DLEGACY&lowbar;BUILD=OFF you can test our advances in modern
  CMake building and provide early feedback.  The legacy support is set by
  default in 1.11, when you complete build updating scripts please update the
  build flags as mentioned in README.md and set -DLEGACY&lowbar;BUILD=OFF.  The
  legacy support will be removed at 1.12.0 release.


CMake Deprecation Warning at CMakeLists.txt:17 (cmake&lowbar;policy):
  The OLD behavior for policy CMP0077 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- TARGET&lowbar;ARCH not specified; inferring host OS to be platform compilation target
-- Building AWS libraries as shared objects
-- Generating linux build config
-- Building project version: 1.11.448
-- The CXX compiler identification is GNU 14.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/awp4diicbigk3xgsrs26jwx59g09hl43-gcc-wrapper-14.2.1.20250322/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Python3 (missing: Python3&lowbar;EXECUTABLE Python3&lowbar;INCLUDE&lowbar;DIRS Python3&lowbar;LIBRARIES Interpreter Development Development.Module Development.Embed)
-- Found ZLIB: /nix/store/fkksm6bcsd7502ghx5lzmrj9cl7cqck1-zlib-1.3.1/lib/libz.so (found version "1.3.1")
--   Zlib library: /nix/store/fkksm6bcsd7502ghx5lzmrj9cl7cqck1-zlib-1.3.1/lib/libz.so
-- Http client: Curl
-- Found CURL: /nix/store/0lnymgpqycx89lhlv45dsy7grjafggsz-curl-8.12.1/lib/libcurl.so (found version "8.12.1")
--   Curl include directory: /nix/store/9608iwga5pb9c5afrm33665s3rmwa37y-curl-8.12.1-dev/include
--   Curl target link: /nix/store/0lnymgpqycx89lhlv45dsy7grjafggsz-curl-8.12.1/lib/libcurl.so
-- Performing Test HAVE&lowbar;ATOMICS&lowbar;WITHOUT&lowbar;LIBATOMIC
-- Performing Test HAVE&lowbar;ATOMICS&lowbar;WITHOUT&lowbar;LIBATOMIC - Success
-- Performing Test CMAKE&lowbar;HAVE&lowbar;LIBC&lowbar;PTHREAD
-- Performing Test CMAKE&lowbar;HAVE&lowbar;LIBC&lowbar;PTHREAD - Success
-- Found Threads: TRUE
-- Found crypto: /nix/store/0ww3ms7cac306639f5sqqcjanbzkhrqa-openssl-3.4.1/lib/libcrypto.so
-- LibCrypto Include Dir: /nix/store/j1r4vaw3sd6yaq346348dw75by484cay-openssl-3.4.1-dev/include
-- LibCrypto Shared Lib:  /nix/store/0ww3ms7cac306639f5sqqcjanbzkhrqa-openssl-3.4.1/lib/libcrypto.so
-- LibCrypto Static Lib:  crypto&lowbar;STATIC&lowbar;LIBRARY-NOTFOUND
-- S2N found target: AWS::crypto
-- crypto Include Dir: /nix/store/j1r4vaw3sd6yaq346348dw75by484cay-openssl-3.4.1-dev/include
-- S2N found target: AWS::crypto
-- crypto Include Dir: /nix/store/j1r4vaw3sd6yaq346348dw75by484cay-openssl-3.4.1-dev/include
-- aws-c-cal found target: AWS::crypto
-- crypto Include Dir: /nix/store/j1r4vaw3sd6yaq346348dw75by484cay-openssl-3.4.1-dev/include
-- aws-c-cal found target: AWS::crypto
-- crypto Include Dir: /nix/store/j1r4vaw3sd6yaq346348dw75by484cay-openssl-3.4.1-dev/include
-- S2N found target: AWS::crypto
-- crypto Include Dir: /nix/store/j1r4vaw3sd6yaq346348dw75by484cay-openssl-3.4.1-dev/include
-- S2N found target: AWS::crypto
-- crypto Include Dir: /nix/store/j1r4vaw3sd6yaq346348dw75by484cay-openssl-3.4.1-dev/include
-- aws-c-cal found target: AWS::crypto
-- crypto Include Dir: /nix/store/j1r4vaw3sd6yaq346348dw75by484cay-openssl-3.4.1-dev/include
-- Add s3-crt:s3 to C2J&lowbar;SPECIAL&lowbar;NAME&lowbar;LIST
-- Considering s3
-- Considering transfer
-- Looking for pathconf
-- Looking for pathconf - found
-- Looking for umask
-- Looking for umask - found
-- Adding s3 to SDK build
-- The C compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/awp4diicbigk3xgsrs26jwx59g09hl43-gcc-wrapper-14.2.1.20250322/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- exporting aws-cpp-sdk-s3
-- Adding transfer to SDK build
-- exporting aws-cpp-sdk-transfer
-- Adding core to SDK build
-- Updating version info to 1.11.448
-- Custom memory management disabled
-- Performing Test CURL&lowbar;HAS&lowbar;H2
-- Performing Test CURL&lowbar;HAS&lowbar;H2 - Success
-- Performing Test CURL&lowbar;HAS&lowbar;TLS&lowbar;PROXY
-- Performing Test CURL&lowbar;HAS&lowbar;TLS&lowbar;PROXY - Success
-- Performing Test AWS&lowbar;HAS&lowbar;ALIGNED&lowbar;ALLOC
-- Performing Test AWS&lowbar;HAS&lowbar;ALIGNED&lowbar;ALLOC - Success
-- S2N found target: AWS::crypto
-- crypto Include Dir: /nix/store/j1r4vaw3sd6yaq346348dw75by484cay-openssl-3.4.1-dev/include
-- exporting aws-cpp-sdk-core
-- Configuring done (4.7s)
-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD&lowbar;TESTING
    CMAKE&lowbar;EXPORT&lowbar;NO&lowbar;PACKAGE&lowbar;REGISTRY
    CMAKE&lowbar;POLICY&lowbar;DEFAULT&lowbar;CMP0025


-- Build files have been written to: /build/source/build
cmake: enabled parallel building
cmake: enabled parallel installing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: -j1 SHELL=/nix/store/k6260bsvzn7n0nsfyjqwn4jndgv063wf-bash-5.2p37/bin/bash
[  0%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/ub&lowbar;core.cpp.o
[  1%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/AmazonSerializableWebServiceRequest.cpp.o
[  2%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/AmazonStreamingWebServiceRequest.cpp.o
[  2%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/AmazonWebServiceRequest.cpp.o
[  3%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/Aws.cpp.o
[  4%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/Globals.cpp.o
[  4%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/Region.cpp.o
[  5%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/Version.cpp.o
[  6%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/external/cjson/cJSON.cpp.o
[  6%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/HttpClient.cpp.o
[  7%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/HttpClientFactory.cpp.o
[  8%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/HttpRequest.cpp.o
[  8%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/HttpResponse.cpp.o
[  9%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/HttpTypes.cpp.o
[ 10%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/Scheme.cpp.o
[ 10%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/URI.cpp.o
[ 11%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/curl/CurlHandleContainer.cpp.o
[ 12%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/curl/CurlHttpClient.cpp.o
[ 12%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/internal/AWSHttpResourceClient.cpp.o
[ 13%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/monitoring/DefaultMonitoring.cpp.o
[ 14%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/monitoring/HttpClientMetrics.cpp.o
[ 14%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/monitoring/MonitoringManager.cpp.o
[ 15%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/net/linux-shared/Net.cpp.o
[ 16%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/net/linux-shared/SimpleUDP.cpp.o
[ 17%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/ARN.cpp.o
[ 17%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/Array.cpp.o
[ 18%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/DNS.cpp.o
[ 19%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/DateTimeCommon.cpp.o
[ 19%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/Directory.cpp.o
[ 20%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/Document.cpp.o
[ 21%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/EnumParseOverflowContainer.cpp.o
[ 21%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/FileSystemUtils.cpp.o
[ 22%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/GetTheLights.cpp.o
[ 23%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/HashingUtils.cpp.o
[ 23%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/RAIICounter.cpp.o
[ 24%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/StringUtils.cpp.o
[ 25%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/TempFile.cpp.o
[ 25%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/UUID.cpp.o
[ 26%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/CRC32.cpp.o
[ 27%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/CRC64.cpp.o
[ 27%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/Cipher.cpp.o
[ 28%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/ContentCryptoMaterial.cpp.o
[ 29%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/ContentCryptoScheme.cpp.o
[ 29%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/CryptoBuf.cpp.o
[ 30%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/CryptoStream.cpp.o
[ 31%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/EncryptionMaterials.cpp.o
[ 31%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/KeyWrapAlgorithm.cpp.o
[ 32%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/MD5.cpp.o
[ 33%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/PrecalculatedHash.cpp.o
[ 34%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/Sha1.cpp.o
[ 34%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/Sha256.cpp.o
[ 35%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/Sha256HMAC.cpp.o
[ 36%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/crypto/factory/Factories.cpp.o
[ 36%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/event/EventDecoderStream.cpp.o
[ 37%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/event/EventEncoderStream.cpp.o
[ 38%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/event/EventHeader.cpp.o
[ 38%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/event/EventMessage.cpp.o
[ 39%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/event/EventStreamBuf.cpp.o
[ 40%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/event/EventStreamDecoder.cpp.o
[ 40%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/event/EventStreamEncoder.cpp.o
[ 41%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/event/EventStreamErrors.cpp.o
[ 42%] Building CXX object src/aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/utils/json/JsonSerializer.cpp.o
[ 42%] Linking CXX shared library libaws-cpp-sdk-core.so
[ 42%] Built target aws-cpp-sdk-core
[ 43%] Building CXX object generated/src/aws-cpp-sdk-s3/CMakeFiles/aws-cpp-sdk-s3.dir/ub&lowbar;S3.cpp.o
[ 44%] Linking CXX shared library libaws-cpp-sdk-s3.so
[ 44%] Built target aws-cpp-sdk-s3
[ 45%] Building CXX object src/aws-cpp-sdk-transfer/CMakeFiles/aws-cpp-sdk-transfer.dir/source/transfer/TransferHandle.cpp.o
[ 45%] Building CXX object src/aws-cpp-sdk-transfer/CMakeFiles/aws-cpp-sdk-transfer.dir/source/transfer/TransferManager.cpp.o
[ 46%] Linking CXX shared library libaws-cpp-sdk-transfer.so
[ 46%] Built target aws-cpp-sdk-transfer
[ 47%] Building CXX object tests/testing-resources/CMakeFiles/testing-resources.dir/source/AwsCppSdkGTestSuite.cpp.o
[ 48%] Building CXX object tests/testing-resources/CMakeFiles/testing-resources.dir/source/MemoryTesting.cpp.o
[ 48%] Building CXX object tests/testing-resources/CMakeFiles/testing-resources.dir/source/TestingEnvironment.cpp.o
[ 49%] Building CXX object tests/testing-resources/CMakeFiles/testing-resources.dir/source/external/gtest/gtest-all.cc.o
[ 50%] Building CXX object tests/testing-resources/CMakeFiles/testing-resources.dir/source/platform/linux-shared/PlatformTesting.cpp.o
[ 51%] Linking CXX shared library libtesting-resources.so
[ 51%] Built target testing-resources
[ 52%] Building CXX object tests/testing-resources/CMakeFiles/aws&lowbar;test&lowbar;main.dir/source/external/gtest/src/gtest&lowbar;main.cc.o
[ 52%] Linking CXX shared library libaws&lowbar;test&lowbar;main.so
[ 52%] Built target aws&lowbar;test&lowbar;main
[ 53%] Building CXX object tests/aws-cpp-sdk-s3-integration-tests/CMakeFiles/aws-cpp-sdk-s3-integration-tests.dir/BucketAndObjectOperationTest.cpp.o
[ 53%] Building CXX object tests/aws-cpp-sdk-s3-integration-tests/CMakeFiles/aws-cpp-sdk-s3-integration-tests.dir/RunTests.cpp.o
[ 54%] Building CXX object tests/aws-cpp-sdk-s3-integration-tests/CMakeFiles/aws-cpp-sdk-s3-integration-tests.dir/S3ExpressTest.cpp.o
[ 55%] Linking CXX executable aws-cpp-sdk-s3-integration-tests
[ 55%] Built target aws-cpp-sdk-s3-integration-tests
[ 55%] Building CXX object tests/aws-cpp-sdk-s3-unit-tests/CMakeFiles/aws-cpp-sdk-s3-unit-tests.dir/S3UnitTests.cpp.o
[ 56%] Linking CXX executable aws-cpp-sdk-s3-unit-tests
[ 56%] Built target aws-cpp-sdk-s3-unit-tests
[ 57%] Building CXX object generated/tests/s3-gen-tests/CMakeFiles/s3-gen-tests.dir/RunTests.cpp.o
[ 58%] Building CXX object generated/tests/s3-gen-tests/CMakeFiles/s3-gen-tests.dir/S3EndpointProviderTests.cpp.o
[ 58%] Linking CXX executable s3-gen-tests
[==========] 298 tests from 1 test suite ran. (530 ms total)
[  PASSED  ] 298 tests.
[ 58%] Built target s3-gen-tests
[ 59%] Building CXX object tests/aws-cpp-sdk-transfer-tests/CMakeFiles/aws-cpp-sdk-transfer-tests.dir/RunTests.cpp.o
[ 59%] Building CXX object tests/aws-cpp-sdk-transfer-tests/CMakeFiles/aws-cpp-sdk-transfer-tests.dir/TransferTests.cpp.o
[ 60%] Linking CXX executable aws-cpp-sdk-transfer-tests
[ 60%] Built target aws-cpp-sdk-transfer-tests
[ 61%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/RunTests.cpp.o
[ 62%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/VersionTests.cpp.o
[ 62%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/RegionTest.cpp.o
[ 63%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/auth/AWSHttpResourceClientTest.cpp.o
[ 64%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/auth/GeneralHTTPCredentialsProviderTest.cpp.o
[ 64%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/client/AWSErrorMashallerTest.cpp.o
[ 65%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/client/AWSMetadataEndpointTest.cpp.o
[ 66%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/client/HttpSchemeMapperTest.cpp.o
[ 66%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/client/RequestCompressionTest.cpp.o
[ 67%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/client/RetryStrategyTest.cpp.o
[ 68%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/config/AWSConfigFileProfileConfigLoaderTest.cpp.o
[ 69%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/config/ClientConfigurationDefaultsTest.cpp.o
[ 69%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/config/EC2InstanceProfileConfigLoaderTest.cpp.o
[ 70%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/aws/net/UDPTest.cpp.o
[ 71%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/endpoint/endpointParamTest.cpp.o
[ 71%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/http/HttpTypesMapperTest.cpp.o
[ 72%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/http/SignalHandlerTest.cpp.o
[ 73%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/http/URITest.cpp.o
[ 73%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/monitoring/MonitoringEndToEndTest.cpp.o
[ 74%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/monitoring/MonitoringTest.cpp.o
[ 75%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/smithy/client/SmithyClientTest.cpp.o
[ 75%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/smithy/client/feature/ChecksumInterceptorTest.cpp.o
[ 76%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/smithy/client/serializer/JsonOutcomeSerializerTest.cpp.o
[ 77%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/smithy/client/serializer/XmlOutcomeSerializerTest.cpp.o
[ 77%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/smithy/tracing/SmithyTracingTest.cpp.o
[ 78%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/ARNTest.cpp.o
[ 79%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/ArrayTest.cpp.o
[ 79%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/CacheTest.cpp.o
[ 80%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/CompilerMacrosTest.cpp.o
[ 81%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/DNSTest.cpp.o
[ 81%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/DateTimeTest.cpp.o
[ 82%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/DocumentTest.cpp.o
[ 83%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/EnumOverflowTest.cpp.o
[ 83%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/FileSystemUtilsTest.cpp.o
[ 84%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/GetTheLightsTest.cpp.o
[ 85%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/HashingUtilsTest.cpp.o
[ 86%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/OSVersionInfoTest.cpp.o
[ 86%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/OutcomeTest.cpp.o
[ 87%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/StringUtilsTest.cpp.o
[ 88%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/UUIDTest.cpp.o
[ 88%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/crypto/CryptoStreamsTest.cpp.o
[ 89%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/crypto/HashTest.cpp.o
[ 90%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/crypto/SymmetricCiphersTest.cpp.o
[ 90%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/event/EventStreamDecoderTest.cpp.o
[ 91%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/event/EventStreamTest.cpp.o
[ 92%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/json/JsonSerializerTest.cpp.o
[ 92%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/logging/LoggingTest.cpp.o
[ 93%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/memory/AWSMemoryTest.cpp.o
[ 94%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/memory/AwsMemoryManagementTest.cpp.o
[ 94%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/memory/SimpleStringStreamTests.cpp.o
[ 95%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/ratelimiter/RateLimiterTests.cpp.o
[ 96%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/stream/AwsChunkedStreamTest.cpp.o
[ 96%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/stream/PreallocatedStreamBufTest.cpp.o
[ 97%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/stream/ResponseStreamTest.cpp.o
[ 98%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/stream/SimpleStreamBufTest.cpp.o
[ 98%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/threading/DefaultExecutorTest.cpp.o
[ 99%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/threading/ReaderWriterLockTest.cpp.o
[100%] Building CXX object tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/utils/xml/XmlSerializerTest.cpp.o
[100%] Linking CXX executable aws-cpp-sdk-core-tests
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:138: Failure
Expected equality of these values:
  Aws::FileSystem::FileType::Directory
    Which is: 4-byte object <03-00 00-00>
  dir2Entry.fileType
    Which is: 4-byte object <00-00 00-00>
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestManualDirectoryTraversal (4 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:214: Failure
Expected equality of these values:
  2u
    Which is: 2
  diff.size()
    Which is: 0
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeDiff (4 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:184: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(comparisonDirectory.c&lowbar;str())
  Actual: false
Expected: true
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeEqualityOperator (5 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:233: Failure
Value of: paths.empty()
  Actual: false
Expected: true
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeBreadthFirstTraversal (3 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestPathUtilsGetFileNameWithoutExt (3 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:172: Failure
Value of: paths.empty()
  Actual: false
Expected: true
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal (2 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestPathUtilsGetFileNameWithExt (3 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:239: Failure
Expected equality of these values:
  filesVector.size()
    Which is: 0
  2u
    Which is: 2
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeBreadthFirstTraversalGetAllFiles (3 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.CreateDirectoryIfNotExistedTest (4 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/threading/ReaderWriterLockTest.cpp:92: Skipped
Test is temporarily disabled
1.11.448
selected scheme id=aws.auth#sigv4a
selected scheme id=aws.auth#sigv4
Final auth=AWS4-HMAC-SHA256 Credential=dummyAccessId/20250520/us-west-2/MyService/aws4&lowbar;request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=c37e8c1d95238c39d6e59ca19c92188368fc1e182a93af241332a3fb400c27a1
selected scheme id=smithy.api#HTTPBearerAuth
header=Bearer testBearerToken
[==========] 445 tests from 65 test suites ran. (12930 ms total)
[  PASSED  ] 435 tests.
[  SKIPPED ] 1 test.
1.11.448
/build/source/tests/aws-cpp-sdk-core-tests/utils/threading/ReaderWriterLockTest.cpp:92: Skipped
Test is temporarily disabled
selected scheme id=aws.auth#sigv4
Final auth=AWS4-HMAC-SHA256 Credential=dummyAccessId/20250520/us-west-2/MyService/aws4&lowbar;request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=cc28844c028e5d691ab67d0805022a668eabcb295ffdc9ac0d981adc658bec2e
selected scheme id=smithy.api#HTTPBearerAuth
header=Bearer testBearerToken
selected scheme id=aws.auth#sigv4a
/build/source/tests/aws-cpp-sdk-core-tests/utils/memory/AWSMemoryTest.cpp:105: Skipped
Skipping the repeat of StaticUniquePtrDtorOrder test as it cannot be repeated.
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestPathUtilsGetFileNameWithExt (0 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:214: Failure
Expected equality of these values:
  2u
    Which is: 2
  diff.size()
    Which is: 0
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeDiff (0 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:138: Failure
Expected equality of these values:
  Aws::FileSystem::FileType::Directory
    Which is: 4-byte object <03-00 00-00>
  dir2Entry.fileType
    Which is: 4-byte object <00-00 00-00>
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestManualDirectoryTraversal (0 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestPathUtilsGetFileNameWithoutExt (0 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:239: Failure
Expected equality of these values:
  filesVector.size()
    Which is: 0
  2u
    Which is: 2
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeBreadthFirstTraversalGetAllFiles (16 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:233: Failure
Value of: paths.empty()
  Actual: false
Expected: true
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeBreadthFirstTraversal (1 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:172: Failure
Value of: paths.empty()
  Actual: false
Expected: true
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal (0 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:184: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(comparisonDirectory.c&lowbar;str())
  Actual: false
Expected: true
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeEqualityOperator (0 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.CreateDirectoryIfNotExistedTest (0 ms)
[==========] 445 tests from 65 test suites ran. (13129 ms total)
[  PASSED  ] 434 tests.
[  SKIPPED ] 2 tests.
1.11.448
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:138: Failure
Expected equality of these values:
  Aws::FileSystem::FileType::Directory
    Which is: 4-byte object <03-00 00-00>
  dir2Entry.fileType
    Which is: 4-byte object <00-00 00-00>
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestManualDirectoryTraversal (8 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:233: Failure
Value of: paths.empty()
  Actual: false
Expected: true
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeBreadthFirstTraversal (5 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.CreateDirectoryIfNotExistedTest (2 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:239: Failure
Expected equality of these values:
  filesVector.size()
    Which is: 0
  2u
    Which is: 2
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeBreadthFirstTraversalGetAllFiles (3 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:184: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(comparisonDirectory.c&lowbar;str())
  Actual: false
Expected: true
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeEqualityOperator (0 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:214: Failure
Expected equality of these values:
  2u
    Which is: 2
  diff.size()
    Which is: 0
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeDiff (7 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:172: Failure
Value of: paths.empty()
  Actual: false
Expected: true
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestDirectoryTreeDepthFirstTraversal (4 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestPathUtilsGetFileNameWithoutExt (0 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp:110: Failure
Value of: Aws::FileSystem::DeepDeleteDirectory(dir1.c&lowbar;str())
  Actual: false
Expected: true
[  FAILED  ] DirectoryTreeTest.TestPathUtilsGetFileNameWithExt (4 ms)
/build/source/tests/aws-cpp-sdk-core-tests/utils/memory/AWSMemoryTest.cpp:105: Skipped
Skipping the repeat of StaticUniquePtrDtorOrder test as it cannot be repeated.
selected scheme id=aws.auth#sigv4a
selected scheme id=smithy.api#HTTPBearerAuth
header=Bearer testBearerToken
selected scheme id=aws.auth#sigv4
Final auth=AWS4-HMAC-SHA256 Credential=dummyAccessId/20250520/us-west-2/MyService/aws4&lowbar;request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=01f52613770ebc845707df5393a7e6a934176e37ca5abc00e8dfca0b7c58d36f
/build/source/tests/aws-cpp-sdk-core-tests/utils/threading/ReaderWriterLockTest.cpp:92: Skipped
Test is temporarily disabled
[==========] 445 tests from 65 test suites ran. (12968 ms total)
[  PASSED  ] 434 tests.
[  SKIPPED ] 2 tests.
make[2]: &ast;&ast;&ast; [tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/build.make:1091: tests/aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests] Error 1
make[2]: &ast;&ast;&ast; Deleting file 'tests/aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests'
make[1]: &ast;&ast;&ast; [CMakeFiles/Makefile2:627: tests/aws-cpp-sdk-core-tests/CMakeFiles/aws-cpp-sdk-core-tests.dir/all] Error 2
make: &ast;&ast;&ast; [Makefile:136: all] Error 2

Jayman2000 avatar Apr 27 '25 14:04 Jayman2000

Which kernel version were you using with bcachefs?

Is it possible to get an strace log of the failing DirectoryTreeTest.* cases in aws-cpp-sdk-core-tests from this environment?

Also, the filesystem test suite seems to be actually working under /tmp (by setting $HOME), was it actually on bcachefs during build?

One note to anyone who would be diving into this: due to the way automatic test suite running on build was unfortunately implemented in aws-cpp-sdk, a test runner binary (tests/aws-cpp-sdk-core-tests/aws-cpp-sdk-core-tests in this case) is automatically deleted after reporting any test failures. The AUTORUN_UNIT_TESTS CMake option needs to be turned off to avoid this.

I'm not seeing anything crazy in the source code of the tests, just basic filesystem operations: https://github.com/aws/aws-sdk-cpp/blob/1.11.448/tests/aws-cpp-sdk-core-tests/utils/FileSystemUtilsTest.cpp#L65...

himikof avatar Apr 29 '25 17:04 himikof

Which kernel version were you using with bcachefs?

Thank you for asking this question. It helped me realize that I made a mistake. I took a look at both of the VMs that I had originally used in order to reproduce this bug, and I realized that I had accidentally used a different version of the Linux kernel in each of the VMs. That means that my original test results were not a good comparison between bcachefs and ext4.

I just updated the steps to reproduce in the original post. I added an optional step about automatically creating either a bcachefs or ext4 VM. The automatic VM creation process should help ensure that I always use the same version of Linux for both VMs.

Anyway, to answer your question, I don’t remember which version of Linux I used in the original bcachefs VM. That being said, I just updated the test results in the original post. For the new test results, I used Linux 6.15.0-rc6 for both the bcachefs VM and the ext4 VM.

Is it possible to get an strace log of the failing DirectoryTreeTest.* cases in aws-cpp-sdk-core-tests from this environment?

I’m not sure how to get an strace log of just the failing DirectoryTreeTest.* cases, but I do know how to get an strace log for the entire run of the make command.

Click here to show instructions for how to create an strace log for the entire run of the make command.
  1. Open a terminal.

  2. Make sure that you have the Nix package manager installed by running this command:

    nix-build --version
    

    If that command succeeds, then you’re good to go. If that command fails, then you need to install the Nix package manager.

  3. (Optional) Start a VM that can be used to reproduce the bug by running this command:

    nix \
        --extra-experimental-features 'nix-command flakes' \
        run git+https://codeberg.org/JasonYundt/jasons-minimal-nixos-configs.git?rev=fb25382f6f59332b687f6ae4cd4afbdb2e60f25c#run-test-vm-bcachefs
    
  4. Make sure that you’re on an x86_64-linux system by running this command:

    nix-instantiate --eval --expr 'assert builtins.currentSystem == "x86_64-linux"; "You’re using the correct type of system."'
    
  5. Create a file named default.nix that contains this Nix expression:

    # This file is dedicated to the public domain using 🅭🄍1.0:
    # <https://creativecommons.org/publicdomain/zero/1.0>.
    let
      nixpkgsCommit = "75c70069bf0c8cb01eb869c8df890e9468caa366";
      nixpkgsTarball = builtins.fetchTarball {
        url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsCommit}.tar.gz";
        sha256 = "1i46922jw9w86zyk446mhk7ddfnaj6g6vakixcpldyngkg4lr2fk";
      };
      pkgs = import nixpkgsTarball { };
    in
    pkgs.pkgsi686Linux.nix.aws-sdk-cpp.overrideAttrs (
      finalAttrs: previousAttrs: {
        # This part allows us to figure out which command caused the error.
        preBuild = ''
          set -o xtrace
        '';
        nativeBuildInputs = previousAttrs.nativeBuildInputs ++ [
          pkgs.pkgsi686Linux.strace
          # This allows us to enter the build sandbox after the failure has happened.
          pkgs.pkgsi686Linux.breakpointHook
        ];
      }
    )
    

    If you’re using the VM from step 3, then you can create default.nix by using GNU nano.

  6. Make sure that you can access two terminals at the same time. If you’re using the VM from step 3, then you can use tmux to allow you to switch between multiple different terminals. If you aren’t using the VM from step 3, then you can probably just open a second terminal window.

  7. In your first terminal, change directory into the directory that contains default.nix by running this command:

    cd <path-to-dir-that-contains-default.nix>
    
  8. In your first terminal, try to build the Nix expression by running this command:

    nix-build
    
  9. Wait for the build to fail. You’ll know that the build has failed once you see a message that looks like this in the first terminal:

    To attach, run the following command:&NewLine;+ echo -e '\033[0;32m    sudo /nix/store/rhrcpqsh0154r8ic2rmydrwxbs2kwqay-attach/bin/attach 1598234\033[0m'&NewLine;    sudo /nix/store/rhrcpqsh0154r8ic2rmydrwxbs2kwqay-attach/bin/attach 1598234&NewLine;
  10. Copy the sudo command from the message that is in the first terminal and run it in the second terminal.

  11. In the first terminal, scroll up until you find some output that looks like this:

    build flags:+++ shift&NewLine;+++ printf ' %q' -j1 SHELL=/nix/store/k6260bsvzn7n0nsfyjqwn4jndgv063wf-bash-5.2p37/bin/bash&NewLine; -j1 SHELL=/nix/store/k6260bsvzn7n0nsfyjqwn4jndgv063wf-bash-5.2p37/bin/bash+++ echo&NewLine;&NewLine;+++ make -j1 SHELL=/nix/store/k6260bsvzn7n0nsfyjqwn4jndgv063wf-bash-5.2p37/bin/bash&NewLine;
  12. Copy the make command from the message that is in the first terminal and then run the following command in the second terminal:

    strace --follow-forks <make command>
    
  13. Once you’re done with the output from that previous command, stop the command-line session that’s attached to the build process by running this command in the second terminal:

    exit
    
  14. Stop the second terminal by running this command:

    exit
    
  15. In the first terminal, stop the current nix-build command by pressing Ctrl+C.

  16. After the nix-build command has finished, stop the first terminal by running this command:

    exit
    
  17. If you used the VM from step 3, then shut it down by running this command:

    systemctl poweroff
    

I don’t know much about strace but I believe that those instructions will produce a trace for all of the failing DirectoryTreeTest.* cases along with a bunch of other stuff.

Also, the filesystem test suite seems to be actually working under /tmp (by setting $HOME), was it actually on bcachefs during build?

I believe that every time that I’ve tested this bug, /tmp has been stored on bcachefs during the build. I was able to verify that /tmp was on bcachefs for at least a few test runs by following the above instructions for producing an strace log with one modification. Instead of running an strace command in step 12, I ran df --print-type /tmp. df reported that /tmp is indeed being stored on bcachefs.

Jayman2000 avatar May 20 '25 17:05 Jayman2000

I don’t remember which version of Linux I used in the original bcachefs VM.

Bro you're using nix,

you can see the version with flakes like this:

nix eval <nixos-config>#nixosConfigurations.<system>.config.boot.kernelPackages.kernel.version

You can also build that package way easier just by running:

nix build nixpkgs/<commit>#pkgsi686Linux.nix.aws-sdk-cpp

or

nix-build -I nixpkgs="https://github.com/NixOS/nixpkgs/archive/<commit>.tar.gz" '<nixpkgs>' -A pkgsi686Linux.nix.aws-sdk-cpp

YellowOnion avatar Jun 09 '25 02:06 YellowOnion

I now believe that this is the same issue as #928, missing Large File Support when compiling aws-cpp-sdk on 32-bit NixOS.

himikof avatar Aug 04 '25 06:08 himikof

Yep, this builds on NixOS with a 32bit stdenv built with -D_FILE_OFFSET_BITS=64, but this may not be possible or practical yet for every distro.

https://gist.github.com/qubitnano/4025b05f5441767d2556a9735adbb9c3

qubitnano avatar Aug 04 '25 23:08 qubitnano

inodes_32bit option in bcachefs-testing has new behaviour to limit d_offset to 31 bits, need someone to test

(also, it's an incompat feature)

koverstreet avatar Aug 07 '25 00:08 koverstreet