{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/3151","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/3151/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/3151/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/3151/events","html_url":"https://github.com/nim-lang/Nim/issues/3151","id":97342928,"number":3151,"title":"build Nim fail","user":{"login":"xenogenesi","id":5729893,"avatar_url":"https://avatars.githubusercontent.com/u/5729893?v=3","gravatar_id":"","url":"https://api.github.com/users/xenogenesi","html_url":"https://github.com/xenogenesi","followers_url":"https://api.github.com/users/xenogenesi/followers","following_url":"https://api.github.com/users/xenogenesi/following{/other_user}","gists_url":"https://api.github.com/users/xenogenesi/gists{/gist_id}","starred_url":"https://api.github.com/users/xenogenesi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenogenesi/subscriptions","organizations_url":"https://api.github.com/users/xenogenesi/orgs","repos_url":"https://api.github.com/users/xenogenesi/repos","events_url":"https://api.github.com/users/xenogenesi/events{/privacy}","received_events_url":"https://api.github.com/users/xenogenesi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-26T19:19:14Z","updated_at":"2015-07-26T20:23:01Z","closed_at":null,"body":"I'd like to try Nim and I followed instructions from [download page](http://nim-lang.org/download.html)\r\n\r\nI've tried both git and tar sources, with gcc-4.8, 4.9 and clang 3.5.2 (I'm using Debian/sid on Linux)\r\n\r\ngcc:\r\n\r\n     In file included from c_code/2_2/nimsrc_nim.c:5:\r\n     c_code/nimbase.h:393:28: error: 'assert_numbits' declared as an array with a negative size\r\n     typedef int assert_numbits[sizeof(NI) == sizeof(void*) && 64 == sizeof(NI)*8 ? 1 : -1];\r\n\r\nclang:\r\n\r\n    In file included from c_code/2_2/nimsrc_nim.c:5:\r\n    c_code/nimbase.h:393:28: error: 'assert_numbits' declared as an array with a negative size\r\n    typedef int assert_numbits[sizeof(NI) == sizeof(void*) && 64 == sizeof(NI)*8 ? 1 : -1];\r\n                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nI'm doing something wrong?\r\n\r\nAlso, just a note, I seen `build.sh` *set* `CC` and `LINKER` variables, would be nice if it at least check and eventually use them from the environment."},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/125035557","html_url":"https://github.com/nim-lang/Nim/issues/3151#issuecomment-125035557","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/3151","id":125035557,"user":{"login":"dom96","id":246651,"avatar_url":"https://avatars.githubusercontent.com/u/246651?v=3","gravatar_id":"","url":"https://api.github.com/users/dom96","html_url":"https://github.com/dom96","followers_url":"https://api.github.com/users/dom96/followers","following_url":"https://api.github.com/users/dom96/following{/other_user}","gists_url":"https://api.github.com/users/dom96/gists{/gist_id}","starred_url":"https://api.github.com/users/dom96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dom96/subscriptions","organizations_url":"https://api.github.com/users/dom96/orgs","repos_url":"https://api.github.com/users/dom96/repos","events_url":"https://api.github.com/users/dom96/events{/privacy}","received_events_url":"https://api.github.com/users/dom96/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T20:23:01Z","updated_at":"2015-07-26T20:23:01Z","body":"Is your Linux 32bit?"}}