{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/334","repository_url":"https://api.github.com/repos/aws/aws-sdk-cpp","labels_url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/334/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/334/events","html_url":"https://github.com/aws/aws-sdk-cpp/issues/334","id":188899022,"number":334,"title":"build errors related to cmath","user":{"login":"csimmons0","id":15880996,"avatar_url":"https://avatars.githubusercontent.com/u/15880996?v=3","gravatar_id":"","url":"https://api.github.com/users/csimmons0","html_url":"https://github.com/csimmons0","followers_url":"https://api.github.com/users/csimmons0/followers","following_url":"https://api.github.com/users/csimmons0/following{/other_user}","gists_url":"https://api.github.com/users/csimmons0/gists{/gist_id}","starred_url":"https://api.github.com/users/csimmons0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csimmons0/subscriptions","organizations_url":"https://api.github.com/users/csimmons0/orgs","repos_url":"https://api.github.com/users/csimmons0/repos","events_url":"https://api.github.com/users/csimmons0/events{/privacy}","received_events_url":"https://api.github.com/users/csimmons0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-12T07:51:18Z","updated_at":"2016-11-17T00:01:19Z","closed_at":"2016-11-16T22:30:35Z","body":"After generating a build directory by running this command:\r\n```\r\ncmake -DTARGET_ARCH=ANDROID -DNDK_RELEASE=r13b -DANDROID_NATIVE_API_LEVEL=21 -DBUILD_ONLY=\"cognito-identity;access-management;iam\" -DANDROID_ABI=mips64 -Wno-dev ../deps/aws-sdk-cpp/\r\n```\r\nI run \"make\" and get these errors: \r\n```\r\n[ 22%] Building CXX object aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/external/json-cpp/jsoncpp.cpp.o\r\nIn file included from /Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/aws-cpp-sdk-core/source/external/json-cpp/jsoncpp.cpp:3073:\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:313:9: error: no member named 'signbit' in the global namespace\r\nusing ::signbit;\r\n      ~~^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:314:9: error: no member named 'fpclassify' in the global namespace\r\nusing ::fpclassify;\r\n      ~~^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:315:9: error: no member named 'isfinite' in the global namespace\r\nusing ::isfinite;\r\n      ~~^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:318:9: error: no member named 'isnormal' in the global namespace; did you mean '__isnormal'?\r\nusing ::isnormal;\r\n      ~~^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/sysroot/usr/include/math.h:186:5: note: '__isnormal' declared here\r\nint     __isnormal(double)  __pure2;\r\n        ^\r\nIn file included from /Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/aws-cpp-sdk-core/source/external/json-cpp/jsoncpp.cpp:3073:\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:319:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?\r\nusing ::isgreater;\r\n      ^~\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/functional:709:30: note: '::std::greater' declared here\r\nstruct _LIBCPP_TYPE_VIS_ONLY greater : binary_function<_Tp, _Tp, bool>\r\n                             ^\r\nIn file included from /Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/aws-cpp-sdk-core/source/external/json-cpp/jsoncpp.cpp:3073:\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:320:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?\r\nusing ::isgreaterequal;\r\n      ^~\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/functional:738:30: note: '::std::greater_equal' declared here\r\nstruct _LIBCPP_TYPE_VIS_ONLY greater_equal : binary_function<_Tp, _Tp, bool>\r\n                             ^\r\nIn file included from /Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/aws-cpp-sdk-core/source/external/json-cpp/jsoncpp.cpp:3073:\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:321:9: error: no member named 'isless' in the global namespace\r\nusing ::isless;\r\n      ~~^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:322:9: error: no member named 'islessequal' in the global namespace\r\nusing ::islessequal;\r\n      ~~^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:323:9: error: no member named 'islessgreater' in the global namespace\r\nusing ::islessgreater;\r\n      ~~^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:324:9: error: no member named 'isunordered' in the global namespace\r\nusing ::isunordered;\r\n      ~~^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../include/c++/4.9.x/cmath:325:9: error: no member named 'isunordered' in the global namespace\r\nusing ::isunordered;\r\n      ~~^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/aws-cpp-sdk-core/source/external/json-cpp/jsoncpp.cpp:3175:7: error: expected unqualified-id\r\n  if (IS_FINITE(value)) {\r\n      ^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/aws-cpp-sdk-core/source/external/json-cpp/jsoncpp.cpp:3101:24: note: expanded from macro 'IS_FINITE'\r\n#define IS_FINITE std::isfinite\r\n                       ^\r\n/Users/christophersimmons/Documents/repos/DoclilyAndroid/deps/aws-sdk-cpp/toolchains/android/mips64l-standalone-clang-21-libc++_shared-13002/sysroot/usr/include/math.h:91:5: note: expanded from macro 'isfinite'\r\n    ((sizeof (x) == sizeof (float)) ? __isfinitef(x)    \\\r\n    ^\r\n12 errors generated.\r\nmake[2]: *** [aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/external/json-cpp/jsoncpp.cpp.o] Error 1\r\nmake[1]: *** [aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\nI did some googling, and I think that these errors may be the result of not linking to the cmath library, which, I believe, is done by passing \"-lm\" as a CXXFLAG; however, I would expect CMake to handle this problem when it generated the makefiles. I'm on OS X and trying to build the SDK so that I can link to it from the CMakeLists.txt in an Android Studio project. Any help would be appreciated."},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/comments/261112504","html_url":"https://github.com/aws/aws-sdk-cpp/issues/334#issuecomment-261112504","issue_url":"https://api.github.com/repos/aws/aws-sdk-cpp/issues/334","id":261112504,"user":{"login":"csimmons0","id":15880996,"avatar_url":"https://avatars.githubusercontent.com/u/15880996?v=3","gravatar_id":"","url":"https://api.github.com/users/csimmons0","html_url":"https://github.com/csimmons0","followers_url":"https://api.github.com/users/csimmons0/followers","following_url":"https://api.github.com/users/csimmons0/following{/other_user}","gists_url":"https://api.github.com/users/csimmons0/gists{/gist_id}","starred_url":"https://api.github.com/users/csimmons0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csimmons0/subscriptions","organizations_url":"https://api.github.com/users/csimmons0/orgs","repos_url":"https://api.github.com/users/csimmons0/repos","events_url":"https://api.github.com/users/csimmons0/events{/privacy}","received_events_url":"https://api.github.com/users/csimmons0/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T00:01:19Z","updated_at":"2016-11-17T00:01:19Z","body":"Thanks; the errors are gone on my end."}}
{"actor":{"display_login":"csimmons0"}}