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

Error while compiling aws-sdk-cpp:1.8.130 on windows #2592

Closed
karan-k-deepr opened this issue Jul 24, 2023 · 5 comments
Closed

Error while compiling aws-sdk-cpp:1.8.130 on windows #2592

karan-k-deepr opened this issue Jul 24, 2023 · 5 comments
Assignees
Labels
bug This issue is a bug. closing-soon This issue will automatically close in 4 days unless further comments are made. p3 This is a minor priority issue

Comments

@karan-k-deepr
Copy link

Describe the bug

Getting compilation error while building aws-sdk-cpp on windows. I was able to compile the same version on my system and was using it without any issues since a long time ago. But some days back I removed the existing package and try to re-compile it. But this time it is giving me compile time error.
I am using Conan version: 1.56.0

Expected Behavior

The program should be able to compile without any issues.

Current Behavior

Getting Error:

-- Found: C:/Users/karan.kumar/.conan/data/aws-c-common/0.6.19/_/_/package/436a4fb584b459302de1a8fa2fe404b4c42aabbb/lib/aws-c-common.lib
CMake Error at Findaws-c-common.cmake:174 (include):
  include could not find requested file:

    C:/Users/karan.kumar/.conan/data/aws-c-common/0.6.19/_/_/package/436a4fb584b459302de1a8fa2fe404b4c42aabbb/lib/cmake/conan-official-aws-c-common-targets.cmake
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  Findaws-c-event-stream.cmake:172 (find_dependency)
  source_subfolder/aws-cpp-sdk-core/CMakeLists.txt:496 (find_package)


-- Conan: Using autogenerated Findaws-checksums.cmake
-- Found aws-checksums: 0.1.5 (found version "0.1.5")
-- Library aws-checksums found C:/Users/karan.kumar/.conan/data/aws-checksums/0.1.5/_/_/package/319bdef7555760f4a3121b1b34ea0e6a1d45bfb0/lib/aws-checksums.lib
-- Skipping already existing target: CONAN_LIB::aws-checksums_aws-checksums
-- Found: C:/Users/karan.kumar/.conan/data/aws-checksums/0.1.5/_/_/package/319bdef7555760f4a3121b1b34ea0e6a1d45bfb0/lib/aws-checksums.lib
-- Dependency aws-c-common already found
CMake Error at Findaws-checksums.cmake:181 (include):
  include could not find requested file:

    C:/Users/karan.kumar/.conan/data/aws-checksums/0.1.5/_/_/package/319bdef7555760f4a3121b1b34ea0e6a1d45bfb0/lib/cmake/conan-official-aws-checksums-targets.cmake
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  Findaws-c-event-stream.cmake:179 (find_dependency)
  source_subfolder/aws-cpp-sdk-core/CMakeLists.txt:496 (find_package)


CMake Error at Findaws-c-event-stream.cmake:188 (include):
  include could not find requested file:

    C:/Users/karan.kumar/.conan/data/aws-c-event-stream/0.1.5/_/_/package/6b129dcd9ea2ee6173e09c3271b790975537f820/lib/cmake/conan-official-aws-c-event-stream-targets.cmake
Call Stack (most recent call first):
  source_subfolder/aws-cpp-sdk-core/CMakeLists.txt:496 (find_package)


-- Configuring incomplete, errors occurred!
aws-sdk-cpp/1.8.130:
aws-sdk-cpp/1.8.130: ERROR: Package 'e2426f88ab12f99f1781d07869a3a53e14a7c862' build failed
aws-sdk-cpp/1.8.130: WARN: Build folder C:\.conan\bf09fd\1
ERROR: aws-sdk-cpp/1.8.130: Error in build() method, line 434
        cmake = self._configure_cmake()
while calling '_configure_cmake', line 428
        self._cmake.configure()
        ConanException: Error 1 while executing cd C:\.conan\bf09fd\1 && cmake -G "Ninja" -DCONAN_LINK_RUNTIME="/MDd" -DCMAKE_BUILD_TYPE="Debug" -DCONAN_CMAKE_CXX_STANDARD="17" -DCONAN_CMAKE_CXX_EXTENSIONS="OFF" -DCONAN_STD_CXX_FLAG="/std:c++17" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="Visual Studio" -DCONAN_COMPILER_VERSION="15" -DCONAN_CXX_FLAGS="/MP8" -DCONAN_C_FLAGS="/MP8" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="C:\.conan\d84e2b\1" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_MODULE_PATH="C:/.conan/bf09fd/1" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DBUILD_ONLY="core;access-management;cognito-idp;cognito-sync;identity-management;monitoring;queues;s3-encryption;text-to-speech;transfer" -DENABLE_UNITY_BUILD="True" -DENABLE_TESTING="False" -DAUTORUN_UNIT_TESTS="False" -DBUILD_DEPS="False" -DMINIMIZE_SIZE="False" -DFORCE_SHARED_CRT="True" -Wno-dev C:\.conan\bf09fd\1

Reproduction Steps

  1. Remove any existing pre-installed version from the local system.
  2. Try installing the package by compiling it on your own system.

Possible Solution

No response

Additional Information/Context

No response

AWS CPP SDK version used

1.8.130

Compiler and Version used

Visual Studio 16 2019

Operating System and version

Windows 10

@karan-k-deepr karan-k-deepr added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jul 24, 2023
@jmklix
Copy link
Member

jmklix commented Jul 25, 2023

It says you are missing aws-c-common. This could possibly be because you haven't downloaded the submodules required for this sdk. Can you follow these steps and then try recompiling this sdk?

cd aws-sdk-cpp
git checkout main
git pull origin main
git submodule update --init --recursive

@jmklix jmklix added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days. p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Jul 25, 2023
@jmklix jmklix self-assigned this Jul 25, 2023
@karan-k-deepr
Copy link
Author

@jmklix I am using conan package manager to build aws-sdk-cpp package on my system. So, there is no way I can go into aws-sdk-cpp directory and update submodules recursively.
I am not sure if above question is relevant to this github repo.

@jmklix
Copy link
Member

jmklix commented Jul 25, 2023

Your options are using this sdk directly which is what I described above.
Or you can try to update the version and configuration in the conan package manager. The current version that you are trying to use (1.8.130) is rather old and is from January of 2021. I would recommend making a PR similar to this one here that uses a newer version of this sdk and also updates the submodules correctly. The conan packager manager is not something that we maintain, so you would need to do this yourself. Please let me know if you have any questions about how to compile this sdk.

@jmklix jmklix added closing-soon This issue will automatically close in 4 days unless further comments are made. and removed response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days. labels Jul 25, 2023
@karan-k-deepr
Copy link
Author

Thanks, I'll then raise this issue on Conan repository. Hopefully they have some resolution to it.
I am able to compile separate AWS module copied directly from git, but this issue seems more related to conan.

@github-actions
Copy link

⚠️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. closing-soon This issue will automatically close in 4 days unless further comments are made. p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

2 participants