Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install fibers on node 4.0.0 #248

Closed
Jackyjjc opened this issue Sep 22, 2015 · 48 comments
Closed

Cannot install fibers on node 4.0.0 #248

Jackyjjc opened this issue Sep 22, 2015 · 48 comments

Comments

@Jackyjjc
Copy link

This is the message I got:

$ nvm use node 4
Now using node v4.0.0 (npm v2.14.2)

$ npm install fibers
\
> fibers@1.0.7 install /Users/jchen/node_modules/fibers
> node build.js || nodejs build.js

  CXX(target) Release/obj.target/fibers/src/fibers.o
  CXX(target) Release/obj.target/fibers/src/coroutine.o
  CC(target) Release/obj.target/fibers/src/libcoro/coro.o
  SOLINK_MODULE(target) Release/fibers.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/fibers.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/jchen/.nvm/versions/node/v4.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/Users/jchen/.nvm/versions/node/v4.0.0/bin/node" "/Users/jchen/.nvm/versions/node/v4.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/jchen/node_modules/fibers
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
Build failed
sh: nodejs: command not found
npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/jchen/.nvm/versions/node/v4.0.0/bin/node" "/Users/jchen/.nvm/versions/node/v4.0.0/bin/npm" "install" "fibers"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! fibers@1.0.7 install: `node build.js || nodejs build.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fibers@1.0.7 install script 'node build.js || nodejs build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js || nodejs build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls fibers
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jchen/npm-debug.log
@Jackyjjc Jackyjjc changed the title Cannot install fibers on node 4.1.0 Cannot install fibers on node 4.0.0 Sep 22, 2015
@ghost
Copy link

ghost commented Sep 22, 2015

I have the same problem, too 'npm install fibers --save' ( or-g) gives me that debug logs:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'fibers',
1 verbose cli '--save' ]
2 info using npm@2.14.2
3 info using node@v4.0.0
4 verbose install initial load of D:\Projects\node-mysql-wrapper\package.json
5 warn package.json node-mysql-wrapper@2.4.3 No license field.
6 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\bluebird\package.json
7 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\debug\package.json
8 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\gulp\package.json
9 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\gulp-concat\package.json
10 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\gulp-typescript\package.json
11 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\gulp-zip\package.json
12 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\mysql\package.json
13 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\streamqueue\package.json
14 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\typescript\package.json
15 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\yargs\package.json
16 verbose installManyTop reading scoped package data from D:\Projects\node-mysql-wrapper\node_modules\zongji\package.json
17 info package.json streamqueue@1.1.1 No license field.
18 verbose readDependencies loading dependencies from D:\Projects\node-mysql-wrapper\package.json
19 silly cache add args [ 'fibers', null ]
20 verbose cache add spec fibers
21 silly cache add parsed spec Result {
21 silly cache add raw: 'fibers',
21 silly cache add scope: null,
21 silly cache add name: 'fibers',
21 silly cache add rawSpec: '',
21 silly cache add spec: '',
21 silly cache add type: 'range' }
22 silly addNamed fibers@

23 verbose addNamed "" is a valid semver range for fibers
24 silly addNameRange { name: 'fibers', range: '
', hasData: false }
25 silly mapToRegistry name fibers
26 silly mapToRegistry using default registry
27 silly mapToRegistry registry https://registry.npmjs.org/
28 silly mapToRegistry uri https://registry.npmjs.org/fibers
29 verbose addNameRange registry:https://registry.npmjs.org/fibers not in flight; fetching
30 verbose request uri https://registry.npmjs.org/fibers
31 verbose request no auth needed
32 info attempt registry request try #1 at 12:35:25
33 verbose request using bearer token for auth
34 verbose request id 0e9845b58d402d37
35 verbose etag "EVWXHE5K16HTS5BY9L958MZ0K"
36 http request GET https://registry.npmjs.org/fibers
37 http 304 https://registry.npmjs.org/fibers
38 silly get cb [ 304,
38 silly get { 'cache-control': 'max-age=60',
38 silly get 'accept-ranges': 'bytes',
38 silly get date: 'Tue, 22 Sep 2015 09:35:31 GMT',
38 silly get via: '1.1 varnish',
38 silly get connection: 'keep-alive',
38 silly get 'x-served-by': 'cache-lcy1123-LCY',
38 silly get 'x-cache': 'MISS',
38 silly get 'x-cache-hits': '0',
38 silly get 'x-timer': 'S1442914531.678823,VS0,VE92' } ]
39 verbose etag https://registry.npmjs.org/fibers from cache
40 verbose get saving fibers to C:\Users\Makis-PC\AppData\Roaming\npm-cache\registry.npmjs.org\fibers.cache.json
41 silly addNameRange number 2 { name: 'fibers', range: '_', hasData: true }
42 silly addNameRange versions [ 'fibers',
42 silly addNameRange [ '0.1.0',
42 silly addNameRange '0.1.1',
42 silly addNameRange '0.1.2',
42 silly addNameRange '0.1.3',
42 silly addNameRange '0.1.4',
42 silly addNameRange '0.1.6',
42 silly addNameRange '0.1.7',
42 silly addNameRange '0.1.8',
42 silly addNameRange '0.2.0',
42 silly addNameRange '0.2.1',
42 silly addNameRange '0.2.2',
42 silly addNameRange '0.2.3',
42 silly addNameRange '0.2.4',
42 silly addNameRange '0.2.5',
42 silly addNameRange '0.2.6',
42 silly addNameRange '0.5.0',
42 silly addNameRange '0.6.0',
42 silly addNameRange '0.5.1',
42 silly addNameRange '0.6.1',
42 silly addNameRange '0.6.2',
42 silly addNameRange '0.6.3',
42 silly addNameRange '0.6.4',
42 silly addNameRange '0.6.5',
42 silly addNameRange '0.6.6',
42 silly addNameRange '0.6.7',
42 silly addNameRange '0.6.8',
42 silly addNameRange '0.6.9',
42 silly addNameRange '1.0.0',
42 silly addNameRange '1.0.1',
42 silly addNameRange '1.0.2',
42 silly addNameRange '1.0.4',
42 silly addNameRange '1.0.5',
42 silly addNameRange '1.0.6-b',
42 silly addNameRange '1.0.7' ] ]
43 silly addNamed fibers@1.0.7
44 verbose addNamed "1.0.7" is a plain semver version for fibers
45 silly cache afterAdd fibers@1.0.7
46 verbose afterAdd C:\Users\Makis-PC\AppData\Roaming\npm-cache\fibers\1.0.7\package\package.json not in flight; writing
47 verbose afterAdd C:\Users\Makis-PC\AppData\Roaming\npm-cache\fibers\1.0.7\package\package.json written
48 silly install resolved [ { name: 'fibers',
48 silly install resolved version: '1.0.7',
48 silly install resolved description: 'Cooperative multi-tasking for Javascript',
48 silly install resolved keywords:
48 silly install resolved [ 'fiber',
48 silly install resolved 'fibers',
48 silly install resolved 'coroutine',
48 silly install resolved 'thread',
48 silly install resolved 'async',
48 silly install resolved 'parallel',
48 silly install resolved 'worker',
48 silly install resolved 'future',
48 silly install resolved 'promise' ],
48 silly install resolved homepage: 'https://github.com/laverdet/node-fibers',
48 silly install resolved author:
48 silly install resolved { name: 'Marcel Laverdet',
48 silly install resolved email: 'marcel@laverdet.com',
48 silly install resolved url: 'https://github.com/laverdet/' },
48 silly install resolved main: 'fibers',
48 silly install resolved scripts:
48 silly install resolved { install: 'node build.js || nodejs build.js',
48 silly install resolved test: 'node test.js || nodejs test.js' },
48 silly install resolved repository:
48 silly install resolved { type: 'git',
48 silly install resolved url: 'git://github.com/laverdet/node-fibers.git' },
48 silly install resolved license: 'MIT',
48 silly install resolved engines: { node: '>=0.5.2' },
48 silly install resolved gitHead: '8c591087fcc5768d209ff8a30979c9257503d13f',
48 silly install resolved bugs: { url: 'https://github.com/laverdet/node-fibers/issues' },
48 silly install resolved _id: 'fibers@1.0.7',
48 silly install resolved _shasum: '7dabae2b238188caa3748a8968c3c9df91752982',
48 silly install resolved from: 'fibers@',
48 silly install resolved _npmVersion: '2.11.3',
48 silly install resolved _nodeVersion: '2.3.2',
48 silly install resolved _npmUser: { name: 'laverdet', email: 'marcel.npm@laverdet.com' },
48 silly install resolved maintainers: [ [Object] ],
48 silly install resolved dist:
48 silly install resolved { shasum: '7dabae2b238188caa3748a8968c3c9df91752982',
48 silly install resolved tarball: 'http://registry.npmjs.org/fibers/-/fibers-1.0.7.tgz' },
48 silly install resolved directories: {},
48 silly install resolved _resolved: 'https://registry.npmjs.org/fibers/-/fibers-1.0.7.tgz',
48 silly install resolved readme: 'ERROR: No README data found!' } ]
49 info install fibers@1.0.7 into D:\Projects\node-mysql-wrapper
50 info installOne fibers@1.0.7
51 verbose installOne of fibers to D:\Projects\node-mysql-wrapper not in flight; installing
52 verbose lock using C:\Users\Makis-PC\AppData\Roaming\npm-cache_locks\fibers-2a4a59473da5521d.lock for D:\Projects\node-mysql-wrapper\node_modules\fibers
53 silly install write writing fibers 1.0.7 to D:\Projects\node-mysql-wrapper\node_modules\fibers
54 verbose unbuild node_modules\fibers
55 silly gentlyRm D:\Projects\node-mysql-wrapper\node_modules\fibers is being purged from base D:\Projects\node-mysql-wrapper
56 verbose gentlyRm don't care about contents; nuking D:\Projects\node-mysql-wrapper\node_modules\fibers
57 verbose tar unpack C:\Users\Makis-PC\AppData\Roaming\npm-cache\fibers\1.0.7\package.tgz
58 verbose tar unpacking to D:\Projects\node-mysql-wrapper\node_modules\fibers
59 silly gentlyRm D:\Projects\node-mysql-wrapper\node_modules\fibers is being purged
60 verbose gentlyRm don't care about contents; nuking D:\Projects\node-mysql-wrapper\node_modules\fibers
61 silly gunzTarPerm modes [ '777', '666' ]
62 silly gunzTarPerm extractEntry package.json
63 silly gunzTarPerm modified mode [ 'package.json', 420, 438 ]
64 silly gunzTarPerm extractEntry .npmignore
65 silly gunzTarPerm modified mode [ '.npmignore', 420, 438 ]
66 silly gunzTarPerm extractEntry README.md
67 silly gunzTarPerm modified mode [ 'README.md', 420, 438 ]
68 silly gunzTarPerm extractEntry LICENSE
69 silly gunzTarPerm modified mode [ 'LICENSE', 420, 438 ]
70 silly gunzTarPerm extractEntry quick-test.js
71 silly gunzTarPerm modified mode [ 'quick-test.js', 420, 438 ]
72 silly gunzTarPerm extractEntry future.js
73 silly gunzTarPerm modified mode [ 'future.js', 420, 438 ]
74 silly gunzTarPerm extractEntry build.js
75 silly gunzTarPerm modified mode [ 'build.js', 493, 511 ]
76 silly gunzTarPerm extractEntry test.js
77 silly gunzTarPerm modified mode [ 'test.js', 493, 511 ]
78 silly gunzTarPerm extractEntry fibers.js
79 silly gunzTarPerm modified mode [ 'fibers.js', 420, 438 ]
80 silly gunzTarPerm extractEntry binding.gyp
81 silly gunzTarPerm modified mode [ 'binding.gyp', 420, 438 ]
82 silly gunzTarPerm extractEntry bin/.npmignore
83 silly gunzTarPerm modified mode [ 'bin/.npmignore', 420, 438 ]
84 silly gunzTarPerm extractEntry bin/win32-x64-v8-4.2/fibers.node
85 silly gunzTarPerm modified mode [ 'bin/win32-x64-v8-4.2/fibers.node', 420, 438 ]
86 silly gunzTarPerm extractEntry bin/darwin-ia32-v8-3.28/fibers.node
87 silly gunzTarPerm modified mode [ 'bin/darwin-ia32-v8-3.28/fibers.node', 493, 511 ]
88 silly gunzTarPerm extractEntry bin/darwin-ia32-v8-4.2/fibers.node
89 silly gunzTarPerm modified mode [ 'bin/darwin-ia32-v8-4.2/fibers.node', 493, 511 ]
90 silly gunzTarPerm extractEntry bin/darwin-x64-v8-3.14/fibers.node
91 silly gunzTarPerm modified mode [ 'bin/darwin-x64-v8-3.14/fibers.node', 493, 511 ]
92 silly gunzTarPerm extractEntry bin/darwin-x64-v8-3.28/fibers.node
93 silly gunzTarPerm modified mode [ 'bin/darwin-x64-v8-3.28/fibers.node', 493, 511 ]
94 silly gunzTarPerm extractEntry bin/darwin-x64-v8-4.2/fibers.node
95 silly gunzTarPerm modified mode [ 'bin/darwin-x64-v8-4.2/fibers.node', 493, 511 ]
96 silly gunzTarPerm extractEntry bin/linux-ia32-v8-3.14/fibers.node
97 silly gunzTarPerm modified mode [ 'bin/linux-ia32-v8-3.14/fibers.node', 493, 511 ]
98 silly gunzTarPerm extractEntry bin/linux-ia32-v8-3.28/fibers.node
99 silly gunzTarPerm modified mode [ 'bin/linux-ia32-v8-3.28/fibers.node', 493, 511 ]
100 silly gunzTarPerm extractEntry bin/linux-ia32-v8-4.2/fibers.node
101 silly gunzTarPerm modified mode [ 'bin/linux-ia32-v8-4.2/fibers.node', 493, 511 ]
102 silly gunzTarPerm extractEntry bin/darwin-ia32-v8-3.14/fibers.node
103 silly gunzTarPerm modified mode [ 'bin/darwin-ia32-v8-3.14/fibers.node', 493, 511 ]
104 silly gunzTarPerm extractEntry bin/linux-x64-v8-3.28/fibers.node
105 silly gunzTarPerm modified mode [ 'bin/linux-x64-v8-3.28/fibers.node', 493, 511 ]
106 silly gunzTarPerm extractEntry bin/linux-x64-v8-4.2/fibers.node
107 silly gunzTarPerm modified mode [ 'bin/linux-x64-v8-4.2/fibers.node', 493, 511 ]
108 silly gunzTarPerm extractEntry bin/repl
109 silly gunzTarPerm modified mode [ 'bin/repl', 493, 511 ]
110 silly gunzTarPerm extractEntry bin/win32-ia32-v8-3.14/fibers.node
111 silly gunzTarPerm modified mode [ 'bin/win32-ia32-v8-3.14/fibers.node', 420, 438 ]
112 silly gunzTarPerm extractEntry bin/win32-ia32-v8-3.28/fibers.node
113 silly gunzTarPerm modified mode [ 'bin/win32-ia32-v8-3.28/fibers.node', 420, 438 ]
114 silly gunzTarPerm extractEntry bin/win32-ia32-v8-4.2/fibers.node
115 silly gunzTarPerm modified mode [ 'bin/win32-ia32-v8-4.2/fibers.node', 420, 438 ]
116 silly gunzTarPerm extractEntry bin/win32-x64-v8-3.14/fibers.node
117 silly gunzTarPerm modified mode [ 'bin/win32-x64-v8-3.14/fibers.node', 420, 438 ]
118 silly gunzTarPerm extractEntry bin/win32-x64-v8-3.28/fibers.node
119 silly gunzTarPerm modified mode [ 'bin/win32-x64-v8-3.28/fibers.node', 420, 438 ]
120 silly gunzTarPerm extractEntry bin/linux-x64-v8-3.14/fibers.node
121 silly gunzTarPerm modified mode [ 'bin/linux-x64-v8-3.14/fibers.node', 493, 511 ]
122 silly gunzTarPerm extractEntry src/coroutine.cc
123 silly gunzTarPerm modified mode [ 'src/coroutine.cc', 420, 438 ]
124 silly gunzTarPerm extractEntry src/coroutine.h
125 silly gunzTarPerm modified mode [ 'src/coroutine.h', 420, 438 ]
126 silly gunzTarPerm extractEntry src/fibers.cc
127 silly gunzTarPerm modified mode [ 'src/fibers.cc', 420, 438 ]
128 silly gunzTarPerm extractEntry src/libcoro/README
129 silly gunzTarPerm modified mode [ 'src/libcoro/README', 420, 438 ]
130 silly gunzTarPerm extractEntry src/libcoro/LICENSE
131 silly gunzTarPerm modified mode [ 'src/libcoro/LICENSE', 420, 438 ]
132 silly gunzTarPerm extractEntry src/libcoro/conftest.c
133 silly gunzTarPerm modified mode [ 'src/libcoro/conftest.c', 420, 438 ]
134 silly gunzTarPerm extractEntry src/libcoro/coro.c
135 silly gunzTarPerm modified mode [ 'src/libcoro/coro.c', 420, 438 ]
136 silly gunzTarPerm extractEntry src/libcoro/coro.h
137 silly gunzTarPerm modified mode [ 'src/libcoro/coro.h', 420, 438 ]
138 silly gunzTarPerm extractEntry test/already-running.js
139 silly gunzTarPerm modified mode [ 'test/already-running.js', 420, 438 ]
140 silly gunzTarPerm extractEntry test/exit.js
141 silly gunzTarPerm modified mode [ 'test/exit.js', 420, 438 ]
142 silly gunzTarPerm extractEntry test/fibonacci.js
143 silly gunzTarPerm modified mode [ 'test/fibonacci.js', 420, 438 ]
144 silly gunzTarPerm extractEntry test/finish-multiple.js
145 silly gunzTarPerm modified mode [ 'test/finish-multiple.js', 420, 438 ]
146 silly gunzTarPerm extractEntry test/future-exception.js
147 silly gunzTarPerm modified mode [ 'test/future-exception.js', 420, 438 ]
148 silly gunzTarPerm extractEntry test/exec.js
149 silly gunzTarPerm modified mode [ 'test/exec.js', 420, 438 ]
150 silly gunzTarPerm extractEntry test/illegal-yield.js
151 silly gunzTarPerm modified mode [ 'test/illegal-yield.js', 420, 438 ]
152 silly gunzTarPerm extractEntry test/pool.js
153 silly gunzTarPerm modified mode [ 'test/pool.js', 420, 438 ]
154 silly gunzTarPerm extractEntry test/process-title.js
155 silly gunzTarPerm modified mode [ 'test/process-title.js', 420, 438 ]
156 silly gunzTarPerm extractEntry test/stack-overflow.js
157 silly gunzTarPerm modified mode [ 'test/stack-overflow.js', 420, 438 ]
158 silly gunzTarPerm extractEntry test/stack-overflow2.js
159 silly gunzTarPerm modified mode [ 'test/stack-overflow2.js', 493, 511 ]
160 silly gunzTarPerm extractEntry test/current.js
161 silly gunzTarPerm modified mode [ 'test/current.js', 420, 438 ]
162 silly gunzTarPerm extractEntry test/stack-overflow3.js
163 silly gunzTarPerm modified mode [ 'test/stack-overflow3.js', 420, 438 ]
164 silly gunzTarPerm extractEntry test/child-process.js
165 silly gunzTarPerm modified mode [ 'test/child-process.js', 420, 438 ]
166 silly gunzTarPerm extractEntry test/started.js
167 silly gunzTarPerm modified mode [ 'test/started.js', 420, 438 ]
168 silly gunzTarPerm extractEntry test/bad-context.js
169 silly gunzTarPerm modified mode [ 'test/bad-context.js', 420, 438 ]
170 silly gunzTarPerm extractEntry test/unwind.js
171 silly gunzTarPerm modified mode [ 'test/unwind.js', 420, 438 ]
172 silly gunzTarPerm extractEntry test/future.js
173 silly gunzTarPerm modified mode [ 'test/future.js', 420, 438 ]
174 verbose write writing to D:\Projects\node-mysql-wrapper\node_modules\fibers\package.json
175 info preinstall fibers@1.0.7
176 verbose readDependencies loading dependencies from D:\Projects\node-mysql-wrapper\node_modules\fibers\package.json
177 verbose readDependencies loading dependencies from D:\Projects\node-mysql-wrapper\node_modules\fibers\package.json
178 silly install resolved []
179 verbose about to build D:\Projects\node-mysql-wrapper\node_modules\fibers
180 info build D:\Projects\node-mysql-wrapper\node_modules\fibers
181 info linkStuff fibers@1.0.7
182 silly linkStuff fibers@1.0.7 has D:\Projects\node-mysql-wrapper\node_modules as its parent node_modules
183 verbose linkBins fibers@1.0.7
184 verbose linkMans fibers@1.0.7
185 verbose rebuildBundles fibers@1.0.7
186 info install fibers@1.0.7
187 verbose unsafe-perm in lifecycle true
188 info fibers@1.0.7 Failed to exec install script
189 verbose unlock done using C:\Users\Makis-PC\AppData\Roaming\npm-cache_locks\fibers-2a4a59473da5521d.lock for D:\Projects\node-mysql-wrapper\node_modules\fibers
190 verbose stack Error: fibers@1.0.7 install: node build.js || nodejs build.js
190 verbose stack Exit status 1
190 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)
190 verbose stack at emitTwo (events.js:87:13)
190 verbose stack at EventEmitter.emit (events.js:172:7)
190 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
190 verbose stack at emitTwo (events.js:87:13)
190 verbose stack at ChildProcess.emit (events.js:172:7)
190 verbose stack at maybeClose (internal/child_process.js:817:16)
190 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
191 verbose pkgid fibers@1.0.7
192 verbose cwd D:\Projects\node-mysql-wrapper
193 error Windows_NT 10.0.10240
194 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "fibers" "--save"
195 error node v4.0.0
196 error npm v2.14.2
197 error code ELIFECYCLE
198 error fibers@1.0.7 install: node build.js || nodejs build.js
198 error Exit status 1
199 error Failed at the fibers@1.0.7 install script 'node build.js || nodejs build.js'.
199 error This is most likely a problem with the fibers package,
199 error not with npm itself.
199 error Tell the author that this fails on your system:
199 error node build.js || nodejs build.js
199 error You can get their info via:
199 error npm owner ls fibers
199 error There is likely additional logging output above.
200 verbose exit [ 1, true ]
201 verbose unbuild node_modules\fibers
202 info preuninstall fibers@1.0.7
203 info uninstall fibers@1.0.7
204 verbose unbuild rmStuff fibers@1.0.7 from D:\Projects\node-mysql-wrapper\node_modules
205 info postuninstall fibers@1.0.7
206 silly gentlyRm D:\Projects\node-mysql-wrapper\node_modules\fibers is being purged from base D:\Projects\node-mysql-wrapper
207 verbose gentlyRm don't care about contents; nuking D:\Projects\node-mysql-wrapper\node_modules\fibers
208 silly vacuum-fs purging D:\Projects\node-mysql-wrapper\node_modules\fibers
209 silly vacuum-fs quitting because other entries in D:\Projects\node-mysql-wrapper\node_modules

@Jackyjjc
Copy link
Author

My original issue turns out to be XCode being out of date so fibers can't compile properly

@simonhochrein
Copy link

I am on linux and have the same problem
make command failed
node -v 4.0.0

@laverdet
Copy link
Owner

I haven't published binaries for the 4.x versions of node yet, but it compiles and runs cleanly on my system. If you're running into issues installing it's a problem with your build environment.

You have three options:

  • Use iojs 3.0 (which nodejs is based on)
  • Fix your build environment
  • Wait for me to publish binaries

@edorivai
Copy link

Sorry to bump, but do you have any indication of when you plan to publish binaries for 4.x?

@mweststrate
Copy link

+1. Publishing binaries would be much appreciated!

@jacobfike
Copy link

What is the problem with the build environment? How do we "fix" it?

@laverdet
Copy link
Owner

@jacobfike the error of interest in the original post was "ld: library not found for -lgcc_s.10.5" which is a linker problem missing gcc dependencies. He fixed it by updating XCode. Look at the logs and see what's wrong, but I can assure you it builds cleanly on all supported systems.

@fresheneesz
Copy link
Contributor

For what its worth, I get errors trying to install fibers 1.0.7 on a centos machine with both node 4.1.2 and 4.0.0. Here's the output for 4.1.2 (the 4.0.0 output is similar):

[vagrant@localhost backend]$ npm install fibers
/
> fibers@1.0.7 install /home/vagrant/backend/node_modules/fibers
> node build.js || nodejs build.js

make: Entering directory `/home/vagrant/backend/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
In file included from /home/vagrant/.node-gyp/4.1.2/include/node/node.h:42,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:336: error: expected unqualified-id before âusingâ
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: In constructor âv8::MaybeLocal<T>::MaybeLocal()â:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:353: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: In member function âbool v8::MaybeLocal<T>::IsEmpty() constâ:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:360: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: In member function âbool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) constâ:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:364: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: In member function âbool v8::WeakCallbackInfo<T>::IsFirstPass() constâ:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:430: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: At global scope:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:469: error: expected unqualified-id before âusingâ
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: In constructor âv8::Global<T>::Global()â:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:790: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: In constructor âv8::Global<T>::Global(v8::Global<T>&&)â:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:815: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: In member function âv8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)â:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:827: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: At global scope:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:852: error: expected unqualified-id before âusingâ
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:1089: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:1095: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: In member function âv8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) constâ:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:3205: error: ânullptrâ was not declared in this scope
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h: In member function âv8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()â:
/home/vagrant/.node-gyp/4.1.2/include/node/v8.h:7151: error: ânullptrâ was not declared in this scope
../src/fibers.cc: At global scope:
../src/fibers.cc:40: error: âHandleâ has not been declared
../src/fibers.cc:40: error: expected â,â or â...â before â<â token
../src/fibers.cc: In function âvoid uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)â:
../src/fibers.cc:41: error: âhandleâ was not declared in this scope
../src/fibers.cc: At global scope:
../src/fibers.cc:63: error: variable or field âSetInternalPointerâ declared void
../src/fibers.cc:63: error: âHandleâ was not declared in this scope
../src/fibers.cc:63: error: expected primary-expression before â>â token
../src/fibers.cc:63: error: âhandleâ was not declared in this scope
../src/fibers.cc:63: error: expected primary-expression before âintâ
../src/fibers.cc:63: error: expected primary-expression before âvoidâ
../src/fibers.cc:67: error: template declaration of âvoid* uni::GetInternalPointerâ
../src/fibers.cc:67: error: âHandleâ was not declared in this scope
../src/fibers.cc:67: error: expected primary-expression before â>â token
../src/fibers.cc:67: error: âhandleâ was not declared in this scope
../src/fibers.cc:67: error: expected primary-expression before âintâ
../src/fibers.cc:72: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:77: error: variable or field âReturnâ declared void
../src/fibers.cc:77: error: âHandleâ was not declared in this scope
../src/fibers.cc:77: error: expected primary-expression before â>â token
../src/fibers.cc:77: error: âhandleâ was not declared in this scope
../src/fibers.cc:77: error: expected primary-expression before âconstâ
../src/fibers.cc:81: error: variable or field âReturnâ declared void
../src/fibers.cc:81: error: âHandleâ was not declared in this scope
../src/fibers.cc:81: error: expected primary-expression before â>â token
../src/fibers.cc:81: error: âhandleâ was not declared in this scope
../src/fibers.cc:81: error: expected primary-expression before âinfoâ
../src/fibers.cc:89: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:93: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:97: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:101: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:105: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:109: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:113: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:117: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:127: error: expected constructor, destructor, or type conversion before â<â token
../src/fibers.cc:309: error: expected â;â before â(â token
../src/fibers.cc:315: error: expected â;â before âFiberâ
../src/fibers.cc:315: error: expected â)â before â<â token
../src/fibers.cc:581: error: ISO C++ forbids declaration of âHandleâ with no type
../src/fibers.cc:581: error: expected â;â before â<â token
../src/fibers.cc:823: error: expected â;â at end of input
../src/fibers.cc:823: error: expected â}â at end of input
../src/fibers.cc: In static member function âstatic void Fiber::DestroyOrphans()â:
../src/fibers.cc:396: error: âDerefâ is not a member of âuniâ
../src/fibers.cc: In static member function âstatic uni::FunctionType Fiber::New(const uni::Arguments&)â:
../src/fibers.cc:418: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:418: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:418: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:420: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:420: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:420: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:422: error: âHandleâ was not declared in this scope
../src/fibers.cc:422: error: expected primary-expression before â>â token
../src/fibers.cc:422: error: âargvâ was not declared in this scope
../src/fibers.cc:423: error: âDerefâ is not a member of âuniâ
../src/fibers.cc:423: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:426: error: âHandleâ was not declared in this scope
../src/fibers.cc:426: error: expected primary-expression before â>â token
../src/fibers.cc:426: error: âfnâ was not declared in this scope
../src/fibers.cc:426: error: expected primary-expression before â>â token
../src/fibers.cc:426: error: â::Castâ has not been declared
../src/fibers.cc:427: error: âGetCurrentContextâ is not a member of âuniâ
../src/fibers.cc:428: error: no matching function for call to âReturn(v8::Local<v8::Object>, const v8::FunctionCallbackInfo<v8::Value>&)â
../src/fibers.cc:428: error: return-statement with a value, in function returning 'void'
../src/fibers.cc: In static member function âstatic uni::FunctionType Fiber::Run(const uni::Arguments&)â:
../src/fibers.cc:436: error: âUnwrapâ was not declared in this scope
../src/fibers.cc:442: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:442: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:442: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:444: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:444: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:444: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:452: error: âRunFiberâ was not declared in this scope
../src/fibers.cc:455: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:455: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:455: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:465: error: no matching function for call to âReset(v8::Isolate*&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&, v8::Local<v8::Value>)â
../src/fibers.cc:467: error: âUndefinedâ is not a member of âuniâ
../src/fibers.cc:471: error: âclass Fiberâ has no member named âReturnYieldedâ
../src/fibers.cc:471: error: return-statement with a value, in function returning 'void'
../src/fibers.cc: In static member function âstatic uni::FunctionType Fiber::ThrowInto(const uni::Arguments&)â:
../src/fibers.cc:478: error: âUnwrapâ was not declared in this scope
../src/fibers.cc:481: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:481: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:481: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:483: error: âUndefinedâ is not a member of âuniâ
../src/fibers.cc:485: error: no matching function for call to âReset(v8::Isolate*&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&, v8::Local<v8::Value>)â
../src/fibers.cc:487: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:487: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:487: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:491: error: âclass Fiberâ has no member named âReturnYieldedâ
../src/fibers.cc:491: error: return-statement with a value, in function returning 'void'
../src/fibers.cc: In static member function âstatic uni::FunctionType Fiber::Reset(const uni::Arguments&)â:
../src/fibers.cc:499: error: âUnwrapâ was not declared in this scope
../src/fibers.cc:502: error: âUndefinedâ is not a member of âuniâ
../src/fibers.cc:502: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:504: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:504: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:504: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:506: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:506: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:506: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:514: error: âHandleâ was not declared in this scope
../src/fibers.cc:514: error: expected primary-expression before â>â token
../src/fibers.cc:514: error: âvalâ was not declared in this scope
../src/fibers.cc:514: error: âDerefâ is not a member of âuniâ
../src/fibers.cc:517: error: âThrowExceptionâ is not a member of âuniâ
../src/fibers.cc:517: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:519: error: return-statement with a value, in function returning 'void'
../src/fibers.cc: In member function âvoid Fiber::UnwindStack()â:
../src/fibers.cc:536: error: âHandleâ was not declared in this scope
../src/fibers.cc:536: error: expected primary-expression before â>â token
../src/fibers.cc:536: error: âNewLatin1Stringâ is not a member of âuniâ
../src/fibers.cc:537: error: no matching function for call to âReset(v8::Isolate*&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&)â
../src/fibers.cc:538: error: no matching function for call to âReset(v8::Isolate*&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&)â
../src/fibers.cc:551: error: âUndefinedâ is not a member of âuniâ
../src/fibers.cc: At global scope:
../src/fibers.cc:576: error: expected unqualified-id at end of input
make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
make: Leaving directory `/home/vagrant/backend/node_modules/fibers/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/vagrant/.nvm/versions/node/v4.1.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 2.6.32-431.29.2.el6.x86_64
gyp ERR! command "/home/vagrant/.nvm/versions/node/v4.1.2/bin/node" "/home/vagrant/.nvm/versions/node/v4.1.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /home/vagrant/backend/node_modules/fibers
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
sh: nodejs: command not found
npm ERR! Linux 2.6.32-431.29.2.el6.x86_64
npm ERR! argv "/home/vagrant/.nvm/versions/node/v4.1.2/bin/node" "/home/vagrant/.nvm/versions/node/v4.1.2/bin/npm" "install" "fibers"
npm ERR! node v4.1.2
npm ERR! npm  v2.14.4
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! fibers@1.0.7 install: `node build.js || nodejs build.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fibers@1.0.7 install script 'node build.js || nodejs build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js || nodejs build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls fibers
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/vagrant/backend/npm-debug.log

@fresheneesz
Copy link
Contributor

Looks like 3.0.0 and 3.3.1 also don't work for me : ( . Installing with 2.0.2 and 2.5.0 seem to work tho.

@laverdet
Copy link
Owner

laverdet commented Oct 6, 2015

There's something wrong with your build environment. The failure is in the node.h included file, which we know is good.

@fresheneesz
Copy link
Contributor

Hmm, I haven't messed around with any internal files. Any idea why that kind of error would happen on one version and not another? I'm using nvm to switch around btw.

@laverdet
Copy link
Owner

laverdet commented Oct 6, 2015

It's very tough to say without troubleshooting on your specific machine. I suspect you'll have a problem installing any binary modules, for instance npm install fs-ext will probably give you a similar error.

@fresheneesz
Copy link
Contributor

That does indeed give me errors. I'll have to look into that at some point. Thanks for the tip.

@mikemeier
Copy link

Node 4.1.2 the same problem. What could help?

@fresheneesz
Copy link
Contributor

Figured out my issue. On centos 6, I needed a version of gcc newer than 4.4.7. To upgrade to 4.7.2:

sudo wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo -P /etc/yum.repos.d
sudo sh -c 'echo "enabled=1" >> /etc/yum.repos.d/devtools-1.1.repo'
sudo yum install devtoolset-1.1
scl enable devtoolset-1.1 bash

Then add this to your user profile (mine was ~/.bash_profile):

PATH=/opt/centos/devtoolset-1.1/root/usr/bin/:$PATH

@AndyHan1001
Copy link

meteor version: 1.2.0.2

I am trying to deploy my meteor project onto aws ec2 by mup, and I just set node version to be 4.1.2 in mup.json. Finally, mup failed to invoke deployment process. Got the following error message:

x Invoking deployment process: FAILED

-----------------------------------STDERR-----------------------------------
b/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /opt/we-career/tmp/bundle/programs/server/node_modules/fibers
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
Build failed
npm ERR! Linux 3.13.0-48-generic
npm ERR! argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.1.2
npm ERR! npm  v2.14.4
npm ERR! code ELIFECYCLE

npm ERR! fibers@1.0.5 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fibers@1.0.5 install script 'node ./build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls fibers
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/we-career/tmp/bundle/programs/server/npm-debug.log
-----------------------------------STDOUT-----------------------------------
npm modules
bindings@1.0.0 node_modules/bindings

nodeunit@0.9.1 node_modules/nodeunit
└── tap@0.7.1 (inherits@2.0.1, buffer-equal@0.0.1, deep-equal@1.0.1, slide@1.1.6, yamlish@0.0.7, mkdirp@0.5.1, nopt@3.0.4, difflet@0.2.6, glob@4.5.3, runforcover@0.0.2)
make: Entering directory `/opt/we-career/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
make: Leaving directory `/opt/we-career/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build'

> fibers@1.0.5 install /opt/we-career/tmp/bundle/programs/server/node_modules/fibers
> node ./build.js

make: Entering directory `/opt/we-career/tmp/bundle/programs/server/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
make: Leaving directory `/opt/we-career/tmp/bundle/programs/server/node_modules/fibers/build'
----------------------------------------------------------------------------

@AndyHan1001
Copy link

complete error message:

npm install
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
npm WARN package.json meteor-dev-bundle@0.0.0 No license field.
|

fibers@1.0.5 install /opt/we-career/tmp/bundle/programs/server/node_modules/fibers
node ./build.js

(node) child_process: options.customFds option is deprecated. Use options.stdio instead.
make: Entering directory /opt/we-career/tmp/bundle/programs/server/node_modules/fibers/build' CXX(target) Release/obj.target/fibers/src/fibers.o ../src/fibers.cc: In function ‘v8::Handle<v8::Signature> uni::NewSignature(v8::Isolate*, v8::Handle<v8::FunctionTemplate>, int, v8::Handle<v8::FunctionTemplate>*)’: ../src/fibers.cc:132:54: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*&, v8::Handle<v8::FunctionTemplate>&, int&, v8::Handle<v8::FunctionTemplate>*&)’ return Signature::New(isolate, receiver, argc, argv); ^ ../src/fibers.cc:132:54: note: candidate is: In file included from /home/ubuntu/.node-gyp/4.1.2/include/node/node.h:42:0, from ../src/coroutine.h:1, from ../src/fibers.cc:1: /home/ubuntu/.node-gyp/4.1.2/include/node/v8.h:4675:27: note: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>) static Local<Signature> New( ^ /home/ubuntu/.node-gyp/4.1.2/include/node/v8.h:4675:27: note: candidate expects 2 arguments, 4 provided ../src/fibers.cc: In function ‘void uni::SetResourceConstraints(v8::Isolate*, v8::ResourceConstraints*)’: ../src/fibers.cc:140:3: error: ‘SetResourceConstraints’ is not a member of ‘v8’ v8::SetResourceConstraints(isolate, constraints); ^ ../src/fibers.cc:140:3: note: suggested alternative: ../src/fibers.cc:139:7: note: ‘uni::SetResourceConstraints’ void SetResourceConstraints(Isolate* isolate, ResourceConstraints* constraints) { ^ ../src/fibers.cc: In function ‘v8::Handle<v8::Signature> uni::NewSignature(v8::Isolate*, v8::Handle<v8::FunctionTemplate>, int, v8::Handle<v8::FunctionTemplate>*)’: ../src/fibers.cc:133:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Release/obj.target/fibers/src/fibers.o] Error 1 make: Leaving directory/opt/we-career/tmp/bundle/programs/server/node_modules/fibers/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-48-generic
gyp ERR! command "/opt/nodejs/bin/node" "/opt/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /opt/we-career/tmp/bundle/programs/server/node_modules/fibers
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
npm ERR! Linux 3.13.0-48-generic
npm ERR! argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! code ELIFECYCLE

npm ERR! fibers@1.0.5 install: node ./build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@1.0.5 install script 'node ./build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls fibers
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /opt/we-career/tmp/bundle/programs/server/npm-debug.log

@sjmcdowall
Copy link

@andyhan - the real only version of node that meteor supports is node 0.10.36. Maybe try that version?

@TomFreudenberg
Copy link
Contributor

@AndyHan1001 You have to use node v0.10.40 – this is the current supported node for meteor 1.2

@sjmcdowall
Copy link

@TomFreudenberg - Ah thanks! I'm still on Meteor 1.1. Good to know. Happen to know if they bundled the compiled Fibers for Windows 7 in Meteor 1.2/Node 0.10.40 ??

@TomFreudenberg
Copy link
Contributor

@sjmcdowall As I do not have tried meteor on windows myself, I can not guarantee but as I know their build process all necessary elements are "in" on the official MDG releases.

@benjsicam
Copy link

+1 Getting the same problem too on Ubuntu 12.04.

@benjsicam
Copy link

Found a solution for us. This problems occurs when I'm building our project on Travis CI. The VM where our test suites are being ran is using Ubuntu 12.04. Ran the before_install script below and it worked. Just would like to share in case anyone might bump into the same issue.

sudo apt-get install python-software-properties -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install build-essential -y
sudo apt-get install gcc-4.8 g++-4.8 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
export CC=gcc

@trufae
Copy link

trufae commented Nov 28, 2015

Same problems with Node5, v8 apis has changed.


> fibers@0.6.9 install
> node ./build.js

(node) child_process: options.customFds option is deprecated. Use options.stdio instead.
2015-11-28 12:36:01.301 xcodebuild[66455:591704] [MT] PluginLoading: Required plug-in compatibility UUID 9F75337B-21B4-4ADC-B558-F9CADF7073A7 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
  CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc:149:34: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> New(const Arguments& args) {
                                               ^~~~~~~~~
                                               v8::internal::Arguments
~/.node-gyp/5.1.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/fibers.cc:168:34: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Run(const Arguments& args) {
                                               ^~~~~~~~~
                                               v8::internal::Arguments
~/.node-gyp/5.1.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/fibers.cc:206:40: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> ThrowInto(const Arguments& args) {
                                                     ^~~~~~~~~
                                                     v8::internal::Arguments
~/.node-gyp/5.1.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/fibers.cc:227:36: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Reset(const Arguments& args) {
                                                 ^~~~~~~~~
                                                 v8::internal::Arguments
~/.node-gyp/5.1.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/fibers.cc:394:37: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
                static Handle<Value> Yield_(const Arguments& args) {
                                                  ^~~~~~~~~
                                                  v8::internal::Arguments
~/.node-gyp/5.1.0/include/node/v8.h:139:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/fibers.cc:436:65: error: unknown type name 'AccessorInfo'
                static Handle<Value> GetStarted(Local<String> property, const AccessorInfo& info) {
                                                                              ^
../src/fibers.cc:444:65: error: unknown type name 'AccessorInfo'
                static Handle<Value> GetCurrent(Local<String> property, const AccessorInfo& info) {
                                                                              ^
../src/fibers.cc:455:66: error: unknown type name 'AccessorInfo'
                static Handle<Value> GetPoolSize(Local<String> property, const AccessorInfo& info) {
                                                                               ^
../src/fibers.cc:459:77: error: unknown type name 'AccessorInfo'
                static void SetPoolSize(Local<String> property, Local<Value> value, const AccessorInfo& info) {
                                                                                          ^
../src/fibers.cc:466:71: error: unknown type name 'AccessorInfo'
                static Handle<Value> GetFibersCreated(Local<String> property, const AccessorInfo& info) {
                                                                                    ^
../src/fibers.cc:49:31: error: 'New' is a private member of 'v8::PersistentBase<v8::Object>'
                        handle(Persistent<Object>::New(handle)),
                                                   ^
~/.node-gyp/5.1.0/include/node/v8.h:643:23: note: declared private here
  V8_INLINE static T* New(Isolate* isolate, T* that);
                      ^
../src/fibers.cc:49:11: error: too few arguments to function call, expected 2, have 1; did you mean '::Fiber::New'?
                        handle(Persistent<Object>::New(handle)),
                               ^~~~~~~~~~
                               ::Fiber::New
../src/fibers.cc:149:24: note: '::Fiber::New' declared here
                static Handle<Value> New(const Arguments& args) {
                                     ^
../src/fibers.cc:50:29: error: 'New' is a private member of 'v8::PersistentBase<v8::Function>'
                        cb(Persistent<Function>::New(cb)),
                                                 ^
~/.node-gyp/5.1.0/include/node/v8.h:643:23: note: declared private here
  V8_INLINE static T* New(Isolate* isolate, T* that);
                      ^
../src/fibers.cc:50:7: error: too few arguments to function call, expected 2, have 1; did you mean '::Fiber::New'?
                        cb(Persistent<Function>::New(cb)),
                           ^~~~~~~~~~
                           ::Fiber::New
../src/fibers.cc:149:24: note: '::Fiber::New' declared here
                static Handle<Value> New(const Arguments& args) {
                                     ^
../src/fibers.cc:51:36: error: 'New' is a private member of 'v8::PersistentBase<v8::Context>'
                        v8_context(Persistent<Context>::New(v8_context)),
                                                        ^
~/.node-gyp/5.1.0/include/node/v8.h:643:23: note: declared private here
  V8_INLINE static T* New(Isolate* isolate, T* that);
                      ^
../src/fibers.cc:51:15: error: too few arguments to function call, expected 2, have 1; did you mean '::Fiber::New'?
                        v8_context(Persistent<Context>::New(v8_context)),
                                   ^~~~~~~~~~
                                   ::Fiber::New
../src/fibers.cc:149:24: note: '::Fiber::New' declared here
                static Handle<Value> New(const Arguments& args) {
                                     ^
../src/fibers.cc:58:12: error: no member named 'SetPointerInInternalField' in 'v8::Object'; did you mean

�
      'SetAlignedPointerInInternalField'?
                        handle->SetPointerInInternalField(0, this);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
                                SetAlignedPointerInInternalField
~/.node-gyp/5.1.0/include/node/v8.h:2793:8: note: 'SetAlignedPointerInInternalField' declared here
  void SetAlignedPointerInInternalField(int index, void* value);
       ^
../src/fibers.cc:63:11: error: no member named 'Dispose' in 'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
                        handle.Dispose();
                        ~~~~~~ ^
../src/fibers.cc:64:7: error: no member named 'Dispose' in 'v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function>
      >'
                        cb.Dispose();
                        ~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! node -v v5.1.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

@trufae
Copy link

trufae commented Nov 28, 2015

This is scary meteor/meteor#5452 (comment)

@sjmcdowall
Copy link

@trufae -- what exactly is scaring about that? It is just indicating you need to use the proper version of node for Meteor (0.10.40). Use the right node version, and all is goodness.

@scriby
Copy link

scriby commented Nov 30, 2015

Failing to build on Redhat for me. We've got another dependency that requires node v4, so this is causing us a bit of pain.

Here's the build output:

> fibers@1.0.7 install /root/node_modules/fibers
> node build.js || nodejs build.js

make: Entering directory `/root/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
In file included from /root/.node-gyp/4.2.2/include/node/node.h:42,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/root/.node-gyp/4.2.2/include/node/v8.h:336: error: expected unqualified-id before ‘using’
/root/.node-gyp/4.2.2/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/root/.node-gyp/4.2.2/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/root/.node-gyp/4.2.2/include/node/v8.h:360: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/root/.node-gyp/4.2.2/include/node/v8.h:364: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/root/.node-gyp/4.2.2/include/node/v8.h:430: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h: At global scope:
/root/.node-gyp/4.2.2/include/node/v8.h:469: error: expected unqualified-id before ‘using’
/root/.node-gyp/4.2.2/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/root/.node-gyp/4.2.2/include/node/v8.h:790: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/root/.node-gyp/4.2.2/include/node/v8.h:815: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/root/.node-gyp/4.2.2/include/node/v8.h:827: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h: At global scope:
/root/.node-gyp/4.2.2/include/node/v8.h:852: error: expected unqualified-id before ‘using’
/root/.node-gyp/4.2.2/include/node/v8.h:1089: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h:1095: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/root/.node-gyp/4.2.2/include/node/v8.h:3205: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/4.2.2/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’:
/root/.node-gyp/4.2.2/include/node/v8.h:7164: error: ‘nullptr’ was not declared in this scope
../src/fibers.cc: At global scope:
../src/fibers.cc:40: error: ‘Handle’ has not been declared
../src/fibers.cc:40: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/fibers.cc: In function ‘void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’:
../src/fibers.cc:41: error: ‘handle’ was not declared in this scope
../src/fibers.cc: At global scope:
../src/fibers.cc:63: error: variable or field ‘SetInternalPointer’ declared void
../src/fibers.cc:63: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:63: error: expected primary-expression before ‘>’ token
../src/fibers.cc:63: error: ‘handle’ was not declared in this scope
../src/fibers.cc:63: error: expected primary-expression before ‘int’
../src/fibers.cc:63: error: expected primary-expression before ‘void’
../src/fibers.cc:67: error: template declaration of ‘void* uni::GetInternalPointer’
../src/fibers.cc:67: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:67: error: expected primary-expression before ‘>’ token
../src/fibers.cc:67: error: ‘handle’ was not declared in this scope
../src/fibers.cc:67: error: expected primary-expression before ‘int’
../src/fibers.cc:72: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:77: error: variable or field ‘Return’ declared void
../src/fibers.cc:77: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:77: error: expected primary-expression before ‘>’ token
../src/fibers.cc:77: error: ‘handle’ was not declared in this scope
../src/fibers.cc:77: error: expected primary-expression before ‘const’
../src/fibers.cc:81: error: variable or field ‘Return’ declared void
../src/fibers.cc:81: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:81: error: expected primary-expression before ‘>’ token
../src/fibers.cc:81: error: ‘handle’ was not declared in this scope
../src/fibers.cc:81: error: expected primary-expression before ‘info’
../src/fibers.cc:89: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:93: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:97: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:101: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:105: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:109: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:113: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:117: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:127: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:309: error: expected ‘;’ before ‘(’ token
../src/fibers.cc:315: error: expected ‘;’ before ‘Fiber’
../src/fibers.cc:315: error: expected ‘)’ before ‘<’ token
../src/fibers.cc:581: error: ISO C++ forbids declaration of ‘Handle’ with no type
../src/fibers.cc:581: error: expected ‘;’ before ‘<’ token
../src/fibers.cc:823: error: expected ‘;’ at end of input
../src/fibers.cc:823: error: expected ‘}’ at end of input
../src/fibers.cc: In static member function ‘static void Fiber::DestroyOrphans()’:
../src/fibers.cc:396: error: ‘Deref’ is not a member of ‘uni’
../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::New(const uni::Arguments&)’:
../src/fibers.cc:418: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:418: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:418: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:420: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:420: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:420: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:422: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:422: error: expected primary-expression before ‘>’ token
../src/fibers.cc:422: error: ‘argv’ was not declared in this scope
../src/fibers.cc:423: error: ‘Deref’ is not a member of ‘uni’
../src/fibers.cc:423: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:426: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:426: error: expected primary-expression before ‘>’ token
../src/fibers.cc:426: error: ‘fn’ was not declared in this scope
../src/fibers.cc:426: error: expected primary-expression before ‘>’ token
../src/fibers.cc:426: error: ‘::Cast’ has not been declared
../src/fibers.cc:427: error: ‘GetCurrentContext’ is not a member of ‘uni’
../src/fibers.cc:428: error: no matching function for call to ‘Return(v8::Local<v8::Object>, const v8::FunctionCallbackInfo<v8::Value>&)’
../src/fibers.cc:428: error: return-statement with a value, in function returning 'void'
../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Run(const uni::Arguments&)’:
../src/fibers.cc:436: error: ‘Unwrap’ was not declared in this scope
../src/fibers.cc:442: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:442: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:442: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:444: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:444: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:444: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:452: error: ‘RunFiber’ was not declared in this scope
../src/fibers.cc:455: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:455: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:455: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:465: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&, v8::Local<v8::Value>)’
../src/fibers.cc:467: error: ‘Undefined’ is not a member of ‘uni’
../src/fibers.cc:471: error: ‘class Fiber’ has no member named ‘ReturnYielded’
../src/fibers.cc:471: error: return-statement with a value, in function returning 'void'
../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::ThrowInto(const uni::Arguments&)’:
../src/fibers.cc:478: error: ‘Unwrap’ was not declared in this scope
../src/fibers.cc:481: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:481: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:481: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:483: error: ‘Undefined’ is not a member of ‘uni’
../src/fibers.cc:485: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&, v8::Local<v8::Value>)’
../src/fibers.cc:487: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:487: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:487: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:491: error: ‘class Fiber’ has no member named ‘ReturnYielded’
../src/fibers.cc:491: error: return-statement with a value, in function returning 'void'
../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Reset(const uni::Arguments&)’:
../src/fibers.cc:499: error: ‘Unwrap’ was not declared in this scope
../src/fibers.cc:502: error: ‘Undefined’ is not a member of ‘uni’
../src/fibers.cc:502: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:504: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:504: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:504: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:506: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:506: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:506: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:514: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:514: error: expected primary-expression before ‘>’ token
../src/fibers.cc:514: error: ‘val’ was not declared in this scope
../src/fibers.cc:514: error: ‘Deref’ is not a member of ‘uni’
../src/fibers.cc:517: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:517: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:519: error: return-statement with a value, in function returning 'void'
../src/fibers.cc: In member function ‘void Fiber::UnwindStack()’:
../src/fibers.cc:536: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:536: error: expected primary-expression before ‘>’ token
../src/fibers.cc:536: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:537: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&)’
../src/fibers.cc:538: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&, v8::Persistent<v8::Value, v8::NonCopyablePersistentTraits<v8::Value> >&)’
../src/fibers.cc:551: error: ‘Undefined’ is not a member of ‘uni’
../src/fibers.cc: At global scope:
../src/fibers.cc:576: error: expected unqualified-id at end of input
make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
make: Leaving directory `/root/node_modules/fibers/build'

@laverdet
Copy link
Owner

@scriby I'd be curious to see what happens if you tried to compile node. Those compiler errors are totally crazy, points to a bad build environment

@scriby
Copy link

scriby commented Nov 30, 2015

Any ideas on whether you'd be able to start packaging the node v4 binaries for us poor folk with bad build environments :) ?

@benjsicam
Copy link

@scriby For Fedora/RHEL/CentOS, you must do the following:

sudo yum update -y
sudo yum groupinstall "Development Tools" -y

My environment has Node v4 and CentOS 7 and I'm running fibers v1.0.7 fine.

@scriby
Copy link

scriby commented Dec 1, 2015

I tried that out, but it didn't seem to help. I don't manage the servers I'm working with right now, so I don't know the ins and outs about how they're configured. We have quite a few servers managed by different groups, so just having the binaries bundled really simplifies things for us.

@fresheneesz
Copy link
Contributor

Here are all the steps I take to install our centos dev machines before installing node (now via nvm):

yum install -y kernel-headers --disableexcludes=all
yum groupinstall -y 'Development Tools' --disableexcludes=all

# update gcc to 4.7.2
wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo -P /etc/yum.repos.d
sh -c 'echo "enabled=1" >> /etc/yum.repos.d/devtools-1.1.repo'
yum -y install devtoolset-1.1

yum -y install krb5-devel

# Adds additional path item and enables devtoolset-1.1, both needed for gcc 4.7.2
line=`grep '^PATH=' ~/.bash_profile -n | cut -d: -f 1 | head -n 1`              # get line number in bash profile where the path is first set
line=`echo $(($line+1))`
sed -i $line'iPATH=/opt/centos/devtoolset-1.1/root/usr/bin/:$PATH' ~/.bash_profile  # add a line modifying the path
source /opt/centos/devtoolset-1.1/enable

@laverdet
Copy link
Owner

laverdet commented Dec 1, 2015

Binaries are in npm for v5.1.0

@laverdet laverdet closed this as completed Dec 1, 2015
@scriby
Copy link

scriby commented Dec 1, 2015

Thanks!

Just a heads up that some people probably want to use v4 instead of v5 because it's an LTS release. I'm not sure how much of a pain it is for you to make all the binaries, but it sure is appreciated!

@scriby
Copy link

scriby commented Dec 1, 2015

Turns out we couldn't upgrade to node v5 yet due to some other issues. I ended up publishing fibers-scriby@1.0.8 in npm which includes linux32/64 and osx64 binaries. I don't intend to maintain this long term, but it will get us by for now.

@csvan
Copy link

csvan commented Dec 6, 2015

what exactly is scaring about that? It is just indicating you need to use the proper version of node for Meteor (0.10.40). Use the right node version, and all is goodness.

It is frightening because one of the most prominent Node frameworks around is stuck on an ancient major version of Node.

@liberborn
Copy link

I installed gcc/g++ 4.9, 4.8, 4.7. Nothing helped. Downgraded from node 4.2.3 to node 0.10. And it worked then! Fibers was compiled successfully. What's interesting: fs-ext (someone mentioned in comments) is still failing.

My environment: Ubuntu 14.04 LTS. Meteor 1.2.1.

@serkandurusoy
Copy link

+1 for v4 binaries, please

@runk
Copy link

runk commented Dec 17, 2015

+1

@halley-eng
Copy link

+1
Build failed
npm ERR! Linux 3.10.0-123.8.1.el7.centos.plus.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "fibers"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! fibers@1.0.5 install: node ./build.js
npm ERR! Exit status 1

@dampier
Copy link

dampier commented Jan 27, 2016

thanks much, @benjsicam --
the GCC 4.8 install solved this for our Ubuntu 12.04 boxes, and your script accomplishes it handily. :)

Happily, Ubuntu 14.04 seems to have GCC 4.8 by default, and has no problem with fibers build & node 4.2

@georgecrawford
Copy link

Could the package maintainers (@laverdet, perhaps?) please confirm whether or not you plan to ever offer binaries for Node 4? If not, our options seem to be one of the following:

  • upgrade to Node 5
  • upgrade GCC and compile our own
  • use fibers-scriby@1.0.8

Each of these options is either impossible or undesirable for my current infrastructure (We'd prefer to stay on Node 4 for the LTS; upgrading system utils on our server isn't an option; it's clear that fibers-scriby isn't going to be supported), and I'm trying to form a long-term plan for using this wonderful package. It'd be good to have confirmation either way.

Thanks!

@AllanVieira
Copy link

Hello guys.
I use Fedora as the operating system in my development environment with Node 4.2.3, never had problems.
When I perform deploy on Ubuntu server I had a series of identical problems to those reported here.
I moved to Centos server and my problems over, follows the commands used to deploy Centos server for those who want to test:

yum -y update
yum -y groupinstall "Development Tools"
cd /usr/src
sudo wget http://nodejs.org/dist/latest-v4.x/node-v4.2.6-linux-x64.tar.gz
tar zxf node-v4.2.6-linux-x64.tar.gz
sudo mv node-v4.2.6-linux-x64 / opt
echo "export PATH = \ $ PATH: /opt/node-v4.2.6-linux-x64/bin" >> ~ / .bashrc
source ~ / .bashrc
node --version
sudo curl https://install.meteor.com/ | sh
meteor

@laverdet
Copy link
Owner

Binaries for 4 and 5 are in npm.

@georgecrawford
Copy link

😄 Thanks.

@scriby
Copy link

scriby commented Feb 12, 2016

Awesome!

@AndyHan1001
Copy link

Cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests