-
Describe the bugBuilding of the libaws-cpp-sdk as a shared lib requires more than 4GB of memory.
This is from a machine with 4GB of physical memory. Expected behaviorIt should be possible to build the SDK with much less memory. Current behaviorThe SDK requires more than 4GB of memory to build. Steps to ReproduceTest building the library with 2 or 4GB of memory. Possible SolutionOne solution could be splitting AWS CPP SDK version usedaws-sdk-cpp-1.7.266 Compiler and Version usedgcc (Debian 8.3.0-6) 8.3.0 Operating System and versionLinux 4.19.0-14-arm64 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Building the whole sdk can use a lot of memory as you have noticed. Can you try using the BUILD_ONLY flag with cmake to reduce the size of what you are trying to build? You will only need to select the services that you want to use. It might look something like this: |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response. I wasn't immediately aware of this switch option. |
Beta Was this translation helpful? Give feedback.
-
If you haven't already can you please try building with that cmake flag. We are currently trying to improve the build process. More details about this can be found here. Also any feedback or suggestions are welcome. |
Beta Was this translation helpful? Give feedback.
-
I tested the suggested approach with
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I tested the suggested approach with
-DBUILD_ONLY="ec2"
with the same result as before. TheEC2Client.cpp.o
is too large to compile with 4GB of RAM. The SDK builds successfully with 8GB of RAM so the minimum build machine memory requirement is 8GB of RAM.