-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install fails with CMake Warnings and missing s2n files #3229
Comments
Seems related: #3219 (comment). Also |
Ported your script to a dockerfile and seems to be working as expected. FROM public.ecr.aws/ubuntu/ubuntu:24.04
# Install dependencies
RUN apt update
RUN apt install build-essential -y
RUN apt install git cmake libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev libpulse-dev -y
# Build and install SDK
RUN git clone --branch 1.11.471 --recurse-submodules https://github.com/aws/aws-sdk-cpp && \
cd aws-sdk-cpp && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/usr/local/ \
-DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DBUILD_ONLY="core;iot;s3;dynamodb" \
-DLEGACY_BUILD=ON \
-DAUTORUN_UNIT_TESTS=OFF .. && \
cmake --build . && \
cmake --install . With this working in a clean environment I would suggest looking for the differences between your environment and this or starting with a clean environment. If you can update the docker file to fail, will be more than happy to take a look at it. |
Thanks. I'll take a look and respond by 1/2/25. |
I think my previous installation (v1.11.340) was interfering. This worked fine for me in the same environment: version_to_install="1.11.476"
set -e # Exit on error
# Remove previous installations to avoid conflicts
rm -rf /usr/local/include/aws
rm -rf /usr/local/include/s2n
rm -rf /usr/local/include/s2n*
rm -rf /usr/local/lib/aws
rm -rf /usr/local/lib/aws*
rm -rf /usr/local/lib/cmake/aws*
rm -rf /usr/local/lib/libaws*
rm -rf /usr/local/lib/libs2n*
rm -rf /usr/local/lib/pkgconfig/aws/*
rm -rf /usr/local/lib/s2n
# Make sure dependencies are installed
apt update
apt install build-essential libcurl4-openssl-dev libssl-dev uuid-dev zlib1g-dev libpulse-dev -y
# Clone, build, and install the SDK
cd ../build
rm -rf aws-sdk-cpp
git clone --recurse-submodules -j8 https://github.com/aws/aws-sdk-cpp --branch $version_to_install
mkdir aws-sdk-cpp/build
cd aws-sdk-cpp/build
# After v1.12+ when legacy build will be removed,a nd the flag -DLEGACY_BUILD=ON may need to be removed
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/usr/local/ \
-DCMAKE_INSTALL_PREFIX=/usr/local/ \
-DBUILD_ONLY="core;iot;s3;dynamodb" \
-DAUTORUN_UNIT_TESTS=OFF \
-DLEGACY_BUILD=ON
cmake --build .
cmake --install .
cd ../../
rm aws-sdk-cpp -rf
echo Done installing AWS SDK C++ version $version_to_install Feel free to close the issue. Thanks! |
Nice! thanks for following up, give a shout if you have any more questions |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
I am trying to do a fresh install of the latest SDK version, on Ubuntu 24.04, with the following script:
I get several CMake warnings like this:
And then, the build eventually fails with errors:
The full build output is attached.
Is there something I should be doing differently to build and install?
Thanks.
Regression Issue
Expected Behavior
Build finishes successfully.
Current Behavior
Build errors out.
Reproduction Steps
Run the script given at the top on Ubuntu 24.04. May need to change the
../build
path.Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.11.471
Compiler and Version used
13.2.0
Operating System and version
Ubuntu 24.04.1
Edit: Attaching log
aws_build_failure.log
The text was updated successfully, but these errors were encountered: