{"action":"created","issue":{"url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/1834","repository_url":"https://api.github.com/repos/Alexpux/MINGW-packages","labels_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/1834/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/1834/comments","events_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/1834/events","html_url":"https://github.com/Alexpux/MINGW-packages/issues/1834","id":183581392,"number":1834,"title":"multiple definition with TLS when build clang3.8","user":{"login":"yumetodo","id":10869046,"avatar_url":"https://avatars.githubusercontent.com/u/10869046?v=3","gravatar_id":"","url":"https://api.github.com/users/yumetodo","html_url":"https://github.com/yumetodo","followers_url":"https://api.github.com/users/yumetodo/followers","following_url":"https://api.github.com/users/yumetodo/following{/other_user}","gists_url":"https://api.github.com/users/yumetodo/gists{/gist_id}","starred_url":"https://api.github.com/users/yumetodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yumetodo/subscriptions","organizations_url":"https://api.github.com/users/yumetodo/orgs","repos_url":"https://api.github.com/users/yumetodo/repos","events_url":"https://api.github.com/users/yumetodo/events{/privacy}","received_events_url":"https://api.github.com/users/yumetodo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-18T03:25:44Z","updated_at":"2016-11-24T00:20:14Z","closed_at":null,"body":"Here is small sample to reproduce.\n\nhttps://bitbucket.org/yumetodo/tls_test\n\n```\n$cmake -G \"MSYS Makefiles\" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_CXX_COMPILER=clang++\n-- The CXX compiler identification is Clang 3.8.0\n-- Check for working CXX compiler: D:/msys64/mingw64/bin/clang++.exe\n-- Check for working CXX compiler: D:/msys64/mingw64/bin/clang++.exe -- works\n-- Detecting CXX compiler ABI info\n-- Detecting CXX compiler ABI info - done\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- The C compiler identification is GNU 6.2.0\n-- Check for working C compiler: D:/msys64/mingw64/bin/gcc.exe\n-- Check for working C compiler: D:/msys64/mingw64/bin/gcc.exe -- works\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Detecting C compile features\n-- Detecting C compile features - done\n-- Configuring done\n-- Generating done\n-- Build files have been written to: D:/msys64/home/yumetodo/tls_test/TLS_test\n$make\nScanning dependencies of target TLS_test\n[ 33%] Building CXX object CMakeFiles/TLS_test.dir/a.cpp.obj\n[ 66%] Building CXX object CMakeFiles/TLS_test.dir/main.cpp.obj\n[100%] Linking CXX executable TLS_test.exe\nCMakeFiles/TLS_test.dir/objects.a(main.cpp.obj):(.text+0xc0): `TLS wrapper function for Test::mt' が重複して定義されています\nCMakeFiles/TLS_test.dir/objects.a(a.cpp.obj):(.text+0x140): ここで最初に定義されています\nclang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)\nmake[2]: *** [CMakeFiles/TLS_test.dir/build.make:122: TLS_test.exe] エラー 1\nmake[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/TLS_test.dir/all] エラー 2\nmake: *** [Makefile:84: all] エラー 2\n```\n\nOn msys2 GCC6.2.0 or Ubuntu 16.04 clang3.8.0 report no error.\n\nref: https://github.com/YSRKEN/KanColleSimulator_KAI/pull/154\n"},"comment":{"url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/comments/262661416","html_url":"https://github.com/Alexpux/MINGW-packages/issues/1834#issuecomment-262661416","issue_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/1834","id":262661416,"user":{"login":"mati865","id":1174646,"avatar_url":"https://avatars.githubusercontent.com/u/1174646?v=3","gravatar_id":"","url":"https://api.github.com/users/mati865","html_url":"https://github.com/mati865","followers_url":"https://api.github.com/users/mati865/followers","following_url":"https://api.github.com/users/mati865/following{/other_user}","gists_url":"https://api.github.com/users/mati865/gists{/gist_id}","starred_url":"https://api.github.com/users/mati865/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mati865/subscriptions","organizations_url":"https://api.github.com/users/mati865/orgs","repos_url":"https://api.github.com/users/mati865/repos","events_url":"https://api.github.com/users/mati865/events{/privacy}","received_events_url":"https://api.github.com/users/mati865/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T00:20:14Z","updated_at":"2016-11-24T00:20:14Z","body":"It doesn't help"}}
{"actor":{"display_login":"mati865"}}