{"action":"created","issue":{"url":"https://api.github.com/repos/EmergingTechnologyAdvisors/node-serialport/issues/1290","repository_url":"https://api.github.com/repos/EmergingTechnologyAdvisors/node-serialport","labels_url":"https://api.github.com/repos/EmergingTechnologyAdvisors/node-serialport/issues/1290/labels{/name}","comments_url":"https://api.github.com/repos/EmergingTechnologyAdvisors/node-serialport/issues/1290/comments","events_url":"https://api.github.com/repos/EmergingTechnologyAdvisors/node-serialport/issues/1290/events","html_url":"https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1290","id":248368791,"number":1290,"title":"Installation issues on ARM Cortex M4 yocto linux build","user":{"login":"markmitton","id":6764365,"avatar_url":"https://avatars1.githubusercontent.com/u/6764365?v=4","gravatar_id":"","url":"https://api.github.com/users/markmitton","html_url":"https://github.com/markmitton","followers_url":"https://api.github.com/users/markmitton/followers","following_url":"https://api.github.com/users/markmitton/following{/other_user}","gists_url":"https://api.github.com/users/markmitton/gists{/gist_id}","starred_url":"https://api.github.com/users/markmitton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markmitton/subscriptions","organizations_url":"https://api.github.com/users/markmitton/orgs","repos_url":"https://api.github.com/users/markmitton/repos","events_url":"https://api.github.com/users/markmitton/events{/privacy}","received_events_url":"https://api.github.com/users/markmitton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-07T10:25:10Z","updated_at":"2017-08-07T12:25:43Z","closed_at":"2017-08-07T12:25:43Z","body":"serialport: v5.1.0-beta5\r\nnode: v6.10.3\r\nnpm: v3.10.10\r\nos: linux 4.4.68 (Yocto linux project)\r\nhw: see below\r\n\r\nprocessor\t: 0\r\nmodel name\t: ARMv7 Processor rev 1 (v7l)\r\nBogoMIPS\t: 351.43\r\nFeatures\t: half thumb fastmult vfp edsp vfpv3 vfpv3d16 tls vfpv4 \r\nCPU implementer\t: 0x41\r\nCPU architecture: 7\r\nCPU variant\t: 0x0\r\nCPU part\t: 0xc05\r\nCPU revision\t: 1\r\nHardware\t: Atmel SAMA5\r\n\r\nI have tried installing using npm as user/root and with/without flags --unsafe-perm and --build-from-source without success.\r\n\r\nThe following output  is from executing as follows:\r\nsudo npm install -g serialport --unsafe-perm --build-from-source\r\n\r\nCan you anyone please point me in the direction as to why npm can't build this package or what it is complaining about?\r\n\r\nsudo npm install -g serialport --unsafe-perm --build-from-source\r\n/usr/bin/serialport-list -> /usr/lib/node_modules/serialport/bin/list.js\r\n/usr/bin/serialport-repl -> /usr/lib/node_modules/serialport/bin/repl.js\r\n/usr/bin/serialport-term -> /usr/lib/node_modules/serialport/bin/terminal.js\r\n\r\n> serialport@5.0.0 install /usr/lib/node_modules/serialport\r\n> node-pre-gyp install --fallback-to-build\r\n\r\nmake: Entering directory '/usr/lib/node_modules/serialport/build'\r\n  CXX(target) Release/obj.target/serialport/src/serialport.o\r\ng++: error trying to exec 'as': execvp: No such file or directory\r\nmake: *** [serialport.target.mk:94: Release/obj.target/serialport/src/serialport.o] Error 1\r\nmake: Leaving directory '/usr/lib/node_modules/serialport/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:276:23)\r\ngyp ERR! stack     at emitTwo (events.js:106:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:191:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\r\ngyp ERR! System Linux 4.4.68_figcomp2-01701-gfa8486c\r\ngyp ERR! command \"/usr/bin/node\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/usr/lib/node_modules/serialport/build/Release/serialport.node\" \"--module_name=serialport\" \"--module_path=/usr/lib/node_modules/serialport/build/Release\"\r\ngyp ERR! cwd /usr/lib/node_modules/serialport\r\ngyp ERR! node -v v6.10.3\r\ngyp ERR! node-gyp -v v3.4.0\r\ngyp ERR! not ok \r\nnode-pre-gyp ERR! build error \r\nnode-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/usr/lib/node_modules/serialport/build/Release' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)\r\nnode-pre-gyp ERR! stack     at emitTwo (events.js:106:13)\r\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)\r\nnode-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:886:16)\r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\r\nnode-pre-gyp ERR! System Linux 4.4.68_figcomp2-01701-gfa8486c\r\nnode-pre-gyp ERR! command \"/usr/bin/node\" \"/usr/lib/node_modules/serialport/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /usr/lib/node_modules/serialport\r\nnode-pre-gyp ERR! node -v v6.10.3\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.36\r\nnode-pre-gyp ERR! not ok \r\nFailed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/usr/lib/node_modules/serialport/build/Release' (1)\r\nnpm ERR! Linux 4.4.68_figcomp2-01701-gfa8486c\r\nnpm ERR! argv \"/usr/bin/node\" \"/usr/bin/npm\" \"install\" \"-g\" \"serialport\" \"--unsafe-perm\" \"--build-from-source\"\r\nnpm ERR! node v6.10.3\r\nnpm ERR! npm  v3.10.10\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! serialport@5.0.0 install: `node-pre-gyp install --fallback-to-build`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the serialport@5.0.0 install script 'node-pre-gyp install --fallback-to-build'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the serialport package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-pre-gyp install --fallback-to-build\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs serialport\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls serialport\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/root/npm-debug.log\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/EmergingTechnologyAdvisors/node-serialport/issues/comments/320649600","html_url":"https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1290#issuecomment-320649600","issue_url":"https://api.github.com/repos/EmergingTechnologyAdvisors/node-serialport/issues/1290","id":320649600,"user":{"login":"markmitton","id":6764365,"avatar_url":"https://avatars1.githubusercontent.com/u/6764365?v=4","gravatar_id":"","url":"https://api.github.com/users/markmitton","html_url":"https://github.com/markmitton","followers_url":"https://api.github.com/users/markmitton/followers","following_url":"https://api.github.com/users/markmitton/following{/other_user}","gists_url":"https://api.github.com/users/markmitton/gists{/gist_id}","starred_url":"https://api.github.com/users/markmitton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markmitton/subscriptions","organizations_url":"https://api.github.com/users/markmitton/orgs","repos_url":"https://api.github.com/users/markmitton/repos","events_url":"https://api.github.com/users/markmitton/events{/privacy}","received_events_url":"https://api.github.com/users/markmitton/received_events","type":"User","site_admin":false},"created_at":"2017-08-07T12:25:43Z","updated_at":"2017-08-07T12:25:43Z","body":"OK so seems to have been a problem with the toolchain. Reinstalled and it now builds node-serialport. "}}
{"actor":{"display_login":"markmitton"}}