{"action":"created","issue":{"url":"https://api.github.com/repos/SFTtech/openage/issues/382","labels_url":"https://api.github.com/repos/SFTtech/openage/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/SFTtech/openage/issues/382/comments","events_url":"https://api.github.com/repos/SFTtech/openage/issues/382/events","html_url":"https://github.com/SFTtech/openage/issues/382","id":106737752,"number":382,"title":"Compiler errors with clang","user":{"login":"darrenstrash","id":9133924,"avatar_url":"https://avatars.githubusercontent.com/u/9133924?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenstrash","html_url":"https://github.com/darrenstrash","followers_url":"https://api.github.com/users/darrenstrash/followers","following_url":"https://api.github.com/users/darrenstrash/following{/other_user}","gists_url":"https://api.github.com/users/darrenstrash/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenstrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenstrash/subscriptions","organizations_url":"https://api.github.com/users/darrenstrash/orgs","repos_url":"https://api.github.com/users/darrenstrash/repos","events_url":"https://api.github.com/users/darrenstrash/events{/privacy}","received_events_url":"https://api.github.com/users/darrenstrash/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SFTtech/openage/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/SFTtech/openage/labels/buildsystem","name":"buildsystem","color":"eb6420"},{"url":"https://api.github.com/repos/SFTtech/openage/labels/c++","name":"c++","color":"000000"},{"url":"https://api.github.com/repos/SFTtech/openage/labels/os%20x","name":"os x","color":"ff35e5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-16T09:43:30Z","updated_at":"2015-09-17T19:38:22Z","closed_at":null,"body":"OSX Yosemite 10.10.4 (14E46)\r\nclang: Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)\r\nTarget: x86_64-apple-darwin14.4.0\r\nThread model: posix\r\n\r\nThe clang build currently fails. Here is a rundown:\r\n\r\n1. **Easy:** function call with invalid signature in game_control.cpp\r\n2. **Easy:** missing #include \\<string\\> in header files.\r\n3. **Hard:** thread_local storage is unsupported for types with \"non-trivial destructors\"\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26724568-compiler-errors-with-clang?utm_campaign=plugin&utm_content=tracker%2F371436&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F371436&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/SFTtech/openage/issues/comments/141203720","html_url":"https://github.com/SFTtech/openage/issues/382#issuecomment-141203720","issue_url":"https://api.github.com/repos/SFTtech/openage/issues/382","id":141203720,"user":{"login":"darrenstrash","id":9133924,"avatar_url":"https://avatars.githubusercontent.com/u/9133924?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenstrash","html_url":"https://github.com/darrenstrash","followers_url":"https://api.github.com/users/darrenstrash/followers","following_url":"https://api.github.com/users/darrenstrash/following{/other_user}","gists_url":"https://api.github.com/users/darrenstrash/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenstrash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenstrash/subscriptions","organizations_url":"https://api.github.com/users/darrenstrash/orgs","repos_url":"https://api.github.com/users/darrenstrash/repos","events_url":"https://api.github.com/users/darrenstrash/events{/privacy}","received_events_url":"https://api.github.com/users/darrenstrash/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T19:38:22Z","updated_at":"2015-09-17T19:38:22Z","body":"This is fixed by:\r\n\r\n1. installing clang 3.6 with Homebrew: brew install homebrew/versions/llvm36, \r\n2. modifying the game_control.cpp file to fix an argument mistmatch, and\r\n3. removing the thread_local redeclaration from compiler.h (it's for old/unsupported compilers anyway).\r\n\r\nI will make the code changes, modify building.md, and submit a pull request."}}