It does use clang, which is the toolchain the instructions in the wiki tells you to download; the errors you’re seeing happens when the compiler doesn’t have enough memory.
Unfortunately the AWS SDK has a very big C++ file (EC2Client.cpp) which requires around 8GB of RAM to build