Closed
Description
Describe the bug
Building of the libaws-cpp-sdk as a shared lib requires more than 4GB of memory.
Scanning dependencies of target aws-cpp-sdk-ec2
[ 28%] Building CXX object aws-cpp-sdk-ec2/CMakeFiles/aws-cpp-sdk-ec2.dir/source/EC2Client.cpp.o
virtual memory exhausted: Cannot allocate memory
This is from a machine with 4GB of physical memory.
Expected behavior
It should be possible to build the SDK with much less memory.
Current behavior
The SDK requires more than 4GB of memory to build.
Steps to Reproduce
Test building the library with 2 or 4GB of memory.
Possible Solution
One solution could be splitting EC2Client.cpp.o
into multiple smaller objects.
AWS CPP SDK version used
aws-sdk-cpp-1.7.266
Compiler and Version used
gcc (Debian 8.3.0-6) 8.3.0
Operating System and version
Linux 4.19.0-14-arm64