{"action":"created","issue":{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/272","labels_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/272/comments","events_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/272/events","html_url":"https://github.com/intel-iot-devkit/mraa/issues/272","id":105031813,"number":272,"title":"npm install error on Intel Edison Yocto release 2.1","user":{"login":"Vayvala","id":5346009,"avatar_url":"https://avatars.githubusercontent.com/u/5346009?v=3","gravatar_id":"","url":"https://api.github.com/users/Vayvala","html_url":"https://github.com/Vayvala","followers_url":"https://api.github.com/users/Vayvala/followers","following_url":"https://api.github.com/users/Vayvala/following{/other_user}","gists_url":"https://api.github.com/users/Vayvala/gists{/gist_id}","starred_url":"https://api.github.com/users/Vayvala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vayvala/subscriptions","organizations_url":"https://api.github.com/users/Vayvala/orgs","repos_url":"https://api.github.com/users/Vayvala/repos","events_url":"https://api.github.com/users/Vayvala/events{/privacy}","received_events_url":"https://api.github.com/users/Vayvala/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-05T15:15:15Z","updated_at":"2015-09-07T09:36:45Z","closed_at":"2015-09-07T09:36:44Z","body":"Intel Edison freshly updated to Yocto release 2.1\r\n\r\n```\r\nroot@va:~/js# uname -a\r\nLinux va 3.10.17-poky-edison+ #1 SMP PREEMPT Fri Jun 19 12:06:40 CEST 2015 i686 GNU/Linux\r\nroot@va:~/js# npm install --verbose mraa\r\n..........\r\n  cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DSWIG' '-DSWIGJAVASCRIPT' '-DBUILDING_NODE_EXTENSION=1' '-DSWIG_V8_VERSION=0x031459' '-DV8_VERSION=0x031459' '-DBUILDING_NODE_EXTENSION' -I/home/root/0.10.38/src -I/home/root/0.10.38/deps/uv/include -I/home/root/0.10.38/deps/v8/include -I../include -I../api/mraa -I../api  -Wall -Wextra -Wno-unused-parameter -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-omit-frame-pointer  -MMD -MF ./Release/.deps/Release/obj.target/mraa/src/mraa.o.d.raw  -c -o Release/obj.target/mraa/src/mraa.o ../src/mraa.c\r\n../src/mraa.c: In function 'mraa_init':\r\n../src/mraa.c:110:2: error: #error mraa_ARCH NOTHING\r\n #error mraa_ARCH NOTHING\r\n  ^\r\n../src/mraa.c: In function 'mraa_set_priority':\r\n../src/mraa.c:140:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     if (priority > sched_get_priority_max(SCHED_RR)) {\r\n                  ^\r\n../src/mraa.c: In function 'mraa_setup_mux_mapped':\r\n../src/mraa.c:154:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     for (mi = 0; mi < meta.mux_total; mi++) {\r\n                     ^\r\n../src/mraa.c: In function 'mraa_pin_mode_test':\r\n../src/mraa.c:233:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     if (pin > (plat->phy_pin_count - 1) || pin < 0)\r\n             ^\r\n../src/mraa.c: In function 'mraa_get_pin_name':\r\n../src/mraa.c:353:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     if (pin > (plat->phy_pin_count - 1) || pin < 0)\r\n             ^\r\n../src/mraa.c: In function 'mraa_find_i2c_bus':\r\n../src/mraa.c:520:9: warning: statement with no effect [-Wunused-value]\r\n         for (i; i < num_i2c_devices; i++) {\r\n         ^\r\nmraa.target.mk:110: recipe for target 'Release/obj.target/mraa/src/mraa.o' failed\r\nmake: *** [Release/obj.target/mraa/src/mraa.o] Error 1\r\nmake: Leaving directory '/home/root/js/node_modules/mraa/build'\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)\r\ngyp ERR! System Linux 3.10.17-poky-edison+\r\ngyp ERR! command \"node\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /home/root/js/node_modules/mraa\r\ngyp ERR! node -v v0.10.38\r\ngyp ERR! node-gyp -v v1.0.1\r\ngyp ERR! not ok\r\n\r\nnpm verb unsafe-perm in lifecycle false\r\nnpm info mraa@0.7.4 Failed to exec install script\r\nnpm ERR! mraa@0.7.4 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the mraa@0.7.4 install script.\r\nnpm ERR! This is most likely a problem with the mraa package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls mraa\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! System Linux 3.10.17-poky-edison+\r\nnpm ERR! command \"node\" \"/usr/bin/npm\" \"install\" \"--verbose\" \"mraa\"\r\nnpm ERR! cwd /home/root/js\r\nnpm ERR! node -v v0.10.38\r\nnpm ERR! npm -v 1.4.28\r\nnpm ERR! code ELIFECYCLE\r\nnpm verb exit [ 1, true ]\r\nnpm verb node_modules/mraa unbuild\r\nnpm info preuninstall mraa@0.7.4\r\nnpm info uninstall mraa@0.7.4\r\nnpm verb true,/home/root/js/node_modules,/home/root/js/node_modules unbuild mraa@0.7.4\r\nnpm info postuninstall mraa@0.7.4\r\nnpm ERR! not ok code 0\r\n```"},"comment":{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/comments/138251432","html_url":"https://github.com/intel-iot-devkit/mraa/issues/272#issuecomment-138251432","issue_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/272","id":138251432,"user":{"login":"arfoll","id":514406,"avatar_url":"https://avatars.githubusercontent.com/u/514406?v=3","gravatar_id":"","url":"https://api.github.com/users/arfoll","html_url":"https://github.com/arfoll","followers_url":"https://api.github.com/users/arfoll/followers","following_url":"https://api.github.com/users/arfoll/following{/other_user}","gists_url":"https://api.github.com/users/arfoll/gists{/gist_id}","starred_url":"https://api.github.com/users/arfoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arfoll/subscriptions","organizations_url":"https://api.github.com/users/arfoll/orgs","repos_url":"https://api.github.com/users/arfoll/repos","events_url":"https://api.github.com/users/arfoll/events{/privacy}","received_events_url":"https://api.github.com/users/arfoll/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T09:36:44Z","updated_at":"2015-09-07T09:36:44Z","body":"NPM module is broken currently on node.js <0.12.0. I'll release a new version asap to fix this."}}