Skip to content

AWS SDK CPP error is_trivially_destructible’ is not a member of ‘std’ on compilation after cmake #272

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

Closed
giovanemartins opened this issue Aug 14, 2016 · 1 comment

Comments

@giovanemartins
Copy link

giovanemartins commented Aug 14, 2016

I have error on compile aws sdk c++ on Debian. I still check the version of cmake and make, but still get error.

/home/giovane/git/aws-sdk-cpp/build # name -a
Linux parsers-srv 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux

/home/giovane/git/aws-sdk-cpp/build # cmake -version
cmake version 3.6.1

/home/giovane/git/aws-sdk-cpp/build # make -version
GNU Make 3.81

cmake runs successful.

/home/giovane/git/aws-sdk-cpp/build # cmake -DBUILD_ONLY="sns" ../
-- Found Git: /usr/bin/git (found version "1.7.10.4") 
-- TARGET_ARCH not specified; inferring host OS to be platform compilation target
-- Generating linux build config
-- Building AWS libraries as shared objects
-- Http client: Curl
-- Encryption: Openssl
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Install binary prefix: linux/intel64
-- Considering sis
Updating version info to 0.14.4
-- Custom memory management enabled; stl objects now using custom allocators
-- Configuring done
-- Generating done
-- Build files have been written to: /home/giovane/git/aws-sdk-cpp/build

but make command fail...

/home/giovane/git/aws-sdk-cpp/build # make
Scanning dependencies of target aws-cpp-sdk-core
[  0%] Building CXX object aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/AmazonSerializableWebServiceRequest.cpp.o
In file included from /home/giovane/git/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/memory/stl/AWSAllocator.h:21:0,
                 from /home/giovane/git/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/memory/stl/AWSFunction.h:20,
                 from /home/giovane/git/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/AmazonWebServiceRequest.h:20,
                 from /home/giovane/git/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/AmazonSerializableWebServiceRequest.h:19,
                 from /home/giovane/git/aws-sdk-cpp/aws-cpp-sdk-core/source/AmazonSerializableWebServiceRequest.cpp:16:
/home/giovane/git/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/memory/AWSMemory.h: In function ‘bool Aws::ShouldDestroyArrayMembers()’:
/home/giovane/git/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/memory/AWSMemory.h:99:17: error: ‘is_trivially_destructible’ is not a member of ‘std’
/home/giovane/git/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/memory/AWSMemory.h:99:49: error: expected primary-expression before ‘>’ token
/home/giovane/git/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/memory/AWSMemory.h:99:50: error: ‘::value’ has not been declared
make[2]: *** [aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/AmazonSerializableWebServiceRequest.cpp.o] Error 1
make[1]: *** [aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/all] Error 2
make: *** [all] Error 2

How to fix?

@giovanemartins
Copy link
Author

Apparently, updating the gcc to 4.9 solve this issue.
I need to change my sources.list from "wheezy" to "jessie" to update gcc, as mentioned in one of answers in http://stackoverflow.com/questions/25147363/how-to-install-g-4-9-on-debian-wheezy-armel

After that, compilation was successful complete.

cobookman pushed a commit to cobookman/aws-sdk-cpp that referenced this issue Jan 17, 2022
Update aws-c-io to v0.10.7. This fixes the issue where "OverrideDefaultTrustStore" functions did not actually override the system trust store on Linux and Apple platforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant