{"action":"created","issue":{"url":"https://api.github.com/repos/tpoechtrager/osxcross/issues/171","repository_url":"https://api.github.com/repos/tpoechtrager/osxcross","labels_url":"https://api.github.com/repos/tpoechtrager/osxcross/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/tpoechtrager/osxcross/issues/171/comments","events_url":"https://api.github.com/repos/tpoechtrager/osxcross/issues/171/events","html_url":"https://github.com/tpoechtrager/osxcross/issues/171","id":388614209,"node_id":"MDU6SXNzdWUzODg2MTQyMDk=","number":171,"title":"clang++ 7.0 fails to compile <unordered_map>","user":{"login":"kivadiu","id":3123190,"node_id":"MDQ6VXNlcjMxMjMxOTA=","avatar_url":"https://avatars1.githubusercontent.com/u/3123190?v=4","gravatar_id":"","url":"https://api.github.com/users/kivadiu","html_url":"https://github.com/kivadiu","followers_url":"https://api.github.com/users/kivadiu/followers","following_url":"https://api.github.com/users/kivadiu/following{/other_user}","gists_url":"https://api.github.com/users/kivadiu/gists{/gist_id}","starred_url":"https://api.github.com/users/kivadiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kivadiu/subscriptions","organizations_url":"https://api.github.com/users/kivadiu/orgs","repos_url":"https://api.github.com/users/kivadiu/repos","events_url":"https://api.github.com/users/kivadiu/events{/privacy}","received_events_url":"https://api.github.com/users/kivadiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-07T11:23:38Z","updated_at":"2018-12-12T10:04:50Z","closed_at":null,"author_association":"NONE","body":"I am using osxcross on Fedora to compile this simple program:\r\n```\r\n#include <unordered_map>\r\nint main() { return 0; }\r\n```\r\nI use the following command to compile and link:\r\n\r\n- with SDK 10.9: `x86_64-apple-darwin13-clang++-libc++ -std=c++14 -mmacosx-version-min=10.9 -o test-hash test-hash.cpp`\r\n- with SDK 10.11: `x86_64-apple-darwin15-clang++-libc++ -std=c++14 -mmacosx-version-min=10.9 -o test-hash test-hash.cpp`\r\n\r\nOn F28 with clang++ 6.0 and SDK 10.9, it works fine.\r\nOn F29 with clang++ 7.0 and SDK 10.9 or 10.11, it fails with the following error:\r\n```\r\nIn file included from test-hash.cpp:1:\r\nIn file included from /softs/osxcross-sdk10.11-min10.9-clang7.0.0/bin/../SDK/MacOSX10.11.sdk/usr/include/c++/v1/unordered_map:369:\r\nSDK/MacOSX10.11.sdk/usr/include/c++/v1/__hash_table:1134:43: error: \r\n      exception specification in declaration does not match previous declaration\r\n__hash_table<_Tp, _Hash, _Equal, _Alloc>::__hash_table()\r\n                                          ^\r\nSDK/MacOSX10.11.sdk/usr/include/c++/v1/__hash_table:839:5: note: \r\n      previous declaration is here\r\n    __hash_table()\r\n    ^\r\nSDK/MacOSX10.11.sdk/usr/include/c++/v1/__hash_table:1202:43: error: \r\n      exception specification in declaration does not match previous declaration\r\n__hash_table<_Tp, _Hash, _Equal, _Alloc>::__hash_table(__hash_table&& __u)\r\n                                          ^\r\nSDK/MacOSX10.11.sdk/usr/include/c++/v1/__hash_table:853:5: note: \r\n      previous declaration is here\r\n    __hash_table(__hash_table&& __u)\r\n    ^\r\n2 errors generated.\r\n```\r\nThis error is real: the exception specifications for the move constructor of `__hash_table` are different in the declaration and in the definition (and this is true for 10.9 and 10.11 SDK). With the 10.11 SDK, here is what we have:\r\n\r\n- declaration:\r\n```\r\n_NOEXCEPT_(\r\n    __node_traits::propagate_on_container_move_assignment::value &&\r\n    is_nothrow_move_assignable<__node_allocator>::value &&\r\n    is_nothrow_move_assignable<hasher>::value &&\r\n    is_nothrow_move_assignable<key_equal>::value)\r\n```\r\n- definition:\r\n```\r\n_NOEXCEPT_(\r\n    is_nothrow_move_constructible<__bucket_list>::value &&\r\n    is_nothrow_move_constructible<__first_node>::value &&\r\n    is_nothrow_move_constructible<hasher>::value &&\r\n    is_nothrow_move_constructible<key_equal>::value)\r\n ```\r\n\r\nI assume that it was not detected with clang 6 and is now blocking with clang 7.\r\nI moved from SDK 10.9 to SDK 10.11. I have no idea what else to try unless forcing osxcross to use clang 6 instead of clang 7 if I can install both at the same time.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/tpoechtrager/osxcross/issues/comments/446531605","html_url":"https://github.com/tpoechtrager/osxcross/issues/171#issuecomment-446531605","issue_url":"https://api.github.com/repos/tpoechtrager/osxcross/issues/171","id":446531605,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjUzMTYwNQ==","user":{"login":"kivadiu","id":3123190,"node_id":"MDQ6VXNlcjMxMjMxOTA=","avatar_url":"https://avatars1.githubusercontent.com/u/3123190?v=4","gravatar_id":"","url":"https://api.github.com/users/kivadiu","html_url":"https://github.com/kivadiu","followers_url":"https://api.github.com/users/kivadiu/followers","following_url":"https://api.github.com/users/kivadiu/following{/other_user}","gists_url":"https://api.github.com/users/kivadiu/gists{/gist_id}","starred_url":"https://api.github.com/users/kivadiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kivadiu/subscriptions","organizations_url":"https://api.github.com/users/kivadiu/orgs","repos_url":"https://api.github.com/users/kivadiu/repos","events_url":"https://api.github.com/users/kivadiu/events{/privacy}","received_events_url":"https://api.github.com/users/kivadiu/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T10:04:50Z","updated_at":"2018-12-12T10:04:50Z","author_association":"NONE","body":"> If you like hackish solutions, then yes. -> #103 (comment). I just noticed he had to use a later SDK for the exact same reason. :-)\r\n\r\nWell, I looked that that pretty long thread and it seems my first issue is to extract the SDK from the new .xip file format on linux or I need to update my Mac which currently I cannot do. Any idea on how to extract the SDK from Xcode >= 8?"}}
{"actor":{"display_login":"kivadiu"}}