Skip to content

[C++] Configure bundled AWS SDK to use aws-lc instead of OpenSSL #34157

Closed

Description

@js8544

Describe the enhancement requested

Using OpenSSL causes various issues like #33808 (comment) and #34111. We should try to use aws-lc for libcrypto and libssl. We need to hide them inside s2n-tls to avoid name conflicts with OpenSSL used by other libraries.

Component(s)

C++

Activity

  1. raulcd commented on Feb 14, 2023

    @raulcd
    Member

    Hi, are the failures on some of our nightly jobs like wheel-manylinux2014-cp37-amd64 or wheel-manylinux2014-cp38-arm64 related to this or should we open a different ticket to track those failures?

    FAILED: aws_c_cal_ep-prefix/src/aws_c_cal_ep-stamp/aws_c_cal_ep-configure /tmp/arrow-build/aws_c_cal_ep-prefix/src/aws_c_cal_ep-stamp/aws_c_cal_ep-configure 
    cd /tmp/arrow-build/aws_c_cal_ep-prefix/src/aws_c_cal_ep-build && /usr/local/bin/cmake -P /tmp/arrow-build/aws_c_cal_ep-prefix/src/aws_c_cal_ep-stamp/aws_c_cal_ep-configure-RELEASE.cmake && /usr/local/bin/cmake -E touch /tmp/arrow-build/aws_c_cal_ep-prefix/src/aws_c_cal_ep-stamp/aws_c_cal_ep-configure
    CMake Error at /tmp/arrow-build/aws_c_cal_ep-prefix/src/aws_c_cal_ep-stamp/aws_c_cal_ep-configure-RELEASE.cmake:37 (message):
      Command failed: 1
    
       '/usr/local/bin/cmake' '-DCMAKE_C_COMPILER=/opt/rh/devtoolset-10/root/usr/bin/cc' '-DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-10/root/usr/bin/c++' '-DCMAKE_AR=/opt/rh/devtoolset-10/root/usr/bin/ar' '-DCMAKE_RANLIB=/opt/rh/devtoolset-10/root/usr/bin/ranlib' '-DBUILD_SHARED_LIBS=OFF' '-DBUILD_STATIC_LIBS=ON' '-DBUILD_TESTING=OFF' '-DCMAKE_BUILD_TYPE=RELEASE' '-DCMAKE_CXX_FLAGS= -fdiagnostics-color=always -fPIC' '-DCMAKE_CXX_FLAGS_DEBUG=-g -O0 -ggdb -Wno-error' '-DCMAKE_CXX_FLAGS_MISIZEREL=-Os -DNDEBUG' '-DCMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG -O2 -ftree-vectorize' '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG -O2 -ftree-vectorize  -O0 -ggdb' '-DCMAKE_CXX_STANDARD=17' '-DCMAKE_C_FLAGS= -fPIC' '-DCMAKE_C_FLAGS_DEBUG=-g -O0 -ggdb -Wno-error' '-DCMAKE_C_FLAGS_MISIZEREL=-Os -DNDEBUG' '-DCMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG -O2 -ftree-vectorize' '-DCMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG -O2 -ftree-vectorize  -O0 -ggdb' '-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=' '-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=' '-DCMAKE_INSTALL_LIBDIR=lib' '-DCMAKE_VERBOSE_MAKEFILE=FALSE' '-DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache' '-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache' '-DCMAKE_BUILD_TYPE=release' '-DENABLE_TESTING=OFF' '-DENABLE_UNITY_BUILD=ON' '-DCMAKE_INSTALL_PREFIX=/tmp/arrow-build/awssdk_ep-install' '-DCMAKE_PREFIX_PATH=/tmp/arrow-build/awssdk_ep-install' '-GNinja' '/tmp/arrow-build/aws_c_cal_ep-prefix/src/aws_c_cal_ep'
    
      See also
    
        /tmp/arrow-build/aws_c_cal_ep-prefix/src/aws_c_cal_ep-stamp/aws_c_cal_ep-configure-*.log
    
    
    -- stdout output is:
    -- The C compiler identification is GNU 10.2.1
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /opt/rh/devtoolset-10/root/usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Configuring incomplete, errors occurred!
    See also "/tmp/arrow-build/aws_c_cal_ep-prefix/src/aws_c_cal_ep-build/CMakeFiles/CMakeOutput.log".
    
    -- stderr output is:
    CMake Error at /usr/local/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
      Could NOT find crypto (missing: crypto_LIBRARY crypto_INCLUDE_DIR)
    Call Stack (most recent call first):
      /usr/local/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
      cmake/modules/Findcrypto.cmake:88 (find_package_handle_standard_args)
      CMakeLists.txt:106 (find_package)
    
    
    
    CMake Error at /tmp/arrow-build/aws_c_cal_ep-prefix/src/aws_c_cal_ep-stamp/aws_c_cal_ep-configure-RELEASE.cmake:47 (message):
      Stopping after outputting logs.
    
  2. js8544 commented on Feb 14, 2023

    @js8544
    ContributorAuthor

    @raulcd It's the same issue.

  3. added a commit that references this issue on Feb 15, 2023
  4. added this to the 12.0.0 milestone on Feb 15, 2023
  5. added a commit that references this issue on Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions