andruschka / pm2-meteor

Simplest way to deploy, scale and run Meteor Apps with PM2.
https://www.npmjs.com/package/pm2-meteor
160 stars 38 forks source link

node-gyp is unable to build fibers #53

Open demiters opened 7 years ago

demiters commented 7 years ago

I have installed the latest node, npm and node-gyp and g++ globally on my CentOS 6.8 server.

After deployment pm2 app status on the server shows:

┌──────────────────┬────┬─────────┬─────┬─────────┬─────────┬────────┬─────┬────────┬──────────┐                                                                                                                                 
│ App name         │ id │ mode    │ pid │ status  │ restart │ uptime │ cpu │ mem    │ watching │                                                                                                                                 
├──────────────────┼────┼─────────┼─────┼─────────┼─────────┼────────┼─────┼────────┼──────────┤                                                                                                                                                                                                                                                                  
│ dealhunt-staging │ 0  │ cluster │ 0   │ errored │ 90      │ 0      │ 0%  │ 0 B    │ disabled │                                                                                                                                 
└──────────────────┴────┴─────────┴─────┴─────────┴─────────┴────────┴─────┴────────┴──────────┘

and the logs of the app show:

0|dealhunt | ## There is an issue with `node-fibers` ##
0|dealhunt | `/srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers/bin/linux-x64-51/fibers.node` is missing.
0|dealhunt | 
0|dealhunt | Try running this to fix the issue: /usr/bin/node /srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers/build

So then I go to /srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers and run node-gyp configure as recommended here: https://github.com/nodejs/node-gyp/issues/94

Output of that:

gyp info it worked if it ends with ok
gyp info using node-gyp@3.5.0
gyp info using node@7.4.0 | linux | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/dhunt/.node-gyp/7.4.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/dhunt/.node-gyp/7.4.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok

Then I run the command that was suggested earlier: /usr/bin/node /srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers/build and get:

[dhunt@ext1 .nvm]$ cd /srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers                 
[dhunt@ext1 fibers]$ node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@3.5.0
gyp info using node@7.4.0 | linux | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/dhunt/.node-gyp/7.4.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/dhunt/.node-gyp/7.4.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok 
[dhunt@ext1 fibers]$ /usr/bin/node /srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers/build
gyp info it worked if it ends with ok
gyp info using node-gyp@3.5.0
gyp info using node@7.4.0 | linux | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/dhunt/.node-gyp/7.4.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/dhunt/.node-gyp/7.4.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers/build'
  CXX(target) Release/obj.target/fibers/src/fibers.o
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:83,
                 from /home/dhunt/.node-gyp/7.4.0/include/node/v8.h:21,
                 from /home/dhunt/.node-gyp/7.4.0/include/node/node.h:42,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In constructor ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In function ‘_Del* std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti
In file included from /home/dhunt/.node-gyp/7.4.0/include/node/node.h:42,
                 from ../src/coroutine.h:1,
                 from ../src/fibers.cc:1:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: At global scope:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:346: error: expected unqualified-id before ‘using’
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:363: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:370: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:374: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:442: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:787: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:812: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:824: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: At global scope:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:849: error: expected unqualified-id before ‘using’
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:1086: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:1092: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In constructor ‘v8::RegisterState::RegisterState()’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:1621: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:3295: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: At global scope:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:4526: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:4551: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In constructor ‘v8::Isolate::CreateParams::CreateParams()’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:5596: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: At global scope:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:6787: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:6804: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:6896: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:6897: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:7233: error: ‘nullptr’ was not declared in this scope
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’:
/home/dhunt/.node-gyp/7.4.0/include/node/v8.h:7804: error: ‘nullptr’ was not declared in this scope
../src/fibers.cc: At global scope:
../src/fibers.cc:70: error: ‘Handle’ has not been declared
../src/fibers.cc:70: 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:71: error: ‘handle’ was not declared in this scope
../src/fibers.cc: At global scope:
../src/fibers.cc:83: error: variable or field ‘SetInternalPointer’ declared void
../src/fibers.cc:83: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:83: error: expected primary-expression before ‘>’ token
../src/fibers.cc:83: error: ‘handle’ was not declared in this scope
../src/fibers.cc:83: error: expected primary-expression before ‘int’
../src/fibers.cc:83: error: expected primary-expression before ‘void’
../src/fibers.cc:87: error: template declaration of ‘void* uni::GetInternalPointer’
../src/fibers.cc:87: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:87: error: expected primary-expression before ‘>’ token
../src/fibers.cc:87: error: ‘handle’ was not declared in this scope
../src/fibers.cc:87: error: expected primary-expression before ‘int’
../src/fibers.cc:92: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:97: error: variable or field ‘Return’ declared void
../src/fibers.cc:97: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:97: error: expected primary-expression before ‘>’ token
../src/fibers.cc:97: error: ‘handle’ was not declared in this scope
../src/fibers.cc:97: error: expected primary-expression before ‘const’
../src/fibers.cc:101: error: variable or field ‘Return’ declared void
../src/fibers.cc:101: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:101: error: expected primary-expression before ‘>’ token
../src/fibers.cc:101: error: ‘handle’ was not declared in this scope
../src/fibers.cc:101: error: expected primary-expression before ‘info’
../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:121: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:125: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:129: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:133: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:137: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:147: error: expected constructor, destructor, or type conversion before ‘<’ token
../src/fibers.cc:319: error: expected ‘;’ before ‘(’ token
../src/fibers.cc:325: error: expected ‘;’ before ‘Fiber’
../src/fibers.cc:325: error: expected ‘)’ before ‘<’ token
../src/fibers.cc:591: error: ISO C++ forbids declaration of ‘Handle’ with no type
../src/fibers.cc:591: error: expected ‘;’ before ‘<’ token
../src/fibers.cc:829: error: expected ‘;’ at end of input
../src/fibers.cc:829: error: expected ‘}’ at end of input
../src/fibers.cc: In static member function ‘static void Fiber::DestroyOrphans()’:
../src/fibers.cc:406: 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:428: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:428: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:428: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:430: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:430: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:430: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:432: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:432: error: expected primary-expression before ‘>’ token
../src/fibers.cc:432: error: ‘argv’ was not declared in this scope
../src/fibers.cc:433: error: ‘Deref’ is not a member of ‘uni’
../src/fibers.cc:433: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:436: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:436: error: expected primary-expression before ‘>’ token
../src/fibers.cc:436: error: ‘fn’ was not declared in this scope
../src/fibers.cc:436: error: expected primary-expression before ‘>’ token
../src/fibers.cc:436: error: ‘::Cast’ has not been declared
../src/fibers.cc:437: error: ‘GetCurrentContext’ is not a member of ‘uni’
../src/fibers.cc:438: error: no matching function for call to ‘Return(v8::Local<v8::Object>, const v8::FunctionCallbackInfo<v8::Value>&)’
../src/fibers.cc:438: 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:446: error: ‘Unwrap’ was not declared in this scope
../src/fibers.cc:452: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:452: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:452: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:454: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:454: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:454: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:462: error: ‘RunFiber’ was not declared in this scope
../src/fibers.cc:465: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:465: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:465: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:475: 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:477: error: ‘Undefined’ is not a member of ‘uni’
../src/fibers.cc:481: error: ‘class Fiber’ has no member named ‘ReturnYielded’
../src/fibers.cc:481: 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:488: error: ‘Unwrap’ was not declared in this scope
../src/fibers.cc:491: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:491: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:491: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:493: error: ‘Undefined’ is not a member of ‘uni’
../src/fibers.cc:495: 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:497: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:497: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:497: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:501: error: ‘class Fiber’ has no member named ‘ReturnYielded’
../src/fibers.cc:501: 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:509: error: ‘Unwrap’ was not declared in this scope
../src/fibers.cc:512: error: ‘Undefined’ is not a member of ‘uni’
../src/fibers.cc:512: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:514: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:514: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:514: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:516: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:516: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:516: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:524: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:524: error: expected primary-expression before ‘>’ token
../src/fibers.cc:524: error: ‘val’ was not declared in this scope
../src/fibers.cc:524: error: ‘Deref’ is not a member of ‘uni’
../src/fibers.cc:527: error: ‘ThrowException’ is not a member of ‘uni’
../src/fibers.cc:527: error: return-statement with a value, in function returning 'void'
../src/fibers.cc:529: error: return-statement with a value, in function returning 'void'
../src/fibers.cc: In member function ‘void Fiber::UnwindStack()’:
../src/fibers.cc:546: error: ‘Handle’ was not declared in this scope
../src/fibers.cc:546: error: expected primary-expression before ‘>’ token
../src/fibers.cc:546: error: ‘NewLatin1String’ is not a member of ‘uni’
../src/fibers.cc:547: 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:548: 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:561: error: ‘Undefined’ is not a member of ‘uni’
../src/fibers.cc: At global scope:
../src/fibers.cc:586: error: expected unqualified-id at end of input
make: *** [Release/obj.target/fibers/src/fibers.o] Error 1
make: Leaving directory `/srv/www/dealhunt.com/public_html/dealhunt-staging/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 (/usr/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.6.5-x86_64-linode71
gyp ERR! command "/home/dhunt/.nvm/versions/node/v7.4.0/bin/node" "/usr/bin/node-gyp" "rebuild" "--release"
gyp ERR! cwd /srv/www/dealhunt.com/public_html/dealhunt-staging/bundle/programs/server/node_modules/fibers
gyp ERR! node -v v7.4.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok 
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
Alpine users please run: `sudo apk add python make g++

Honestly I'm not sure I've taken the right approach here, I was used to the way mup made deployment effortless. Any help would be appreciated.

richardwlu commented 7 years ago

@demiters I am having this very issue right now. Did you find out a solution?

yanickrochon commented 6 years ago

Is there any solution for this? I have read many threads, tried many things, but nothing works.

luzlab commented 6 years ago

The problem might be that your using a different node version on your host or target than is being used by meteor. I always make sure that node -v and meteor node -v are the same and that's eliminated all the gremlins that were plaguing building native modules (fibers, kafka, etc).