tessel / t2-compiler

A server, VM and command line tool to pre-compile binaries for Tessel 2
MIT License
7 stars 10 forks source link

[serialport] cp: cannot stat ‘Debug/serialport.node’: No such file or directory #21

Closed johnnyman727 closed 8 years ago

johnnyman727 commented 8 years ago

The compiler chokes when trying to compile serialport. Here is the output from the command:

➜  t2-compiler git:(master) ✗ ./compile.sh serialport
downloading package...
serialport
total 12
drwxrwxr-x 3 vagrant vagrant 4096 Apr 15 18:13 .
drwxr-xr-x 3 vagrant root    4096 Apr 15 18:13 ..
drwxrwxr-x 2 vagrant vagrant 4096 Apr 15 18:13 build
serialport-2.1.0.tgz
Connection to 127.0.0.1 closed.
running build...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7731  100  7731    0     0  13721      0 --:--:-- --:--:-- --:--:-- 13707
=> nvm is already installed in /home/vagrant/.nvm, trying to update using git
=>
=> Source string already in /home/vagrant/.bashrc
=> Close and reopen your terminal to start using nvm
v4.2.1 is already installed.
Now using node v4.2.1 (npm v2.14.7)
Now using node v4.2.1 (npm v2.14.7)
/home/vagrant/.nvm/versions/node/v4.2.1/bin/pre-gypify -> /home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/pre-gypify/pre-gypify.js
/home/vagrant/.nvm/versions/node/v4.2.1/bin/node-pre-gyp -> /home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/node-pre-gyp/bin/node-pre-gyp
/home/vagrant/.nvm/versions/node/v4.2.1/bin/node-gyp -> /home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/node-gyp/bin/node-gyp.js
pre-gypify@1.3.2 /home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/pre-gypify
├── gyp-reader@0.0.2
└── nomnom@1.8.1 (underscore@1.6.0, chalk@0.4.0)

node-pre-gyp@0.6.26 /home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/node-pre-gyp
├── semver@5.1.0
├── nopt@3.0.6 (abbrev@1.0.7)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── rc@1.1.6 (ini@1.3.4, deep-extend@0.4.1, strip-json-comments@1.0.4, minimist@1.2.0)
├── rimraf@2.5.2 (glob@7.0.3)
├── tar@2.2.1 (inherits@2.0.1, block-stream@0.0.8, fstream@1.0.8)
├── tar-pack@3.1.3 (uid-number@0.0.6, once@1.3.3, debug@2.2.0, fstream@1.0.8, readable-stream@2.0.6, fstream-ignore@1.0.3)
├── request@2.71.0 (aws-sign2@0.6.0, forever-agent@0.6.1, tunnel-agent@0.4.2, oauth-sign@0.8.1, caseless@0.11.0, is-typedarray@1.0.0, stringstream@0.0.5, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, tough-cookie@2.2.2, node-uuid@1.4.7, qs@6.1.0, combined-stream@1.0.5, mime-types@2.1.10, form-data@1.0.0-rc4, bl@1.1.2, aws4@1.3.2, hawk@3.1.3, http-signature@1.1.1, har-validator@2.0.6)
└── npmlog@2.0.3 (ansi@0.3.1, gauge@1.2.7, are-we-there-yet@1.1.2)

node-gyp@3.3.1 /home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/node-gyp
├── graceful-fs@4.1.3
├── semver@5.1.0
├── osenv@0.1.3 (os-tmpdir@1.0.1, os-homedir@1.0.1)
├── nopt@3.0.6 (abbrev@1.0.7)
├── fstream@1.0.8 (inherits@2.0.1)
├── which@1.2.4 (isexe@1.1.2, is-absolute@0.1.7)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── minimatch@1.0.0 (sigmund@1.0.1, lru-cache@2.7.3)
├── tar@2.2.1 (inherits@2.0.1, block-stream@0.0.8)
├── glob@4.5.3 (inherits@2.0.1, once@1.3.3, inflight@1.0.4, minimatch@2.0.10)
├── rimraf@2.5.2 (glob@7.0.3)
├── request@2.71.0 (aws-sign2@0.6.0, forever-agent@0.6.1, tunnel-agent@0.4.2, oauth-sign@0.8.1, caseless@0.11.0, is-typedarray@1.0.0, stringstream@0.0.5, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, tough-cookie@2.2.2, node-uuid@1.4.7, qs@6.1.0, combined-stream@1.0.5, mime-types@2.1.10, form-data@1.0.0-rc4, bl@1.1.2, aws4@1.3.2, hawk@3.1.3, http-signature@1.1.1, har-validator@2.0.6)
├── path-array@1.0.1 (array-index@1.0.0)
└── npmlog@2.0.3 (ansi@0.3.1, gauge@1.2.7, are-we-there-yet@1.1.2)
gyp info it worked if it ends with ok
gyp info using node-gyp@3.3.1
gyp info using node@4.2.1 | linux | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp http GET https://nodejs.org/dist/v4.2.1/node-v4.2.1-headers.tar.gz
gyp http 200 https://nodejs.org/dist/v4.2.1/node-v4.2.1-headers.tar.gz
gyp http GET https://nodejs.org/dist/v4.2.1/SHASUMS256.txt
gyp http 200 https://nodejs.org/dist/v4.2.1/SHASUMS256.txt
4.2.1
gyp info ok
+ pre-gypify --package_name '{name}-{version}-{configuration}.tgz'
adding action_after_build...
writing binding.gyp...
writing package.json...
kk
+ export STAGING_DIR=/home/vagrant/
+ STAGING_DIR=/home/vagrant/
+ export NODEGYP=node-gyp
+ NODEGYP=node-gyp
+ export NODE=4.2.1
+ NODE=4.2.1
+ export TOOLCHAIN_ARCH=mipsel
+ TOOLCHAIN_ARCH=mipsel
+ echo OHOHOH
OHOHOH
+ echo mipsel
mipsel
+ echo 4.2.1
4.2.1
+ set -e
+ '[' '!' -d /home/vagrant/ ']'
+ ARCH=mipsel
+ NODE=4.2.1
+ NODEGYP=node-gyp
++ ls -d /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2
+ TOOLCHAIN_DIR=/home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2
+ echo /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2
/home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2
++ ls -d /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2
+ export SYSROOT=/home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2
+ SYSROOT=/home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2
+ source /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/info.mk
++ TARGET_CROSS=mipsel-openwrt-linux-uclibc-
++ GCC_VERSION=4.8-linaro
++ LIBC_TYPE=uClibc
++ LIBC_URL=http://www.uclibc.org/
++ LIBC_VERSION=0.9.33.2
++ LIBC_SO_VERSION=0.9.33.2
+ echo 'Cross-compiling for' mipsel-openwrt-linux-uclibc-
Cross-compiling for mipsel-openwrt-linux-uclibc-
+ export PATH=/home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/home/vagrant/.nvm/versions/node/v4.2.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ PATH=/home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin:/home/vagrant/.nvm/versions/node/v4.2.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+ export CPPPATH=/usr/include
+ CPPPATH=/usr/include
+ export LIBPATH=/usr/lib
+ LIBPATH=/usr/lib
+ OPTS='-I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib'
+ export 'CC=mipsel-openwrt-linux-uclibc-gcc -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib'
+ CC='mipsel-openwrt-linux-uclibc-gcc -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib'
+ export 'CXX=mipsel-openwrt-linux-uclibc-g++ -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib'
+ CXX='mipsel-openwrt-linux-uclibc-g++ -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib'
+ export AR=mipsel-openwrt-linux-uclibc-ar
+ AR=mipsel-openwrt-linux-uclibc-ar
+ export RANLIB=mipsel-openwrt-linux-uclibc-ranlib
+ RANLIB=mipsel-openwrt-linux-uclibc-ranlib
+ export 'LINK=mipsel-openwrt-linux-uclibc-g++ -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib'
+ LINK='mipsel-openwrt-linux-uclibc-g++ -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib'
+ export 'CPP=mipsel-openwrt-linux-uclibc-gcc -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -E'
+ CPP='mipsel-openwrt-linux-uclibc-gcc -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -E'
+ export STRIP=mipsel-openwrt-linux-uclibc-strip
+ STRIP=mipsel-openwrt-linux-uclibc-strip
+ export OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy
+ OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy
+ export 'LD=mipsel-openwrt-linux-uclibc-g++ -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib'
+ LD='mipsel-openwrt-linux-uclibc-g++ -I /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -L /home/vagrant//toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -L /home/vagrant//target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib'
+ export OBJDUMP=mipsel-openwrt-linux-uclibc-objdump
+ OBJDUMP=mipsel-openwrt-linux-uclibc-objdump
+ export NM=mipsel-openwrt-linux-uclibc-nm
+ NM=mipsel-openwrt-linux-uclibc-nm
+ export AS=mipsel-openwrt-linux-uclibc-as
+ AS=mipsel-openwrt-linux-uclibc-as
+ export npm_config_arch=mipsel
+ npm_config_arch=mipsel
++ which node-gyp
+ export npm_config_node_gyp=/home/vagrant/.nvm/versions/node/v4.2.1/bin/node-gyp
+ npm_config_node_gyp=/home/vagrant/.nvm/versions/node/v4.2.1/bin/node-gyp
+ npm install --ignore-scripts
npm WARN peerDependencies The peer dependency eslint@^2.0.0-rc.0 included from eslint-config-standard will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated lodash@0.9.2: Grunt needs your help! See https://github.com/gruntjs/grunt/issues/1403.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
sinon-chai@2.8.0 node_modules/sinon-chai

bindings@1.2.1 node_modules/bindings

chai-subset@1.2.2 node_modules/chai-subset

async@0.9.0 node_modules/async

sf@0.1.7 node_modules/sf

eslint-plugin-standard@1.3.2 node_modules/eslint-plugin-standard

eslint-plugin-promise@1.1.0 node_modules/eslint-plugin-promise

debug@2.2.0 node_modules/debug
└── ms@0.7.1

nan@2.2.1 node_modules/nan

optimist@0.6.1 node_modules/optimist
├── wordwrap@0.0.3
└── minimist@0.0.10

sandboxed-module@2.0.3 node_modules/sandboxed-module
├── stack-trace@0.0.9
└── require-like@0.1.2

grunt-mocha-test@0.12.7 node_modules/grunt-mocha-test
├── hooker@0.2.3
└── mkdirp@0.5.1 (minimist@0.0.8)

chai@3.5.0 node_modules/chai
├── assertion-error@1.0.1
├── type-detect@1.0.0
└── deep-eql@0.1.3 (type-detect@0.1.1)

object.assign@4.0.3 node_modules/object.assign
├── function-bind@1.1.0
├── object-keys@1.0.9
└── define-properties@1.1.2 (foreach@2.0.5)

grunt-cli@1.1.0 node_modules/grunt-cli
├── nopt@3.0.6 (abbrev@1.0.7)
├── resolve@1.1.7
└── findup-sync@0.3.0 (glob@5.0.15)

mocha@2.4.5 node_modules/mocha
├── escape-string-regexp@1.0.2
├── commander@2.3.0
├── diff@1.4.0
├── growl@1.8.1
├── supports-color@1.2.0
├── mkdirp@0.5.1 (minimist@0.0.8)
├── glob@3.2.3 (graceful-fs@2.0.3, minimatch@0.2.14)
└── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0)

grunt@0.4.5 node_modules/grunt
├── eventemitter2@0.4.14
├── which@1.0.9
├── dateformat@1.0.2-1.2.3
├── async@0.1.22
├── colors@0.6.2
├── getobject@0.1.0
├── lodash@0.9.2
├── rimraf@2.2.8
├── hooker@0.2.3
├── grunt-legacy-util@0.2.0
├── exit@0.1.2
├── nopt@1.0.10 (abbrev@1.0.7)
├── coffee-script@1.3.3
├── iconv-lite@0.2.11
├── underscore.string@2.2.1
├── minimatch@0.2.14 (sigmund@1.0.1, lru-cache@2.7.3)
├── glob@3.1.21 (inherits@1.0.2, graceful-fs@1.2.3)
├── grunt-legacy-log@0.1.3 (grunt-legacy-log-utils@0.1.1, lodash@2.4.2, underscore.string@2.3.3)
├── findup-sync@0.1.3 (lodash@2.4.2, glob@3.2.11)
└── js-yaml@2.0.5 (esprima@1.0.4, argparse@0.1.16)

sinon@1.17.3 node_modules/sinon
├── formatio@1.1.1
├── samsam@1.1.2
├── lolex@1.3.2
└── util@0.10.3

eslint@2.8.0 node_modules/eslint
├── path-is-absolute@1.0.0
├── imurmurhash@0.1.4
├── estraverse@4.2.0
├── pluralize@1.2.1
├── ignore@3.1.1
├── path-is-inside@1.0.1
├── strip-json-comments@1.0.4
├── globals@9.4.0
├── esutils@2.0.2
├── progress@1.1.8
├── text-table@0.2.0
├── user-home@2.0.0 (os-homedir@1.0.1)
├── concat-stream@1.5.1 (typedarray@0.0.6)
├── json-stable-stringify@1.0.1 (jsonify@0.0.0)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── shelljs@0.6.0
├── glob@7.0.3 (once@1.3.3, inflight@1.0.4, minimatch@3.0.0)
├── doctrine@1.2.1 (esutils@1.1.6)
├── is-resolvable@1.0.0 (tryit@1.0.2)
├── optionator@0.8.1 (fast-levenshtein@1.1.3, type-check@0.3.2, levn@0.3.0, wordwrap@1.0.0, deep-is@0.1.3, prelude-ls@1.1.2)
├── require-uncached@1.0.2 (resolve-from@1.0.1, caller-path@0.1.0)
├── js-yaml@3.5.5 (esprima@2.7.2, argparse@1.0.7)
├── inquirer@0.12.0 (figures@1.5.0, ansi-escapes@1.3.0, rx-lite@3.1.2, through@2.3.8, cli-width@2.1.0, run-async@0.1.0, readline2@1.0.1, string-width@1.0.1, cli-cursor@1.0.2)
├── espree@3.1.3 (acorn@3.0.4, acorn-jsx@2.0.1)
├── file-entry-cache@1.2.4 (object-assign@4.0.1, flat-cache@1.0.10)
├── table@3.7.8 (slice-ansi@0.0.4, tv4@1.2.7, xregexp@3.1.0, string-width@1.0.1, bluebird@3.3.5)
├── es6-map@0.1.3 (d@0.1.1, es6-symbol@3.0.2, es6-iterator@2.0.0, event-emitter@0.3.4, es6-set@0.1.4, es5-ext@0.10.11)
├── escope@3.6.0 (esrecurse@4.1.0, es6-weak-map@2.0.1)
└── lodash@4.11.1

eslint-config-standard@5.1.0 node_modules/eslint-config-standard

gruntify-eslint@2.0.0 node_modules/gruntify-eslint
└── eslint@2.8.0 (path-is-absolute@1.0.0, imurmurhash@0.1.4, estraverse@4.2.0, pluralize@1.2.1, ignore@3.1.1, path-is-inside@1.0.1, strip-json-comments@1.0.4, globals@9.4.0, esutils@2.0.2, progress@1.1.8, text-table@0.2.0, user-home@2.0.0, concat-stream@1.5.1, json-stable-stringify@1.0.1, mkdirp@0.5.1, shelljs@0.6.0, glob@7.0.3, doctrine@1.2.1, is-resolvable@1.0.0, optionator@0.8.1, require-uncached@1.0.2, js-yaml@3.5.5, inquirer@0.12.0, espree@3.1.3, file-entry-cache@1.2.4, table@3.7.8, es6-map@0.1.3, escope@3.6.0, lodash@4.11.1)
+ node-pre-gyp rebuild --target_platform=openwrt --target_arch=mipsel --target=4.2.1 --debug
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.26
node-pre-gyp info using node@4.2.1 | linux | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.3.1
gyp info using node@4.2.1 | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.3.1
gyp info using node@4.2.1 | linux | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/work/binary-module/package/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/vagrant/.node-gyp/4.2.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/vagrant/.node-gyp/4.2.1',
gyp info spawn args   '-Dnode_gyp_dir=/home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/work/binary-module/package',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.3.1
gyp info using node@4.2.1 | linux | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Debug', '-C', 'build' ]
make: Entering directory `/work/binary-module/package/build'
  CXX(target) Debug/obj.target/serialport/src/serialport.o
  CXX(target) Debug/obj.target/serialport/src/serialport_unix.o
  CXX(target) Debug/obj.target/serialport/src/serialport_poller.o
  SOLINK_MODULE(target) Debug/obj.target/serialport.node
  COPY Debug/serialport.node
  COPY /work/binary-module/package/build/Debug/serialport.node
cp: cannot stat ‘Debug/serialport.node’: No such file or directory
make: *** [/work/binary-module/package/build/Debug/serialport.node] Error 1
make: Leaving directory `/work/binary-module/package/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-74-generic
gyp ERR! command "/home/vagrant/.nvm/versions/node/v4.2.1/bin/node" "/home/vagrant/.nvm/versions/node/v4.2.1/bin/node-gyp" "build" "--target_platform=openwrt" "--target_arch=mipsel" "--target=4.2.1" "--debug" "--module=/work/binary-module/package/build/Debug/serialport.node" "--module_name=serialport" "--module_path=/work/binary-module/package/build/Debug"
gyp ERR! cwd /work/binary-module/package
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/vagrant/.nvm/versions/node/v4.2.1/bin/node /home/vagrant/.nvm/versions/node/v4.2.1/bin/node-gyp build --target_platform=openwrt --target_arch=mipsel --target=4.2.1 --debug --module=/work/binary-module/package/build/Debug/serialport.node --module_name=serialport --module_path=/work/binary-module/package/build/Debug' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/vagrant/.nvm/versions/node/v4.2.1/lib/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:818:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 3.13.0-74-generic
node-pre-gyp ERR! command "/home/vagrant/.nvm/versions/node/v4.2.1/bin/node" "/home/vagrant/.nvm/versions/node/v4.2.1/bin/node-pre-gyp" "rebuild" "--target_platform=openwrt" "--target_arch=mipsel" "--target=4.2.1" "--debug"
node-pre-gyp ERR! cwd /work/binary-module/package
node-pre-gyp ERR! node -v v4.2.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.26
node-pre-gyp ERR! not ok
Failed to execute '/home/vagrant/.nvm/versions/node/v4.2.1/bin/node /home/vagrant/.nvm/versions/node/v4.2.1/bin/node-gyp build --target_platform=openwrt --target_arch=mipsel --target=4.2.1 --debug --module=/work/binary-module/package/build/Debug/serialport.node --module_name=serialport --module_path=/work/binary-module/package/build/Debug' (1)
Connection to 127.0.0.1 closed.
reconbot commented 8 years ago

The crux of it is that our binary ends up somewhere nobody expects and I don't know why.

johnnyman727 commented 8 years ago

These are the same issues @rwaldron has already been dealing with for detecting installation locations with the t2-cli.

reconbot commented 8 years ago

I mean.. we're using node-pre-gyp both here and in our usual builds, it shouldn't be different at all.

johnnyman727 commented 8 years ago

Yeah, it's pretty strange. In any case, I worked around it and uploaded the binaries to the build server.

Workaround:

vagrant ssh;
cd /work/binary-module/package
node-pre-gyp rebuild --target_platform=openwrt --target_arch=$ARCH --target=$NODE --debug
mv build/Debug/obj.target/serialport.node build/Debug/
node-pre-gyp package --target_platform=openwrt --target_arch=$ARCH --target=$NODE --debug
find build/stage -type f | xargs -i cp {} /work/binary-module/output
node-pre-gyp rebuild --target_platform=openwrt --target_arch=$ARCH --target=$NODE
mv build/Release/obj.target/serialport.node build/Release/
node-pre-gyp package --target_platform=openwrt --target_arch=$ARCH --target=$NODE
find build/stage -type f | xargs -i cp {} /work/binary-module/output
rsync -avz -e 'ssh -F ./ssh.conf' default:/work/binary-module/output/. ./out
rwaldron commented 8 years ago

The issue is the compile.sh is blindly creating pre-gyp configuration, which messes up any existing configuration: https://github.com/tessel/t2-compiler/blob/master/compile.sh#L32

rwaldron commented 8 years ago

This branch: https://github.com/tessel/t2-compiler/tree/test-pre-gypify-patch can be used to test the changes in pre-gypify