{"action":"created","issue":{"url":"https://api.github.com/repos/miki151/keeperrl/issues/741","repository_url":"https://api.github.com/repos/miki151/keeperrl","labels_url":"https://api.github.com/repos/miki151/keeperrl/issues/741/labels{/name}","comments_url":"https://api.github.com/repos/miki151/keeperrl/issues/741/comments","events_url":"https://api.github.com/repos/miki151/keeperrl/issues/741/events","html_url":"https://github.com/miki151/keeperrl/issues/741","id":107790482,"number":741,"title":"Build issue with GCC 5.2.1","user":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-22T20:03:33Z","updated_at":"2016-02-08T23:54:54Z","closed_at":null,"body":"Trying to build the current master branch against gcc 5.2.1 and boost 1.58.0, I get:\r\n```\r\ng++ -MMD -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -std=c++11 -DDATA_DIR=\\\"/usr/share/games/keeperrl\\\" -DRELEASE -I. -I./extern  -c util.cpp -o obj/util.o\r\nutil.cpp:86:47: error: duplicate explicit instantiation of 'std::__cxx11::string toString(const T&) [with T = unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]' [-fpermissive]\r\n template string toString<size_t>(const size_t&);\r\n                                               ^\r\nMakefile:104: recipe for target 'obj/util.o' failed\r\nmake: *** [obj/util.o] Error 1\r\n```"},"comment":{"url":"https://api.github.com/repos/miki151/keeperrl/issues/comments/181630465","html_url":"https://github.com/miki151/keeperrl/issues/741#issuecomment-181630465","issue_url":"https://api.github.com/repos/miki151/keeperrl/issues/741","id":181630465,"user":{"login":"susnux","id":1855448,"avatar_url":"https://avatars.githubusercontent.com/u/1855448?v=3","gravatar_id":"","url":"https://api.github.com/users/susnux","html_url":"https://github.com/susnux","followers_url":"https://api.github.com/users/susnux/followers","following_url":"https://api.github.com/users/susnux/following{/other_user}","gists_url":"https://api.github.com/users/susnux/gists{/gist_id}","starred_url":"https://api.github.com/users/susnux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/susnux/subscriptions","organizations_url":"https://api.github.com/users/susnux/orgs","repos_url":"https://api.github.com/users/susnux/repos","events_url":"https://api.github.com/users/susnux/events{/privacy}","received_events_url":"https://api.github.com/users/susnux/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T23:54:54Z","updated_at":"2016-02-08T23:54:54Z","body":"That is no gcc problem. Same with 4.8.\r\nThis problem is there is a explicit template for size_t and for unsigned int.\r\nOn 64Bit this will expand to unsigned long and unsigned int (OK).\r\nBut on 32Bit this will expand to unsigned int and unsigned int (BAD double).\r\n\r\nSo you must make sure size_t != unsigned int (or simple replace size_t with unsigned long)."}}