Skip to content
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

Build fails, unable to find s2n/unstable/cleanup.h #696

Closed
1 task
keivanh opened this issue Nov 23, 2024 · 1 comment
Closed
1 task

Build fails, unable to find s2n/unstable/cleanup.h #696

keivanh opened this issue Nov 23, 2024 · 1 comment
Labels
bug This issue is a bug. p2 This is a standard priority issue response-requested Waiting on additional info and feedback. Will move to 'closing-soon' in 7 days.

Comments

@keivanh
Copy link

keivanh commented Nov 23, 2024

Describe the bug

aws-sdk-cpp build fails during building aws-c-io submodule

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Build should be compeleted

Current Behavior

[ 20%] Building C object crt/aws-crt-cpp/crt/aws-c-io/CMakeFiles/aws-c-io.dir/source/posix/pipe.c.o
[ 21%] Building C object crt/aws-crt-cpp/crt/aws-c-io/CMakeFiles/aws-c-io.dir/source/posix/shared_library.c.o
[ 21%] Building C object crt/aws-crt-cpp/crt/aws-c-io/CMakeFiles/aws-c-io.dir/source/posix/socket.c.o
[ 21%] Building C object crt/aws-crt-cpp/crt/aws-c-io/CMakeFiles/aws-c-io.dir/source/retry_strategy.c.o
[ 21%] Building C object crt/aws-crt-cpp/crt/aws-c-io/CMakeFiles/aws-c-io.dir/source/s2n/s2n_tls_channel_handler.c.o
/home/user/Development/aws-sdk-cpp/crt/aws-crt-cpp/crt/aws-c-io/source/s2n/s2n_tls_channel_handler.c:27:14: fatal error: s2n/unstable/cleanup.h: No such file or directory
   27 | #    include <s2n/unstable/cleanup.h>
      |              ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [crt/aws-crt-cpp/crt/aws-c-io/CMakeFiles/aws-c-io.dir/build.make:342: crt/aws-crt-cpp/crt/aws-c-io/CMakeFiles/aws-c-io.dir/source/s2n/s2n_tls_channel_handler.c.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:619: crt/aws-crt-cpp/crt/aws-c-io/CMakeFiles/aws-c-io.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Reproduction Steps

git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp
mkdir awsbuild && cd awsbuild
cmake ../aws-sdk-cpp -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/bin -DBUILD_ONLY="s3"
cmake --build . --config=Debug

Possible Solution

This is happening after commit "dc41ddc498c10ebbf69aba7775afa36c8c1910bd" on Oct 10, 2024.

Temporarily workaround:

git checkout 9e1bb08098312e3e36cbdd30073bc6757015c913

Additional Information/Context

Related issue on aws-sdk-cpp

aws-c-io version used

fcb38c8

Compiler and version used

gcc 11.4.0

Operating System and version

Ubuntu 22.04

@keivanh keivanh added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 23, 2024
@keivanh keivanh changed the title (short issue description) Build fails, unable to find <s2n/unstable/cleanup.h Nov 23, 2024
@keivanh keivanh changed the title Build fails, unable to find <s2n/unstable/cleanup.h Build fails, unable to find s2n/unstable/cleanup.h Nov 23, 2024
@jmklix
Copy link
Member

jmklix commented Nov 25, 2024

aws/aws-sdk-cpp#3203 (comment)

using a minimal docker image in a clean environment works at that tag

FROM public.ecr.aws/amazonlinux/amazonlinux:2023

#Install g++
RUN yum groupinstall "Development Tools" -y

#Install required dependencies
RUN yum install -y curl-devel openssl-devel ninja-build cmake3

# build and install SDK
RUN git clone --branch 1.11.450 --recurse-submodules https://github.com/aws/aws-sdk-cpp && \
    cd aws-sdk-cpp && \
    mkdir build && \
    cd build && \
    cmake -DBUILD_ONLY="s3" -DCMAKE_INSTALL_PREFIX=/sdk-install -DAUTORUN_UNIT_TESTS=OFF .. && \
    cmake --build . && \
    cmake --install .

so this is likely something build environment specific, if you can replicate this in docker to eliminate build environment concerns would be happy to take a look, but looks like in a clean environment it builds as expected.

Can you make sure you're using the latest version of the cpp sdk and let us know if you are still running into any issues.

@jmklix jmklix added response-requested Waiting on additional info and feedback. Will move to 'closing-soon' in 7 days. p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Nov 25, 2024
@keivanh keivanh closed this as completed Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2 This is a standard priority issue response-requested Waiting on additional info and feedback. Will move to 'closing-soon' in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants