Giter Club home page Giter Club logo

openwrt-node-packages's Introduction

OpenWrt Node.js Packages (nodejs)

Description

OpenWrt Node.js Packages : for Head (Development branch)

Note: support arches are aarch64, arm, x86_64

License

See LICENSE file.

Usage

Add the following line to feeds.conf or feeds.conf.default.

src-git node https://github.com/nxhack/openwrt-node-packages.git

Run

./scripts/feeds update node
rm ./package/feeds/packages/node
rm ./package/feeds/packages/node-*
./scripts/feeds install -a -p node
make defconfig

Request to add a package is welcome

If you want a new module (native module) that requires a precompiled binary, please open the issue.

Note

If you want to use with 22.03, see openwrt-22.03 branch (Old stable series)

If you want to use with 23.05, see openwrt-23.05 branch (Current stable series)

On the host side, the following preparations are required.

sudo apt-get install gcc-multilib g++-multilib
  • The libatomic package is required. (Install the 32-bit library at the same time, if necessary).

Illegal instruction issue

V8 JIT code generates FP instruction. Node.js does not work without hardware FPU.

If you are running nodejs on the Atheros AR71xx/AR933x, MediaTek MT76x8, it will not work because there is no hardware FPU. ARM cores without vfp or neon (such as bcm53xx) will not work either.

Enable Inspector

Processor ICU Inspector
32bit Disable NO
32bit small-icu YES
64bit Disable NO
64bit small-icu YES
64bit system-icu YES

Debugging Guide Nice to use Chrome DevTools.

Note: ICU currently supports only LITTLE ENDIAN.

Note about mDNS and homebridge

Read this document: mDNS Options

If you want, you can install the OpenWrt mDNS package (umdns / avahi-dbus-daemon / mdnsresponder).

(1) Some OpenWrt / Lede images have built in dnscrypt-proxy package, which by default listening on 5353 port.

In that case, installed avahi-daemon will not start on ipv4 interface, only on ipv6 because ipv4 port is taken.

This will lead to strange issue: your homebrdge accessory will be visible in 'Home' app, but can't finish pairing.

To fix this, you have to stop and disable dnscrypt-proxy

Also, you have to enable: dbus and avahi-daemon services to start automatically, i.e for Lede:

/etc/init.d/dbus enable
/etc/init.d/avahi-daemon enable

(2) avahi on home network

Please read this document. 'Why avahi and bonjour don't work on your home network'

IGMP-querier will solve your problem.

OpenWrt allows "multicast_querier" (IGMP-querier) to be set when "igmp_snooping" is enabled.

OpenWrt custom packages available: https://github.com/nxhack/openwrt-custom-packages

Low memory

Specify v8-options.

--optimize_for_size --max_old_space_size=128 --gc_interval=100

For Reference: Avoid Garbage.

Or use swap.

Modules that use pre-compiled binary (native module)

node-authenticate-pam
node-aws-crt
node-bcryp
node-bignum
node-bluetooth-hci-socket
node-bufferutil
node-deasync
node-ejdb2_node
node-epoll
node-expat
node-ffi-napi			(ffi-napi, ref-napi)
node-fuse-bindings
node-hid
node-pty-prebuilt-multiarch
node-i2c-bus
node-leveldown
node-megahash
node-mdns
node-net-ping			(raw-socket)
node-openzwave-shared
node-pi-spi
node-pty
node-rpio
node-serialport-bindings
node-sleep
node-spi-device
node-sqlite3
node-statvfs
node-ubus
node-usb
node-utf-8-validate
node-zigbee2mqtt		(@serialport/bindings,unix-dgram)

Other modules can be installed by 'npm install'.

Package Guidelines

See CONTRIBUTING.md file.

openwrt-node-packages's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openwrt-node-packages's Issues

Pre compiled

Is there a repo where we can download precompiled image, to test .
Thx

Do you guys why it does with D-LINK DIR 860L B1 error: Z_BUF_ERROR ?

Ciao!

I upgraded to LEDE 17.01.3, with my Linksys it works as expected, but with D-LINK I get this error with Z_BUF_ERROR.
Is it a kernel setting or what could be?

root@d-link:/media/storage/backup/daily/4-Thursday# daily
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info attempt registry request try #1 at 09:13:18 GMT+0200 (CEST)
npm http request GET http://npm.patrikx3.com:4873/npm
npm info attempt registry request try #1 at 09:13:19 GMT+0200 (CEST)
npm http request GET http://npm.patrikx3.com:4873/npm-check-updates
npm info attempt registry request try #1 at 09:13:19 GMT+0200 (CEST)
npm http request GET http://npm.patrikx3.com:4873/yarn
npm http 200 http://npm.patrikx3.com:4873/yarn
npm http 200 http://npm.patrikx3.com:4873/npm-check-updates
npm http 200 http://npm.patrikx3.com:4873/npm
npm info outdated updating [ { dep: 
npm info outdated      Node {
npm info outdated        path: '/usr/lib/node_modules/npm',
npm info outdated        realpath: '/usr/lib/node_modules/npm',
npm info outdated        error: null,
npm info outdated        id: 1,
npm info outdated        package: [Object],
npm info outdated        parent: [Object],
npm info outdated        isLink: false,
npm info outdated        children: [Array],
npm info outdated        loaded: false,
npm info outdated        requiredBy: [],
npm info outdated        requires: [Array],
npm info outdated        missingDeps: {},
npm info outdated        missingDevDeps: {},
npm info outdated        phantomChildren: {},
npm info outdated        location: '/npm',
npm info outdated        userRequired: false,
npm info outdated        save: false,
npm info outdated        saveSpec: null,
npm info outdated        isTop: false,
npm info outdated        fromBundle: false,
npm info outdated        isInLink: false },
npm info outdated     depname: 'npm',
npm info outdated     current: '5.3.0',
npm info outdated     wanted: '5.5.1',
npm info outdated     latest: '5.4.2',
npm info outdated     req: '^5.3.0',
npm info outdated     what: '[email protected]' } ]
npm http fetch GET 200 http://npm.patrikx3.com:4873/npm 11894ms
npm http fetch GET 200 http://npm.patrikx3.com:4873/npm/-/npm-5.5.1.tgz 21502ms
npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! unexpected end of file

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-10-06T07_14_39_095Z-debug.log

node-ffi - r-pi 3

ciao!

how are you?
on the master openwrt today, node-ffi doesn't build (as well last week), i will provide more info, but it is building right now all and linksys wrt compatible and d-link dir860l b1 ramips compatible built, but with r-pi 3 cortex-a53 is wasn't compiling.

i will compile it by itself and comment the error.

take care,
patrik

unable to get node in, FPU-emu works

Hello NXhack, I am trying to run your work on an Archer C7 v2, ar71xx-arch.

I am able to get the image up and running on the device but node is not available on the image, even with your guide. 'opkg update node' tells me that it cannot find the mips24 node archive over at openwrt. Which is true, it does not exist.

I am running the scripts as you point out under usage before i make menuconfig and make, and they return no errors. When I run make menuconfig there is a * next to node but node does not show up on the sysupgrade image. Any clue what has gone wrong?

small question about my build

Ciao!

How are you?

Is it totally wrong? Because a few LEDE node packages are removed, though I am not using (only node ande npm, the lest form the registry), but still is it totally wrong, what do you say what I am doing?

RUN cp feeds.conf.default feeds.conf
RUN echo 'src-git node https://github.com/nxhack/openwrt-node-packages.git' >> feeds.conf
RUN echo 'src-git darkmatter git://github.com/apollo-ng/luci-theme-darkmatter.git' >> feeds.conf
RUN echo 'src-git redis https://github.com/patrikx3/lede-redis.git' >> feeds.conf
RUN ./scripts/feeds update -a
RUN ./scripts/feeds install -a
RUN rm -rf ./package/feeds/packages/node*
RUN ./scripts/feeds install -a -p node
RUN ./scripts/feeds update -a -p darkmatter
RUN ./scripts/feeds install luci-theme-darkmatter
RUN ./scripts/feeds update -a -p redis
RUN ./scripts/feeds install redis

Should it be in another order of setting up the feeds or what build order is good for the Dockerfile?

I just remove all LEDE Node packages and I just selected yours,. but some of it are missing, which I am not using, but still, I would like to know what I am doing.

Thanks,
Patrik

What does the --build-from-source mean?

Ciao!

How are you?

I try to build everything from NODE @nxhack, but there are some libs that I cannot find in the .config, for example:

  • ffi (I found in .config as CONFIG_PACKAGE_libffi=m GOOD
  • libavahi-compat-libdnssd (I found, I could addit in the firmware by default, with LEDE image-builder) GOOD
  • mdns (libavahi-compat-libdnssd auto selects it, so that is good, I think) GOOD
  • ref (not in the .config, like a CONFIG_PACKAGE_libref?)
  • serialport (not in the .config, like a CONFIG_PACKAGE_libserialport?)
  • utf-8-validate (not in the .config, like a CONFIG_PACKAGE_libutf_8_validate?)
  • bufferutil (not in the .config, like a CONFIG_PACKAGE_libbufferutil?)
  • leveldown (not in the .config, like a CONFIG_PACKAGE_libleveldown?)
  • bcrypt (not in the .config, like a CONFIG_PACKAGE_libbcrypt?)

make package/feeds/node/node-ffi/{clean,prepare,compile} package/index V=s

Ciao!

How are you?

I haven't found the solution but this is the log, does it tell you anything?

0 info it worked if it ends with ok
1 verbose cli [ '/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/bin/node',
1 verbose cli   '/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/bin/npm',
1 verbose cli   'install',
1 verbose cli   '--build-from-source',
1 verbose cli   '--target_arch=arm',
1 verbose cli   '-g',
1 verbose cli   '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 1d27ae147d808bb9
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly pacote directory manifest for undefined@file:/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0 fetched in 8ms
8 silly install loadIdealTree
9 silly install cloneCurrentTreeToIdealTree
10 silly install loadShrinkwrap
11 silly install loadAllDepsIntoIdealTree
12 silly resolveWithNewModule [email protected] checking installable status
13 http fetch GET 200 https://registry.npmjs.org/debug 5162ms
14 http fetch GET 200 https://registry.npmjs.org/ref-struct 5161ms
15 http fetch GET 200 https://registry.npmjs.org/bindings 5167ms
16 http fetch GET 200 https://registry.npmjs.org/ref 5167ms
17 silly pacote range manifest for bindings@~1.2.0 fetched in 5180ms
18 silly resolveWithNewModule [email protected] checking installable status
19 silly pacote range manifest for debug@2 fetched in 5169ms
20 silly resolveWithNewModule [email protected] checking installable status
21 silly pacote range manifest for ref@1 fetched in 5170ms
22 silly resolveWithNewModule [email protected] checking installable status
23 silly pacote range manifest for ref-struct@1 fetched in 5170ms
24 silly resolveWithNewModule [email protected] checking installable status
25 http fetch GET 200 https://registry.npmjs.org/nan 10180ms
26 silly pacote range manifest for nan@2 fetched in 10182ms
27 silly resolveWithNewModule [email protected] checking installable status
28 http fetch GET 200 https://registry.npmjs.org/ms 40ms
29 silly pacote version manifest for [email protected] fetched in 48ms
30 silly resolveWithNewModule [email protected] checking installable status
31 silly currentTree lib
32 silly idealTree lib
32 silly idealTree `-- [email protected]
32 silly idealTree   +-- [email protected]
32 silly idealTree   +-- [email protected]
32 silly idealTree   +-- [email protected]
32 silly idealTree   +-- [email protected]
32 silly idealTree   +-- [email protected]
32 silly idealTree   `-- [email protected]
33 silly install generateActionsToTake
34 silly diffTrees action count 7
35 silly diffTrees add [email protected]
36 silly diffTrees add [email protected]
37 silly diffTrees add [email protected]
38 silly diffTrees add [email protected]
39 silly diffTrees add [email protected]
40 silly diffTrees add [email protected]
41 silly diffTrees add [email protected]
42 silly decomposeActions action count 54
43 silly decomposeActions fetch [email protected]
44 silly decomposeActions extract [email protected]
45 silly decomposeActions preinstall [email protected]
46 silly decomposeActions build [email protected]
47 silly decomposeActions install [email protected]
48 silly decomposeActions postinstall [email protected]
49 silly decomposeActions finalize [email protected]
50 silly decomposeActions refresh-package-json [email protected]
51 silly decomposeActions fetch [email protected]
52 silly decomposeActions extract [email protected]
53 silly decomposeActions preinstall [email protected]
54 silly decomposeActions build [email protected]
55 silly decomposeActions install [email protected]
56 silly decomposeActions postinstall [email protected]
57 silly decomposeActions finalize [email protected]
58 silly decomposeActions refresh-package-json [email protected]
59 silly decomposeActions fetch [email protected]
60 silly decomposeActions extract [email protected]
61 silly decomposeActions preinstall [email protected]
62 silly decomposeActions build [email protected]
63 silly decomposeActions install [email protected]
64 silly decomposeActions postinstall [email protected]
65 silly decomposeActions finalize [email protected]
66 silly decomposeActions refresh-package-json [email protected]
67 silly decomposeActions fetch [email protected]
68 silly decomposeActions extract [email protected]
69 silly decomposeActions preinstall [email protected]
70 silly decomposeActions build [email protected]
71 silly decomposeActions install [email protected]
72 silly decomposeActions postinstall [email protected]
73 silly decomposeActions finalize [email protected]
74 silly decomposeActions refresh-package-json [email protected]
75 silly decomposeActions fetch [email protected]
76 silly decomposeActions extract [email protected]
77 silly decomposeActions preinstall [email protected]
78 silly decomposeActions build [email protected]
79 silly decomposeActions install [email protected]
80 silly decomposeActions postinstall [email protected]
81 silly decomposeActions finalize [email protected]
82 silly decomposeActions refresh-package-json [email protected]
83 silly decomposeActions fetch [email protected]
84 silly decomposeActions extract [email protected]
85 silly decomposeActions preinstall [email protected]
86 silly decomposeActions build [email protected]
87 silly decomposeActions install [email protected]
88 silly decomposeActions postinstall [email protected]
89 silly decomposeActions finalize [email protected]
90 silly decomposeActions refresh-package-json [email protected]
91 silly decomposeActions preinstall [email protected]
92 silly decomposeActions build [email protected]
93 silly decomposeActions install [email protected]
94 silly decomposeActions postinstall [email protected]
95 silly decomposeActions finalize [email protected]
96 silly decomposeActions refresh-package-json [email protected]
97 silly install executeActions
98 silly doSerial global-install 54
99 verbose correctMkdir /build/source/tmp/npm-cache/_locks correctMkdir not in flight; initializing
100 verbose lock using /build/source/tmp/npm-cache/_locks/staging-51cc845c11c02296.lock for /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib/node_modules/.staging
101 silly doParallel extract 54
102 silly extract [email protected]
103 silly pacote trying bindings@https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz by hash: sha1-FK1hE4EtLTfXLme0ystLtyZQXxE=
104 silly extract [email protected]
105 silly pacote trying ms@https://registry.npmjs.org/ms/-/ms-2.0.0.tgz by hash: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
106 silly extract [email protected]
107 silly pacote trying debug@https://registry.npmjs.org/debug/-/debug-2.6.9.tgz by hash: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
108 silly extract [email protected]
109 silly pacote trying nan@https://registry.npmjs.org/nan/-/nan-2.8.0.tgz by hash: sha1-7XFfP+neArV6XmJS2QqWZ14fCFo=
110 silly extract [email protected]
111 silly pacote trying ref@https://registry.npmjs.org/ref/-/ref-1.3.5.tgz by hash: sha512-2cBCniTtxcGUjDpvFfVpw323a83/0RLSGJJY5l5lcomZWhYpU2cuLdsvYqMixvsdLJ9+sTdzEkju8J8ZHDM2nA==
112 silly extract [email protected]
113 silly pacote trying ref-struct@https://registry.npmjs.org/ref-struct/-/ref-struct-1.1.0.tgz by hash: sha1-XV7mWtQc78Olxf60BYcmHkee3BM=
114 silly pacote data for sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= not present. Using manifest.
115 silly pacote data for sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== not present. Using manifest.
116 silly pacote data for sha1-FK1hE4EtLTfXLme0ystLtyZQXxE= not present. Using manifest.
117 silly pacote data for sha1-7XFfP+neArV6XmJS2QqWZ14fCFo= not present. Using manifest.
118 silly pacote data for sha1-XV7mWtQc78Olxf60BYcmHkee3BM= not present. Using manifest.
119 silly pacote data for sha512-2cBCniTtxcGUjDpvFfVpw323a83/0RLSGJJY5l5lcomZWhYpU2cuLdsvYqMixvsdLJ9+sTdzEkju8J8ZHDM2nA== not present. Using manifest.
120 http fetch GET 200 https://registry.npmjs.org/ms/-/ms-2.0.0.tgz 63ms
121 silly pacote ms@https://registry.npmjs.org/ms/-/ms-2.0.0.tgz extracted in 70ms
122 http fetch GET 200 https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz 64ms
123 silly pacote bindings@https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz extracted in 72ms
124 http fetch GET 200 https://registry.npmjs.org/ref-struct/-/ref-struct-1.1.0.tgz 63ms
125 silly pacote ref-struct@https://registry.npmjs.org/ref-struct/-/ref-struct-1.1.0.tgz extracted in 71ms
126 http fetch GET 200 https://registry.npmjs.org/debug/-/debug-2.6.9.tgz 65ms
127 silly pacote debug@https://registry.npmjs.org/debug/-/debug-2.6.9.tgz extracted in 74ms
128 http fetch GET 200 https://registry.npmjs.org/nan/-/nan-2.8.0.tgz 78ms
129 silly pacote nan@https://registry.npmjs.org/nan/-/nan-2.8.0.tgz extracted in 86ms
130 http fetch GET 200 https://registry.npmjs.org/ref/-/ref-1.3.5.tgz 5215ms
131 silly pacote ref@https://registry.npmjs.org/ref/-/ref-1.3.5.tgz extracted in 5231ms
132 silly doReverseSerial unbuild 54
133 silly doSerial remove 54
134 silly doSerial move 54
135 silly doSerial finalize 54
136 silly finalize /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/bindings
137 silly finalize /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ms
138 silly finalize /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/debug
139 silly finalize /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/nan
140 silly finalize /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref
141 silly finalize /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref-struct
142 silly finalize /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0
143 silly doParallel refresh-package-json 54
144 silly refresh-package-json /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/bindings
145 silly refresh-package-json /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ms
146 silly refresh-package-json /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/debug
147 silly refresh-package-json /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/nan
148 silly refresh-package-json /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref
149 silly refresh-package-json /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref-struct
150 silly refresh-package-json /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0
151 silly doParallel preinstall 54
152 silly preinstall [email protected]
153 info lifecycle [email protected]~preinstall: [email protected]
154 silly preinstall [email protected]
155 info lifecycle [email protected]~preinstall: [email protected]
156 silly preinstall [email protected]
157 info lifecycle [email protected]~preinstall: [email protected]
158 silly preinstall [email protected]
159 info lifecycle [email protected]~preinstall: [email protected]
160 silly preinstall [email protected]
161 info lifecycle [email protected]~preinstall: [email protected]
162 silly preinstall [email protected]
163 info lifecycle [email protected]~preinstall: [email protected]
164 silly preinstall [email protected]
165 info lifecycle [email protected]~preinstall: [email protected]
166 silly doSerial build 54
167 silly build [email protected]
168 info linkStuff [email protected]
169 silly linkStuff [email protected] has /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules as its parent node_modules
170 silly linkStuff [email protected] is part of a global install
171 silly linkStuff [email protected] is installed into a global node_modules
172 verbose linkBins [email protected]
173 verbose linkMans [email protected]
174 silly build [email protected]
175 info linkStuff [email protected]
176 silly linkStuff [email protected] has /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules as its parent node_modules
177 silly linkStuff [email protected] is part of a global install
178 silly linkStuff [email protected] is installed into a global node_modules
179 verbose linkBins [email protected]
180 verbose linkMans [email protected]
181 silly build [email protected]
182 info linkStuff [email protected]
183 silly linkStuff [email protected] has /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules as its parent node_modules
184 silly linkStuff [email protected] is part of a global install
185 silly linkStuff [email protected] is installed into a global node_modules
186 verbose linkBins [email protected]
187 verbose linkMans [email protected]
188 silly build [email protected]
189 info linkStuff [email protected]
190 silly linkStuff [email protected] has /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules as its parent node_modules
191 silly linkStuff [email protected] is part of a global install
192 silly linkStuff [email protected] is installed into a global node_modules
193 verbose linkBins [email protected]
194 verbose linkMans [email protected]
195 silly build [email protected]
196 info linkStuff [email protected]
197 silly linkStuff [email protected] has /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules as its parent node_modules
198 silly linkStuff [email protected] is part of a global install
199 silly linkStuff [email protected] is installed into a global node_modules
200 verbose linkBins [email protected]
201 verbose linkMans [email protected]
202 silly build [email protected]
203 info linkStuff [email protected]
204 silly linkStuff [email protected] has /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules as its parent node_modules
205 silly linkStuff [email protected] is part of a global install
206 silly linkStuff [email protected] is installed into a global node_modules
207 verbose linkBins [email protected]
208 verbose linkMans [email protected]
209 silly build [email protected]
210 info linkStuff [email protected]
211 silly linkStuff [email protected] has /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib/node_modules as its parent node_modules
212 silly linkStuff [email protected] is part of a global install
213 silly linkStuff [email protected] is installed into a global node_modules
214 silly linkStuff [email protected] is installed into the top-level global node_modules
215 verbose linkBins [email protected]
216 verbose linkMans [email protected]
217 silly doSerial global-link 54
218 silly doParallel update-linked 54
219 silly doSerial install 54
220 silly install [email protected]
221 info lifecycle [email protected]~install: [email protected]
222 silly install [email protected]
223 info lifecycle [email protected]~install: [email protected]
224 silly install [email protected]
225 info lifecycle [email protected]~install: [email protected]
226 silly install [email protected]
227 info lifecycle [email protected]~install: [email protected]
228 silly install [email protected]
229 info lifecycle [email protected]~install: [email protected]
230 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
231 verbose lifecycle [email protected]~install: PATH: /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref/node_modules/.bin:/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/.bin:/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/bin:/build/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/bin:/build/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/bin:/build/source/staging_dir/host/bin:/build/source/staging_dir/host/bin:/build/source:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
232 verbose lifecycle [email protected]~install: CWD: /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref
233 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp rebuild' ]
234 silly lifecycle [email protected]~install: Returned: code: 0  signal: null
235 silly install [email protected]
236 info lifecycle [email protected]~install: [email protected]
237 silly install [email protected]
238 info lifecycle [email protected]~install: [email protected]
239 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
240 verbose lifecycle [email protected]~install: PATH: /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib/node_modules/ffi/node_modules/.bin:/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib/node_modules/.bin:/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/bin:/build/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/bin:/build/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/bin:/build/source/staging_dir/host/bin:/build/source/staging_dir/host/bin:/build/source:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
241 verbose lifecycle [email protected]~install: CWD: /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib/node_modules/ffi
242 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp rebuild' ]
243 silly lifecycle [email protected]~install: Returned: code: 1  signal: null
244 info lifecycle [email protected]~install: Failed to exec install script
245 verbose unlock done using /build/source/tmp/npm-cache/_locks/staging-51cc845c11c02296.lock for /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib/node_modules/.staging
246 warn rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/bindings is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
247 warn rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ms is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
248 warn rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/debug is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
249 warn rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/nan is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
250 warn rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
251 warn rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref-struct is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
252 verbose stack Error: [email protected] install: `node-gyp rebuild`
252 verbose stack Exit status 1
252 verbose stack     at EventEmitter.<anonymous> (/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
252 verbose stack     at EventEmitter.emit (events.js:160:13)
252 verbose stack     at ChildProcess.<anonymous> (/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
252 verbose stack     at ChildProcess.emit (events.js:160:13)
252 verbose stack     at maybeClose (internal/child_process.js:943:16)
252 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
253 verbose pkgid [email protected]
254 verbose cwd /build/source/feeds/node/node-ffi
255 verbose Linux 4.12.0-2-amd64
256 verbose argv "/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/bin/node" "/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/bin/npm" "install" "--build-from-source" "--target_arch=arm" "-g" "/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0"
257 verbose node v9.4.0
258 verbose npm  v5.6.0
259 error code ELIFECYCLE
260 error errno 1
261 error [email protected] install: `node-gyp rebuild`
261 error Exit status 1
262 error Failed at the [email protected] install script.
262 error This is probably not a problem with npm. There is likely additional logging output above.
263 verbose exit [ 1, true ]

Or:

make[3]: Entering directory '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/build'
  arm-openwrt-linux-muslgnueabi-g++ '-DNODE_GYP_MODULE_NAME=ffi_bindings' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node -I/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/src -I/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/deps/uv/include -I/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/deps/v8/include -I../node_modules/nan  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF ./Release/.deps/Release/obj.target/ffi_bindings/src/ffi.o.d.raw  -Os -pipe -mcpu=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0:node-ffi-2.2.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/libffi-3.2.1/build  -I/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include -I/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/include -I/build/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/usr/include -I/build/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include/fortify -I/build/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.4.0_musl-1.1.16_eabi/include  -c -o Release/obj.target/ffi_bindings/src/ffi.o ../src/ffi.cc
../src/ffi.cc: In static member function 'static void FFI::InitializeBindings(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)':
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:58:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_OK);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:58:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_OK);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:58:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_OK);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:59:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_BAD_TYPEDEF);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:59:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_BAD_TYPEDEF);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:59:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_BAD_TYPEDEF);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:60:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_BAD_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:60:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_BAD_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:60:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_BAD_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:63:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_DEFAULT_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:63:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_DEFAULT_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:63:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_DEFAULT_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:64:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_FIRST_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:64:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_FIRST_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:64:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_FIRST_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:65:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_LAST_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:65:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_LAST_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:65:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_LAST_ABI);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:68:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_SYSV);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:68:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_SYSV);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:68:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_SYSV);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:69:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_VFP);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:69:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_VFP);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:69:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(FFI_VFP);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:96:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_LAZY);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:96:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_LAZY);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:96:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_LAZY);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:99:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_NOW);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:99:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_NOW);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:99:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_NOW);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:102:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_LOCAL);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:102:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_LOCAL);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:102:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_LOCAL);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:105:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_GLOBAL);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:105:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_GLOBAL);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:105:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_GLOBAL);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:108:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_NOLOAD);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:108:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_NOLOAD);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:108:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_NOLOAD);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:111:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_NODELETE);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:38:8: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   Nan::ForceSet(target, Nan::New<String>(#_value).ToLocalChecked(), \
        ^
../src/ffi.cc:111:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_NODELETE);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:40:54: warning: 'Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)' is deprecated [-Wdeprecated-declarations]
   static_cast<PropertyAttribute>(ReadOnly|DontDelete))
                                                      ^
../src/ffi.cc:111:3: note: in expansion of macro 'SET_ENUM_VALUE'
   SET_ENUM_VALUE(RTLD_NODELETE);
   ^
In file included from ../node_modules/nan/nan.h:197:0,
                 from ../src/ffi.h:23,
                 from ../src/ffi.cc:3:
../node_modules/nan/nan_maybe_43_inl.h:116:35: note: declared here
 NAN_DEPRECATED inline Maybe<bool> ForceSet(
                                   ^
../src/ffi.cc:119:153: error: no matching function for call to 'v8::Object::ForceSet(v8::Local<v8::String>, v8::Local<v8::Value>, v8::PropertyAttribute)'
 >ForceSet(Nan::New<String>("RTLD_NEXT").ToLocalChecked(), WrapPointer((char *)RTLD_NEXT), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
                                                                                                                                                ^
In file included from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:26:0,
                 from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/node.h:63,
                 from ../src/ffi.cc:1:
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note:   no known conversion for argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>'
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
../src/ffi.cc:122:159: error: no matching function for call to 'v8::Object::ForceSet(v8::Local<v8::String>, v8::Local<v8::Value>, v8::PropertyAttribute)'
 Set(Nan::New<String>("RTLD_DEFAULT").ToLocalChecked(), WrapPointer((char *)RTLD_DEFAULT), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
                                                                                                                                                ^
In file included from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:26:0,
                 from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/node.h:63,
                 from ../src/ffi.cc:1:
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note:   no known conversion for argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>'
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
../src/ffi.cc:131:167: error: no matching function for call to 'v8::Object::ForceSet(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Uint32>::return_t, v8::PropertyAttribute)'
 :New<String>("FFI_ARG_SIZE").ToLocalChecked(), Nan::New<Uint32>((uint32_t)sizeof(ffi_arg)), static_cast<PropertyAttribute>(ReadOnly|DontDelete));
                                                                                                                                                ^
In file included from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:26:0,
                 from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/node.h:63,
                 from ../src/ffi.cc:1:
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note:   no known conversion for argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>'
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
../src/ffi.cc:132:171: error: no matching function for call to 'v8::Object::ForceSet(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Uint32>::return_t, v8::PropertyAttribute)'
 <String>("FFI_SARG_SIZE").ToLocalChecked(), Nan::New<Uint32>((uint32_t)sizeof(ffi_sarg)), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
                                                                                                                                                ^
In file included from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:26:0,
                 from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/node.h:63,
                 from ../src/ffi.cc:1:
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note:   no known conversion for argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>'
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
../src/ffi.cc:133:171: error: no matching function for call to 'v8::Object::ForceSet(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Uint32>::return_t, v8::PropertyAttribute)'
 <String>("FFI_TYPE_SIZE").ToLocalChecked(), Nan::New<Uint32>((uint32_t)sizeof(ffi_type)), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
                                                                                                                                                ^
In file included from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:26:0,
                 from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/node.h:63,
                 from ../src/ffi.cc:1:
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note:   no known conversion for argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>'
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
../src/ffi.cc:134:169: error: no matching function for call to 'v8::Object::ForceSet(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Uint32>::return_t, v8::PropertyAttribute)'
 ew<String>("FFI_CIF_SIZE").ToLocalChecked(), Nan::New<Uint32>((uint32_t)sizeof(ffi_cif)), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
                                                                                                                                                ^
In file included from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:26:0,
                 from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/node.h:63,
                 from ../src/ffi.cc:1:
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note:   no known conversion for argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>'
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
../src/ffi.cc:140:148: error: no matching function for call to 'v8::Object::ForceSet(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t, v8::PropertyAttribute)'
 rget->ForceSet(Nan::New<String>("HAS_OBJC").ToLocalChecked(), Nan::New<Boolean>(hasObjc), static_cast<PropertyAttribute>(ReadOnly | DontDelete));
                                                                                                                                                ^
In file included from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:26:0,
                 from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/node.h:63,
                 from ../src/ffi.cc:1:
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8.h:3115:29: note:   no known conversion for argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>'
                 Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
                             ^
/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/usr/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^
ffi_bindings.target.mk:95: recipe for target 'Release/obj.target/ffi_bindings/src/ffi.o' failed
make[3]: *** [Release/obj.target/ffi_bindings/src/ffi.o] Error 1
make[3]: Leaving directory '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:160:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.12.0-2-amd64
gyp ERR! command "/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/bin/node" "/build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/host/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0
gyp ERR! node -v v9.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm info lifecycle [email protected]~install: Failed to exec install script
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/bindings is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ms is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/debug is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/nan is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/node_modules/ref-struct is not a child of /build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/ipkg-install/usr/lib
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /build/source/tmp/npm-cache/_logs/2018-01-27T18_55_54_012Z-debug.log
Makefile:76: recipe for target '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/.built' failed
make[2]: *** [/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-ffi-2.2.0/.built] Error 1
make[2]: Leaving directory '/build/source/feeds/node/node-ffi'
package/Makefile:105: recipe for target 'package/feeds/node/node-ffi/compile' failed
make[1]: *** [package/feeds/node/node-ffi/compile] Error 2

node v7.x

Hi @nxhack ,
Have you tried cross-compiling node v7.x? If so, where any patches needed?

These packages should for the PKG_SOURCE should end with .tar.gz instead of .tar.xz

Ciao!

How are you

These packages, if you change the Makefile, it builds:

  • node-alljoyn
  • node-ideino-linino-lib
  • node-xmpp

The Makefile is using .tar.xz, it should end with .tar.gz.
Then it can download via GIT and builds.

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz

Instead of

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz

Take care,
Patrik

homebridge undefined symbol error

oops,,,,,,,,
i have installed node & node-npm & node-homebridge & node-mdns & libavahi-compat-libdnss.
(selected [M] when build to prevent too big firmware, and lately install them to a usb storage device).

when i run homebridge undefined symbol error occurre.
What should I do? Thx~

LOGS:
root@OpenWrt:/usr/bin# homebridge
/usr/lib/node/homebridge/node_modules/mdns/lib/dns_sd.js:35
throw ex;
^

Error: /usr/lib/node/homebridge/node_modules/mdns/build/Release/dns_sd_bindings.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEi
at Object.Module._extensions..node (module.js:598:18)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/usr/lib/node/homebridge/node_modules/mdns/lib/dns_sd.js:24:20)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)

small question

Ciao!

How are you?

How come node-yarn uses /usr/lib/node/yarn/bin/yarn instead of /usr/lib/node_modules/yarn?

Is it just to make it work? Is it easy to change it? I do it if you can help me a little where to do.
Looks like the packages are not in the proper paths. You must have tons of work anyway or just relaxing in August...

By the way, isn't it simpler just to use npm install yarn???

I don't understand why we would want node-yarn iif it is in NPM...

Build

Ciao!

How are you?

Do you have an idea to speed up the NodeJs build? It is so slow. In my full build for the firmware and just a few packages about 2-3 hours is just NodeJs. Out of 4-5 hours...

Thanks,
Patrik

question about makefile

ciao!

how are you?
this is weird, i am trying ot build node chakra, but it tries to build build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-chakracore-v8.6.0, but the files it is generated is build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-chakracore-node-chakracore-v8.6.0.

Do you have an idea what it could be?

include $(TOPDIR)/rules.mk

PKG_NAME:=node-chakracore
PKG_VERSION:=v8.6.0
PKG_RELEASE:=1

PKG_SOURCE_URL:=https://github.com/nodejs/$(PKG_NAME)/archive/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MAINTAINER:=Patrik Laszlo <[email protected]>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_INSTALL:=1

HOST_BUILD_DEPENDS:=python/host
PKG_BUILD_DEPENDS:=python/host
PKG_INSTALL:=1
PKG_USE_MIPS16:=0

HOST_BUILD_PARALLEL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk

define Package/node-chakracore
  SECTION:=lang
  CATEGORY:=Languages
  SUBMENU:=Node.js-Chakra
  TITLE:=Node.js is a platform built on Microsoft Chakra's JavaScript runtime
  URL:=https://github.com/nodejs/node-chakracore
  DEPENDS:=+libstdcpp +libopenssl +zlib +USE_UCLIBC:libpthread +USE_UCLIBC:librt
endef

define Package/node-chakracore/description
  Node.js® Chakra is a JavaScript runtime built on Chakra's JavaScript engine. Node.js Chakra uses
  an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js Chakra's
   package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
endef

define Package/node-chakracore-npm
  SECTION:=lang
  CATEGORY:=Languages
  SUBMENU:=Node.js-Chakra
  TITLE:=NPM stands for Node Package Manager
  URL:=http://npmjs.com/
  DEPENDS:=+node-chakracore
endef

define Package/node-chakracore-npm/description
 NPM is the package manager for Node.js
endef

NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))

MAKE_VARS+= \
	DESTCPU=$(NODEJS_CPU)

CONFIGURE_ARGS:= \
	--dest-cpu=$(NODEJS_CPU) \
	--dest-os=linux \
	--without-snapshot \
	--shared-zlib \
	--shared-openssl \
	$(if $(findstring mips,$(NODEJS_CPU)), \
		$(if $(CONFIG_SOFT_FLOAT),--with-mips-float-abi=soft,)) \
	$(if $(findstring arm,$(NODEJS_CPU)), \
		$(if $(CONFIG_SOFT_FLOAT),, \
			$(if $(findstring neon,$(CONFIG_CPU_TYPE)), --with-arm-fpu=neon, \
			$(if $(findstring vfpv3,$(CONFIG_CPU_TYPE)), --with-arm-fpu=vfpv3,)))) \
	--prefix=/usr

HOST_CONFIGURE_VARS:=
HOST_CONFIGURE_ARGS:= \
	--dest-os=linux \
	--without-snapshot \
	--shared-zlib \
	--with-intl=none \
	--prefix=$(STAGING_DIR_HOSTPKG)

HOST_CONFIGURE_CMD:=python ./configure

define Build/Prepare
	$(if $(findstring arm,$(NODEJS_CPU)), $(if $(CONFIG_SOFT_FLOAT), \
		echo "You can't running Node.js on ARM CPU without hardware FPU."; \
		exit 1; \
	))
	$(Build/Prepare/Default)
endef

define Build/InstallDev
	$(INSTALL_DIR) $(1)/usr/include
	$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
endef

define Package/node-chakracore/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/node $(1)/usr/bin/
endef

define Package/node-chakracore-npm/install
	$(INSTALL_DIR) $(1)/usr/lib/node_modules
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/* $(1)/usr/lib/node_modules/
	$(INSTALL_DIR) $(1)/usr/bin
	$(LN) ../lib/node_modules/npm/bin/npm-cli.js $(1)/usr/bin/npm
endef

$(eval $(call HostBuild))
$(eval $(call BuildPackage,node-chakracore))
$(eval $(call BuildPackage,node-chakracore-npm))

Illegal instruction

Any hint why I'm getting:

root@OpenWrt:~# node
Illegal instruction

Using src-git node https://github.com/nxhack/openwrt-node-packages.git;for-15.05 as a feed. For example mosquito I've also build runs fine.

Trace/breakpoint trap on MIPS 24KEc

Hi there!
First of all congrats for the work you have done here. It has been a great help for us during development of our LEDE based device.

We have a previous generation of the devices that successfully builds and runs NodeJS 6.9 version without any problems at all using your package.

We tried now upgrading the firmware because we needed the new functionality of Node 8. The build completes successfully, and the node binary is executable... However at certain periods of time the code exits, without any error but a message of Trace/breakpoint trap. Can you help me with this please?

Some info on the device:
OS: LEDE v17.01.4
CPU: MIPS 24KEc V5.0
SYSTEM: Mediatek MT7620A
LEDE TARGET PROFILE: ZBT-WE826
NODE PACKAGE VERSION: v8.8.1

Please note that in the previous version (6.9.1) it worked flawlessly!
Thank you for your time

Can't install the package

Hello, i'v an error with "make" command.
I'm running the latest version of LEDE on a router TP Link archer C2600

root@LEDE:/# make ash: make: not found

root@LEDE:/# ./scripts/feeds update node ash: ./scripts/feeds: not found

remove LEDE node packages

Ciao!

How are you?

You are saying:

./scripts/feeds update node
rm ./package/feeds/packages/node
rm ./package/feeds/packages/node-arduino-firmata
rm ./package/feeds/packages/node-cylon
rm ./package/feeds/packages/node-hid
rm ./package/feeds/packages/node-serialport
./scripts/feeds install -a -p node

But there are more that have collision:
image

There are 8 packages.

Is it good to do like:

./scripts/feeds update node
rm ./package/feeds/packages/node* -rf
./scripts/feeds install -a -p node

Or is it there, that should be kept?

Segmentation fault

hi,
my cpu is ar9331.
run node -v ,I can get return v6.10.0 . But when i run others,like npm -v, return "segmentation fault",
i don't have any ideal,can you help me ?

Problem building in openwrt.

Hi,

I have added this line
src-git node https://github.com/nxhack/openwrt-node-packages.git to my feeds.conf.default file.

Ran:

./scripts/feeds update node
./scripts/feeds install -a -p node

But when I make openwrt, my node-v4.8.0 directory only contains one folder called 'npm-cache'.

Did I miss any steps?

Thanks

Building node with debug symbols enabled

Hello,

I am trying to build node with debug symbols enabled, using your package. I am changing your Makefile by adding --debug at CONFIGURE_ARGS.

The build results in an error stating that the execinfo.h is missing. The execinfo.h is part of the glibc library. Any ideas on how to configure for linking against glibc?

Thanks in advance.

firmware for yun

Hello. Maybe somebody has firmware with hap-nodejs for arduino yun. Could you upload this image. Thanks.

Build failed on debian 9

Hi! I'm trying to build homebridge for my router but getting error during build:

configure: error: in `/home/josser/Загрузки/lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/avahi/dbus/avahi-0.6.32':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details
Makefile:396: recipe for target '/home/josser/Загрузки/lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/avahi/dbus/avahi-0.6.32/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[3]: *** [/home/josser/Загрузки/lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/avahi/dbus/avahi-0.6.32/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[3]: Leaving directory '/home/josser/Загрузки/lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64/feeds/packages/libs/avahi'
package/Makefile:109: recipe for target 'package/feeds/packages/avahi/compile' failed
make[2]: *** [package/feeds/packages/avahi/compile] Error 2
make[2]: Leaving directory '/home/josser/Загрузки/lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64'
package/Makefile:105: recipe for target '/home/josser/Загрузки/lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/josser/Загрузки/lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/josser/Загрузки/lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64'
/home/josser/Загрузки/lede-sdk-ar71xx-generic_gcc-5.4.0_musl.Linux-x86_64/include/toplevel.mk:200: ошибка выполнения рецепта для цели «world»
make: *** [world] Error 2

Any advices?
Thank you!

node-homebridge Error

npm info ok
touch /home/sjw/lede_sdk/source/build_dir/target-mipsel_24kc_musl-1.1.16/node-homebridge-0.4.22/.built
mkdir -p /home/sjw/lede_sdk/source/bin/targets/ramips/mt7688/packages /home/sjw/lede_sdk/source/build_dir/target-mipsel_24kc_musl-1.1.16/node-homebridge-0.4.22/ipkg-mipsel_24kc/node-homebridge/CONTROL /home/sjw/lede_sdk/source/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo
install -d -m0755 /home/sjw/lede_sdk/source/build_dir/target-mipsel_24kc_musl-1.1.16/node-homebridge-0.4.22/ipkg-mipsel_24kc/node-homebridge/usr/lib/node
cp -fpR /home/sjw/lede_sdk/source/build_dir/target-mipsel_24kc_musl-1.1.16/node-homebridge-0.4.22/ipkg-install/usr/lib/node_modules/* /home/sjw/lede_sdk/source/build_dir/target-mipsel_24kc_musl-1.1.16/node-homebridge-0.4.22/ipkg-mipsel_24kc/node-homebridge/usr/lib/node/
install -d -m0755 /home/sjw/lede_sdk/source/build_dir/target-mipsel_24kc_musl-1.1.16/node-homebridge-0.4.22/ipkg-mipsel_24kc/node-homebridge/usr/bin
ln -sf ../lib/node/homebridge/bin/homebridge /home/sjw/lede_sdk/source/build_dir/target-mipsel_24kc_musl-1.1.16/node-homebridge-0.4.22/ipkg-mipsel_24kc/node-homebridge/usr/bin/homebridge
find /home/sjw/lede_sdk/source/build_dir/target-mipsel_24kc_musl-1.1.16/node-homebridge-0.4.22/ipkg-mipsel_24kc/node-homebridge -name 'CVS' -o -name '.svn' -o -name '.#' -o -name '~'| xargs -r rm -rf
Package node-homebridge is missing dependencies for the following libraries:
libdns_sd.so
Makefile:69: recipe for target '/home/sjw/lede_sdk/source/bin/packages/mipsel_24kc/node/node-homebridge_0.4.22-1_mipsel_24kc.ipk' failed
make[2]: *** [/home/sjw/lede_sdk/source/bin/packages/mipsel_24kc/node/node-homebridge_0.4.22-1_mipsel_24kc.ipk] Error 1
make[2]: Leaving directory '/home/sjw/lede_sdk/source/feeds/node/node-homebridge'
package/Makefile:105: recipe for target 'package/feeds/node/node-homebridge/compile' failed
make[1]: *** [package/feeds/node/node-homebridge/compile] Error 2
make[1]: Leaving directory '/home/sjw/lede_sdk/source'
/home/sjw/lede_sdk/source/include/toplevel.mk:197: recipe for target 'package/feeds/node/node-homebridge/compile' failed
make: *** [package/feeds/node/node-homebridge/compile] Error 2

npm ERR! cb() never called!

Ciao!
How are you?
This is weird.
With 8.6.0, with Linksys it works, simply.
But with D-Link Dir 860-L B1, I get this weird error.

But with npm -g update:

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-10-06T10_23_23_254Z-debug.log

More:

root@d-link:/media/storage/backup/daily/4-Thursday# npm -v
5.4.2

Is it a kernel settings?

Though both Linksys WRT and D-Link the same npm -v => 5.4.2, so it looks like works.
Just irritating. :)

Why is it trying to update when it is already udpated?
Is it an npm error or the D-Link 860L B1 node something is different than Linksys WRT?

How to contribute

Where can I find the contribution guideline or How can I contribute to this project.

nodejs v8 on mipsel as an opkg install?

I successfully built/flashed an image with nodejs v8 for mipsel architecture . My question is, if the base image has FPU emulation mode enabled, is it possible to install the nodejs base install and its various components as opkg packages and is there a repository/recipe for generating such opkg packages

Thanks

node-pre-gyp: Permission denied

Hi,
I create a DockerFile to build Linkit7688-nodejs-v8.* image.
I'm not sure which show error permission denied when running node-pre-gyp.
This is my Docker File -> (here)

> [email protected] install /root/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/node-firmata-0.17.0/ipkg-install/usr/lib/node_modules/firmata/node_modules/serialport
> node-pre-gyp install --fallback-to-build

sh: 1: node-pre-gyp: Permission denied
npm info lifecycle [email protected]~install: Failed to exec install script
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/openwrt/staging_dir/host/share/node/npm-cache/_logs/2017-08-14T04_51_08_182Z-debug.log
make[3]: *** [/root/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/node-firmata-0.17.0/.built] Error 1
make[3]: Leaving directory `/root/openwrt/feeds/node/node-firmata'
make[2]: *** [package/feeds/node/node-firmata/compile] Error 2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/openwrt/staging_dir/host/share/node/npm-cache/_logs/2017-08-14T04_51_08_386Z-debug.log
make[3]: *** [/root/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/node-cylon-firmata-0.24.0/.built] Error 1
make[3]: Leaving directory `/root/openwrt/feeds/node/node-cylon-firmata'
make[2]: *** [package/feeds/node/node-cylon-firmata/compile] Error 2

node-homebridge doesn't build anymore with LEDE 17.01.4

Ciao!

How are you?

This is weird, there is a new package, node-epoll did build, but now I can see there is an update with the node-homebridge and there are new depends:

  DEPENDS:=+node +node-npm +avahi-dbus-daemon +libavahi-compat-libdnssd

But still, the packages are built that are required:

docker@14a80110d9c4:/build/source/bin$ find -iname '*avahi-dbus-daemon*'
./packages/arm_cortex-a9_vfpv3/packages/avahi-dbus-daemon_0.6.32-1_arm_cortex-a9_vfpv3.ipk
docker@14a80110d9c4:/build/source/bin$ find -iname '*libavahi-compat-libdnssd*'
./packages/arm_cortex-a9_vfpv3/packages/libavahi-compat-libdnssd_0.6.32-1_arm_cortex-a9_vfpv3.ipk

The previous version was built successfully.

The error:

Package node-homebridge is missing dependencies for the following libraries:
libdns_sd.so

So weird!

Thanks,
Patrik

Illegal instruction in bcm4709c0

hello,nxhack:
i used your git repository to build nodejs v6 into lede,the soc is bcm4709c0,buid success,
but in shell,when run node app.js ,error happens. Illegal instruction
can you help me ?

node-homebridge: update to 0.4.38 and node-hap-nodejs: update to 0.4.41

Hello!

How are you?
I get a new error from homebridge:

Package node-homebridge is missing dependencies for the following libraries:
libdns_sd.so
# and
Package node-hap-nodejs is missing dependencies for the following libraries:
libdns_sd.so

Do you know what it could be?
Do I have to install an apt library?

Thanks,
Patrik

Props

Ciao NXHACK!

I just want to tell you, that you are and awesome fantastic dude, because you made it to make it able to use Node 8 on my MIPS/ARM with FPU EMULATOR and the latest Node 8.

You are a god for me! If I could give you most stars, I would give at least 1000 or infinite. I have been working on building multiple firmware so that at least work on my routers as I want and you just came to me and given me help with Node async/await and that is more then I can ever imagine.

Thanks you so much for you work!

Bye dude,
Patrik

FYI: module build fail on node v8.x

"make V=w" catch

module.js:473
      throw err;
      ^

TypeError: assertEncoding is not a function
    at getOptions (fs.js:81:5)
    at Object.realpathSync (fs.js:1584:15)
    at toRealPath (module.js:154:13)
    at Function.Module._findPath (module.js:203:22)
    at Function.Module._resolveFilename (module.js:525:25)
    at Function.Module._load (module.js:453:25)
    at Function.Module.runMain (module.js:665:10)
    at startup (bootstrap_node.js:201:16)
    at bootstrap_node.js:626:3

"make V=s" work well

stderr redirection breaks require : nodejs/node#11257

gyp ERR! stack Error: EACCES: permission denied

Ciao!

How are you?

Do you know how to enable the root permission in Docker so it can build?

gyp ERR! stack Error: EACCES: permission denied, mkdir 
'/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/node-sleep-5.1.1/ipkg-install/usr/lib/node_modules/sleep/build

Some small issue, but can't finding, please if you know let me know!

Thanks so much!

another small question about scandir

Ciao!

How are you?

Is this a patch for Node or something?

glob error { Error: ENOSYS: function not implemented, scandir '/usr/lib/node_modules/npm/node_modules/cmd-shim'
  errno: -38,
  code: 'ENOSYS',
  syscall: 'scandir',
  path: '/usr/lib/node_modules/npm/node_modules/cmd-shim' }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.