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

Not able to install SDK #1659

Closed
appumistri opened this issue May 25, 2021 · 4 comments
Closed

Not able to install SDK #1659

appumistri opened this issue May 25, 2021 · 4 comments
Labels
bug This issue is a bug. p3 This is a minor priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet. third-party This issue is related to third-party libraries or applications.

Comments

@appumistri
Copy link

Hello,
I have installed vcpkg a week ago on my Mac M1 but unfortunately I'm not able to install aws sdk using vcpkg.

Machine info:
MacBook Pro (13-inch, M1, 2020)
Chip: M1
RAM: 8 GB

Error log:

appu@CESIT-MAC-13inch2020s-MacBook-Pro vcpkg % ./vcpkg install "aws-sdk-cpp[s3]" --recurse
Computing installation plan...
The following packages will be built and installed:
  * aws-c-common[core]:arm64-osx -> 0.4.56
  * aws-c-event-stream[core]:arm64-osx -> 0.1.6
  * aws-checksums[core]:arm64-osx -> 0.1.9
    aws-sdk-cpp[core,dynamodb,kinesis,s3]:arm64-osx -> 1.8.126#8
  * curl[core,non-http,sectransp,ssl]:arm64-osx -> 7.74.0#5
  * openssl[core]:arm64-osx -> 1.1.1k#1
  * zlib[core]:arm64-osx -> 1.2.11#10
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet arm64-osx...
Could not locate cached archive: /Users/appu/.cache/vcpkg/archives/e2/e2b733772ca64f2376feeb4d7e76e4821624750e.zip
Could not locate cached archive: /Users/appu/.cache/vcpkg/archives/6f/6fcfa7b8d85512e903339d45313eb0cb78b1d46e.zip
Could not locate cached archive: /Users/appu/.cache/vcpkg/archives/f8/f80a5a34bcf4873724412a6d89fb16f377df6651.zip
Could not locate cached archive: /Users/appu/.cache/vcpkg/archives/e1/e1610a9a18676b62ff67caa39c6041d96f8ef356.zip
Could not locate cached archive: /Users/appu/.cache/vcpkg/archives/9e/9eada1699fb8a55d616176032593e9c5919f722e.zip
Could not locate cached archive: /Users/appu/.cache/vcpkg/archives/4c/4c965052f10780c83835a617c362e86abdd883af.zip
Could not locate cached archive: /Users/appu/.cache/vcpkg/archives/96/96f2981eb435611844503b388dca8afe8553c9cf.zip
Starting package 1/7: aws-c-common:arm64-osx
Building package aws-c-common[core]:arm64-osx...
-- Using community triplet arm64-osx. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: /Users/appu/vcpkg/triplets/community/arm64-osx.cmake
-- Using cached /Users/appu/vcpkg/downloads/awslabs-aws-c-common-4a21a1c0757083a16497fea27886f5f20ccdf334.tar.gz
-- Cleaning sources at /Users/appu/vcpkg/buildtrees/aws-c-common/src/f20ccdf334-c310c32102.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/appu/vcpkg/downloads/awslabs-aws-c-common-4a21a1c0757083a16497fea27886f5f20ccdf334.tar.gz
-- Applying patch disable-error-4068.patch
-- Applying patch disable-internal-crt-option.patch
-- Applying patch fix-cmake-target-path.patch
-- Using source at /Users/appu/vcpkg/buildtrees/aws-c-common/src/f20ccdf334-c310c32102.clean
-- Configuring arm64-osx-dbg
-- Configuring arm64-osx-rel
-- Building arm64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:146 (message):
    Command failed: /Users/appu/vcpkg/downloads/tools/cmake-3.20.2-osx/cmake-3.20.2-macos-universal/CMake.app/Contents/bin/cmake --build . --config Debug --target install -- -v -j9
    Working Directory: /Users/appu/vcpkg/buildtrees/aws-c-common/arm64-osx-dbg
    See logs for more information:
      /Users/appu/vcpkg/buildtrees/aws-c-common/install-arm64-osx-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:104 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:44 (vcpkg_build_cmake)
  ports/aws-c-common/portfile.cmake:18 (vcpkg_install_cmake)
  scripts/ports.cmake:141 (include)


Error: Building package aws-c-common:arm64-osx failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `./vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: aws-c-common:arm64-osx
  Vcpkg version: 2021-05-05-unknownhash

Additionally, attach any relevant sections from the log files above.

Is there any existing solution for this?
Note: I already tried ./vcpkg update

@KaibaLopez
Copy link
Contributor

So here's the thing @appumistri ,
I will take a look at this, but because it is regarding vcpkg, it has lower priority and as you can probably see we are having a few issues with the newest version of the SDK and looking at that is what's taking most of our time. Sorry about the delay there.
Having said, the best way for you to use the SDK is to follow our install instructions in the README.

@KaibaLopez KaibaLopez added the third-party This issue is related to third-party libraries or applications. label May 25, 2021
@jmklix
Copy link
Member

jmklix commented Mar 8, 2023

#2095

@jmklix jmklix added pending-release This issue will be fixed by an approved PR that hasn't been released yet. p3 This is a minor priority issue labels Mar 8, 2023
@jmklix
Copy link
Member

jmklix commented Aug 4, 2023

Try following these steps:

Building and running an app on EC2

Checkout this walk through on how to set up an environment and build the AWS SDK for C++ on an EC2 instance.

Building aws-sdk-cpp - Using vcpkg

You can download and install aws-sdk-cpp using the vcpkg dependency manager:

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install aws-sdk-cpp

@jmklix jmklix closed this as completed Aug 4, 2023
@github-actions
Copy link

github-actions bot commented Aug 4, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

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. p3 This is a minor priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet. third-party This issue is related to third-party libraries or applications.
Projects
None yet
Development

No branches or pull requests

3 participants