Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

node-gyp@9.3.0 thows error while installing libxslt

Abierto
#3,096 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
node.js, python

Línea de trabajo

Reproduce la instalación de libxslt con Node.js 22.3.0 y Python 3.8.10 y, a continuación, inspecciona la compilación nativa invocada mediante binding.gyp y node_modules/node-gyp/gyp/gyp_main.py. El informe termina antes del error final del compilador, así que primero captura el fallo completo; el trabajo está terminado cuando el paquete libxslt se instala correctamente en la configuración Linux x64 indicada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Linux nodejs/nan
npm error code 1
npm error path /media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt
npm error command failed
npm error command sh -c node-gyp rebuild
npm error make: Entering directory '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt/build'
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/common.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/crypto.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/date.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/dynamic.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/exslt.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/functions.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/math.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/saxon.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/sets.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/strings.o
npm error rm -f Release/obj.target/deps/exslt.a Release/obj.target/deps/exslt.a.ar-file-list; mkdir -p `dirname Release/obj.target/deps/exslt.a`
npm error ar crs Release/obj.target/deps/exslt.a @Release/obj.target/deps/exslt.a.ar-file-list
npm error   COPY Release/exslt.a
npm error   TOUCH Release/obj.target/node_modules/node1-libxmljsmt-myh/all-settings.stamp
npm error   CXX(target) Release/obj.target/xmljs-myh/node_modules/node1-libxmljsmt-myh/src/libxmljs.o
npm error make: Leaving directory '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@9.3.0
npm error gyp info using node@22.3.0 | linux | x64
npm error (node:22664) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error gyp info find Python using Python version 3.8.10 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   '/media/anubhav/data/lb4App/lb4InteliMigrate/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   '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt/build/config.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt/common.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/home/anubhav/.cache/node-gyp/22.3.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/anubhav/.cache/node-gyp/22.3.0',
npm error gyp info spawn args   '-Dnode_gyp_dir=/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/node-gyp',
npm error gyp info spawn args   '-Dnode_lib_file=/home/anubhav/.cache/node-gyp/22.3.0/<(target_arch)/node.lib',
npm error gyp info spawn args   '-Dmodule_root_dir=/media/anubhav/data/lb4App/lb4InteliMigrate/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 ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/common.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/common.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/crypto.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/crypto.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/date.c:23:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/date.c:23:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/dynamic.c:24:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/dynamic.c:24:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/exslt.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/exslt.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/functions.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/functions.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error ../deps/libxslt/libexslt/functions.c: In function ‘exsltFuncStyleShutdown’:
npm error ../deps/libxslt/libexslt/functions.c:224:23: warning: cast between incompatible function types from ‘xmlFreeFunc’ {aka ‘void (*)(void *)’} to ‘void (*)(void *, xmlChar *)’ {aka ‘void (*)(void *, unsigned char *)’} [-Wcast-function-type]
npm error   224 |     xmlHashFree(data, (xmlHashDeallocator) xmlFree);
npm error       |                       ^
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/math.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/math.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/saxon.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/saxon.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error ../deps/libxslt/libexslt/saxon.c: In function ‘exsltSaxonShutdown’:
npm error ../deps/libxslt/libexslt/saxon.c:50:23: warning: cast between incompatible function types from ‘void (*)(xmlXPathCompExpr *)’ {aka ‘void (*)(struct _xmlXPathCompExpr *)’} to ‘void (*)(void *, xmlChar *)’ {aka ‘void (*)(void *, unsigned char *)’} [-Wcast-function-type]
npm error    50 |     xmlHashFree(data, (xmlHashDeallocator) xmlXPathFreeCompExpr);
npm error       |                       ^
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/sets.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/sets.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/strings.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/strings.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-array-buffer.h:12,
npm error                  from /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8.h:24,
npm error                  from ../node_modules/node1-libxmljsmt-myh/src/libxmljs.cc:3:
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-local-handle.h:401:30: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
npm error   401 |   V8_INLINE explicit Local<T>(const LocalBase<T>& other)
npm error       |                              ^
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-local-handle.h:401:30: note: remove the ‘< >’
npm error In file included from ../node_modules/node1-libxmljsmt-myh/node_modules/nan/nan.h:178,
npm error                  from ../node_modules/node1-libxmljsmt-myh/src/libxmljs.h:7,
npm error                  from ../node_modules/node1-libxmljsmt-myh/src/libxmljs.cc:7:
npm error ../node_modules/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 ../node_modules/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 ../node_modules/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 ../node_modules/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/anubhav/.cache/node-gyp/22.3.0/include/node/v8-function.h:15,
npm error                  from /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8.h:33:
npm error /home/anubhav/.cache/node-gyp/22.3.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/anubhav/.cache/node-gyp/22.3.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/anubhav/.cache/node-gyp/22.3.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/anubhav/.cache/node-gyp/22.3.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 /home/anubhav/.cache/node-gyp/22.3.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 ../node_modules/node1-libxmljsmt-myh/node_modules/nan/nan_callbacks_12_inl.h:175:53:   required from here
npm error   175 |       cbinfo(info, obj->GetInternalField(kDataIndex));
npm error       |                                                     ^
npm error /home/anubhav/.cache/node-gyp/22.3.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/anubhav/.cache/node-gyp/22.3.0/include/node/v8-local-handle.h:269:42: note: ‘std::integral_constant<bool, false>::value’ evaluates to false
npm error make: *** [node_modules/node1-libxmljsmt-myh/xmljs-myh.target.mk:182: Release/obj.target/xmljs-myh/node_modules/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.onExit (/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/node-gyp/lib/build.js:203:23)
npm error gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
npm error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Linux 5.15.0-126-generic
npm error gyp ERR! command "/home/anubhav/.nvm/versions/node/v22.3.0/bin/node" "/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt
npm error gyp ERR! node -v v22.3.0
npm error gyp ERR! node-gyp -v v9.3.0
npm error gyp ERR! not ok
Lenguaje dominante
Python
Estrellas
10.7k
Forks
1.9k
Merge medio
1 d 4 h
PR fusionados (30 d)
5

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nodejs/node-gyp

Todos los issues de nodejs/node-gyp

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.