{"action":"opened","issue":{"url":"https://api.github.com/repos/jaxry/bubblechan/issues/1","labels_url":"https://api.github.com/repos/jaxry/bubblechan/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jaxry/bubblechan/issues/1/comments","events_url":"https://api.github.com/repos/jaxry/bubblechan/issues/1/events","html_url":"https://github.com/jaxry/bubblechan/issues/1","id":92839247,"number":1,"title":"npm run build error","user":{"login":"lehitoskin","id":2506703,"avatar_url":"https://avatars.githubusercontent.com/u/2506703?v=3","gravatar_id":"","url":"https://api.github.com/users/lehitoskin","html_url":"https://github.com/lehitoskin","followers_url":"https://api.github.com/users/lehitoskin/followers","following_url":"https://api.github.com/users/lehitoskin/following{/other_user}","gists_url":"https://api.github.com/users/lehitoskin/gists{/gist_id}","starred_url":"https://api.github.com/users/lehitoskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehitoskin/subscriptions","organizations_url":"https://api.github.com/users/lehitoskin/orgs","repos_url":"https://api.github.com/users/lehitoskin/repos","events_url":"https://api.github.com/users/lehitoskin/events{/privacy}","received_events_url":"https://api.github.com/users/lehitoskin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-03T09:50:19Z","updated_at":"2015-07-03T09:50:19Z","closed_at":null,"body":"```\r\nlehi@rydia ~/p/j/bubblechan> npm run build\r\n\r\n> bubblechan@0.0.1 build /home/lehi/prog/js/bubblechan\r\n> gcc force_direct.c -o ./bin/force_direct -lm -O3\r\n\r\nforce_direct.c: In function ‘create_nodes’:\r\nforce_direct.c:81:5: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n     for (int i = 0; i < nodes_length; i++) \r\n     ^\r\nforce_direct.c:81:5: note: use option -std=c99 or -std=gnu99 to compile your code\r\nforce_direct.c: In function ‘create_edges’:\r\nforce_direct.c:102:5: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n     for (int i = 0; i < edges_length; i++)\r\n     ^\r\nforce_direct.c: In function ‘output_graph’:\r\nforce_direct.c:115:5: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n     for (int i = 0; i < nodes.size; i++) \r\n     ^\r\nforce_direct.c: In function ‘force_direct’:\r\nforce_direct.c:129:5: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n     for (int i = 0; i < ITERATIONS; i++)\r\n     ^\r\nforce_direct.c:131:9: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n         for (int n = 0; n < nodes.size; n++) \r\n         ^\r\nforce_direct.c:136:18: error: redefinition of ‘n’\r\n         for (int n = 0; n < nodes.size; n++)\r\n                  ^\r\nforce_direct.c:131:18: note: previous definition of ‘n’ was here\r\n         for (int n = 0; n < nodes.size; n++) \r\n                  ^\r\nforce_direct.c:136:9: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n         for (int n = 0; n < nodes.size; n++)\r\n         ^\r\nforce_direct.c:138:13: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n             for (int p = n + 1; p < nodes.size; p++)\r\n             ^\r\nforce_direct.c:147:9: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n         for (int e = 0; e < edges.size; e++) \r\n         ^\r\nforce_direct.c:155:18: error: redefinition of ‘n’\r\n         for (int n = 0; n < nodes.size; n++)\r\n                  ^\r\nforce_direct.c:136:18: note: previous definition of ‘n’ was here\r\n         for (int n = 0; n < nodes.size; n++)\r\n                  ^\r\nforce_direct.c:155:9: error: ‘for’ loop initial declarations are only allowed in C99 mode\r\n         for (int n = 0; n < nodes.size; n++)\r\n         ^\r\n\r\nnpm ERR! bubblechan@0.0.1 build: `gcc force_direct.c -o ./bin/force_direct -lm -O3`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the bubblechan@0.0.1 build script.\r\nnpm ERR! This is most likely a problem with the bubblechan package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     gcc force_direct.c -o ./bin/force_direct -lm -O3\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls bubblechan\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! System Linux 4.0.5-gentoo\r\nnpm ERR! command \"/usr/bin/node\" \"/usr/bin/npm\" \"run\" \"build\"\r\nnpm ERR! cwd /home/lehi/prog/js/bubblechan\r\nnpm ERR! node -v v0.10.30\r\nnpm ERR! npm -v 1.4.21\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! \r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /home/lehi/prog/js/bubblechan/npm-debug.log\r\nnpm ERR! not ok code 0\r\n```\r\n\r\nObviously it'd be simple to just specify -std=gnu99, but I can't seem to find the relevant file that contains the compilation instructions. (and I'm tired)."}}