{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/4206","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/4206/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/4206/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/4206/events","html_url":"https://github.com/nim-lang/Nim/issues/4206","id":156238145,"number":4206,"title":"Errors when compiling on Windows 7 (64-bit)","user":{"login":"abudden","id":670607,"avatar_url":"https://avatars.githubusercontent.com/u/670607?v=3","gravatar_id":"","url":"https://api.github.com/users/abudden","html_url":"https://github.com/abudden","followers_url":"https://api.github.com/users/abudden/followers","following_url":"https://api.github.com/users/abudden/following{/other_user}","gists_url":"https://api.github.com/users/abudden/gists{/gist_id}","starred_url":"https://api.github.com/users/abudden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abudden/subscriptions","organizations_url":"https://api.github.com/users/abudden/orgs","repos_url":"https://api.github.com/users/abudden/repos","events_url":"https://api.github.com/users/abudden/events{/privacy}","received_events_url":"https://api.github.com/users/abudden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-23T09:34:14Z","updated_at":"2016-05-23T12:50:31Z","closed_at":null,"body":"I am hoping to submit a couple of pull-requests to fix some issues in the standard library.  Before doing this, I want to run the test suite on the latest nim code in order to be sure I haven't broken anything.\r\n\r\nI have tried to follow the instructions on the front page, but I'm having problems.  What I did:\r\n\r\n```\r\n> git clone https://github.com/nim-lang/Nim.git\r\n> cd git clone --depth 1 https://github.com/nim-lang/csources\r\n> cd csources\r\n> .\\build64.bat\r\n> cd ..\r\n> bin\\nim.exe c koch.nim\r\n```\r\n\r\nAll but the last step worked fine; the last step produced the following output:\r\n\r\n```\r\nHint: system [Processing]\r\nHint: koch [Processing]\r\nHint: os [Processing]\r\nHint: strutils [Processing]\r\nHint: parseutils [Processing]\r\nHint: times [Processing]\r\nHint: winlean [Processing]\r\nHint: dynlib [Processing]\r\nHint: parseopt [Processing]\r\nHint: osproc [Processing]\r\nHint: strtabs [Processing]\r\nHint: hashes [Processing]\r\nHint: etcpriv [Processing]\r\nHint: streams [Processing]\r\nHint: cpuinfo [Processing]\r\nkoch.nim(213, 12) Hint: 'dir' is declared but not used [XDeclaredButNotUsed]\r\nkoch.nim(305, 6) Hint: 'koch.run7z(platform: string, patterns: varargs[string])' is declared but not used [XDeclaredButNotUsed]\r\nCC: compiler_koch\r\nCC: stdlib_system\r\nCC: stdlib_os\r\nCC: stdlib_strutils\r\nCC: stdlib_parseutils\r\nCC: stdlib_times\r\nCC: stdlib_winlean\r\nCC: stdlib_dynlib\r\nIn file included from c:\\nim\\nimcache\\compiler_koch.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_system.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_parseutils.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_strutils.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_times.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_winlean.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_os.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_dynlib.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nCC: stdlib_parseopt\r\nIn file included from c:\\nim\\nimcache\\stdlib_parseopt.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nCC: stdlib_osproc\r\nCC: stdlib_strtabs\r\nCC: stdlib_hashes\r\nCC: stdlib_etcpriv\r\nCC: stdlib_streams\r\nCC: stdlib_cpuinfo\r\nIn file included from c:\\nim\\nimcache\\stdlib_osproc.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_hashes.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_strtabs.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_streams.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_etcpriv.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nIn file included from c:\\nim\\nimcache\\stdlib_cpuinfo.c:9:0:\r\nC:\\Nim\\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative\r\n typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];\r\n             ^\r\nHint:  [Link]\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_cpuinfo.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_streams.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_etcpriv.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_hashes.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_strtabs.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_osproc.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_parseopt.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_dynlib.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_winlean.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_times.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_parseutils.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_strutils.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_os.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\stdlib_system.o: No such file or directory\r\ngcc.exe: error: c:\\nim\\nimcache\\compiler_koch.o: No such file or directory\r\nError: execution of an external program failed: 'gcc.exe   -o c:\\nim\\koch.exe  c:\\nim\\nimcache\\stdlib_cpuinfo.o c:\\nim\\nimcache\\stdlib_streams.o c:\\nim\\nimcache\\stdlib_etcpriv.o c:\\nim\\nimcache\\stdlib_hashes.o c:\\nim\\nimcache\\stdlib_strtabs.o c:\\nim\\nimcache\\stdlib_osproc.o c:\\nim\\nimcache\\stdlib_parseopt.o c:\\nim\\nimcache\\stdlib_dynlib.o c:\\nim\\nimcache\\stdlib_winlean.o c:\\nim\\nimcache\\stdlib_times.o c:\\nim\\nimcache\\stdlib_parseutils.o c:\\nim\\nimcache\\stdlib_strutils.o c:\\nim\\nimcache\\stdlib_os.o c:\\nim\\nimcache\\stdlib_system.o c:\\nim\\nimcache\\compiler_koch.o c:\\nim\\icons\\koch_icon.o  '\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/220971035","html_url":"https://github.com/nim-lang/Nim/issues/4206#issuecomment-220971035","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/4206","id":220971035,"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":"2016-05-23T12:50:31Z","updated_at":"2016-05-23T12:50:31Z","body":"This usually suggests that your C compiler is 32bit whereas you built a 64bit version of the Nim compiler (or vice versa). You can likely check this by running ``gcc -v``."}}
{"actor":{"display_login":"dom96"}}