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

Compiler error when installing on ubuntu on Raspberry Pi #104

Open
kurmasz opened this issue May 20, 2024 · 2 comments
Open

Compiler error when installing on ubuntu on Raspberry Pi #104

kurmasz opened this issue May 20, 2024 · 2 comments

Comments

@kurmasz
Copy link

kurmasz commented May 20, 2024

When I attempt to install this node module on a Raspberry Pi 3 running Ubuntu, I get the following error:

npm error ../../node1-libxmljsmt-myh/node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’

Full details:

foo@ubuntu:~/test$ npm install libxslt
npm error code 1
npm error path /home/kurmasz/test/node_modules/libxslt
npm error command failed
npm error command sh -c node-gyp rebuild
npm error make: Entering directory '/home/kurmasz/test/node_modules/libxslt/build'
npm error   TOUCH Release/obj.target/../node1-libxmljsmt-myh/all-settings.stamp
npm error   CXX(target) Release/obj.target/xmljs-myh/../node1-libxmljsmt-myh/src/libxmljs.o
npm error make: Leaving directory '/home/kurmasz/test/node_modules/libxslt/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | linux | arm64
npm error gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/home/kurmasz/.nvm/versions/node/v22.2.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/kurmasz/test/node_modules/libxslt/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/kurmasz/test/node_modules/libxslt/common.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/kurmasz/.nvm/versions/node/v22.2.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/kurmasz/.cache/node-gyp/22.2.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/home/kurmasz/.cache/node-gyp/22.2.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/home/kurmasz/.nvm/versions/node/v22.2.0/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/home/kurmasz/.cache/node-gyp/22.2.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/home/kurmasz/test/node_modules/libxslt',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../../node1-libxmljsmt-myh/node_modules/nan/nan.h:178,
npm error                  from ../../node1-libxmljsmt-myh/src/libxmljs.h:7,
npm error                  from ../../node1-libxmljsmt-myh/src/libxmljs.cc:7:
npm error ../../node1-libxmljsmt-myh/node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
npm error    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm error       |                       ^~~~~~~~~~~~~~~~~
npm error ../../node1-libxmljsmt-myh/node_modules/nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
npm error    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm error       |                                        ^
npm error ../../node1-libxmljsmt-myh/node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, imp::Sig)’:
npm error ../../node1-libxmljsmt-myh/node_modules/nan/nan.h:2544:19: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’
npm error  2544 |   tpl->SetAccessor(
npm error       |   ~~~~~~~~~~~~~~~~^
npm error  2545 |       name
npm error       |       ~~~~         
npm error  2546 |     , getter_
npm error       |     ~~~~~~~~~      
npm error  2547 |     , setter_
npm error       |     ~~~~~~~~~      
npm error  2548 |     , obj
npm error       |     ~~~~~          
npm error  2549 |     , settings
npm error       |     ~~~~~~~~~~     
npm error  2550 |     , attribute
npm error       |     ~~~~~~~~~~~    
npm error  2551 |     , signature);
npm error       |     ~~~~~~~~~~~~   
npm error In file included from /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8-function.h:15,
npm error                  from /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8.h:33,
npm error                  from ../../node1-libxmljsmt-myh/src/libxmljs.cc:3:
npm error /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8-template.h:1049:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
npm error  1049 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8-template.h:1052:61: note:   no known conversion for argument 5 from ‘v8::AccessControl’ to ‘v8::PropertyAttribute’
npm error  1052 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8-template.h:1055:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
npm error  1055 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8-template.h:1058:61: note:   no known conversion for argument 5 from ‘v8::AccessControl’ to ‘v8::PropertyAttribute’
npm error  1058 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error In file included from /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8-array-buffer.h:12,
npm error                  from /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8.h:24:
npm error /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8-local-handle.h: In instantiation of ‘v8::Local<T>::Local(v8::Local<S>) [with S = v8::Data; T = v8::Value]’:
npm error ../../node1-libxmljsmt-myh/node_modules/nan/nan_callbacks_12_inl.h:175:53:   required from here
npm error /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8-local-handle.h:269:42: error: static assertion failed: type check
npm error   269 |     static_assert(std::is_base_of<T, S>::value, "type check");
npm error       |                                          ^~~~~
npm error /home/kurmasz/.cache/node-gyp/22.2.0/include/node/v8-local-handle.h:269:42: note: ‘std::integral_constant<bool, false>::value’ evaluates to false
npm error make: *** [../node1-libxmljsmt-myh/xmljs-myh.target.mk:180: Release/obj.target/xmljs-myh/../node1-libxmljsmt-myh/src/libxmljs.o] Error 1
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/home/kurmasz/.nvm/versions/node/v22.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Linux 6.8.0-1004-raspi
npm error gyp ERR! command "/home/kurmasz/.nvm/versions/node/v22.2.0/bin/node" "/home/kurmasz/.nvm/versions/node/v22.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /home/kurmasz/test/node_modules/libxslt
npm error gyp ERR! node -v v22.2.0
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok

npm error A complete log of this run can be found in: /home/kurmasz/.npm/_logs/2024-05-20T20_04_13_710Z-debug-0.log
@r104685
Copy link

r104685 commented Aug 22, 2024

@kurmasz were you able to get this resolved? and what node version are you using?

@kurmasz
Copy link
Author

kurmasz commented Aug 22, 2024

I was not able to get it resolved. I didn't have spare time, so I moved to a different platform.
I don't remember what node version I chose, but from the log above, it looks like 22.2.0.

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

2 participants