8000 node 22 is not supported · Issue #660 · libxmljs/libxmljs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
node 22 is not supported #660
Open
Open
@perrin4869

Description

@perrin4869

the build is failing on node 22

npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@22.1.0 | linux | x64
npm error gyp info ok
npm error In file included from /usr/include/bits/errno.h:26,
npm error                  from /usr/include/errno.h:28,
npm error                  from ../vendor/libxml2/xmlIO.c:17:
npm error /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: No such file or directory
npm error     1 | #include <asm/errno.h>
npm error       |          ^~~~~~~~~~~~~
npm error compilation terminated.
npm error In file included from /usr/include/bits/errno.h:26,
npm error                  from /usr/include/errno.h:28,
npm error                  from /home/perrin4869/.cache/node-gyp/22.1.0/include/node/uv/errno.h:25,
npm error                  from /home/perrin4869/.cache/node-gyp/22.1.0/include/node/uv.h:56,
npm error                  from ../../nan/nan.h:61,
npm error                  from ../src/libxml2.cc:9:
npm error /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: No such file or directory
npm error     1 | #include <asm/errno.h>
npm error       |          ^~~~~~~~~~~~~
npm error compilation terminated.
npm error make: *** [xmljs.target.mk:173: Release/obj.target/xmljs/vendor/libxml2/xmlIO.o] Error 1
npm error make: *** Waiting for unfinished jobs....
npm error In file included from /usr/include/bits/errno.h:26,
npm error                  from /usr/include/errno.h:28,
npm error                  from /home/perrin4869/.cache/node-gyp/22.1.0/include/node/uv/errno.h:25,
npm error                  from /home/perrin4869/.cache/node-gyp/22.1.0/include/node/uv.h:56,
npm error                  from ../../nan/nan.h:61,
npm error                  from ../src/xml_sax_parser.cc:3:
npm error /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: No such file or directory
npm error     1 | #include <asm/errno.h>
npm error       |          ^~~~~~~~~~~~~
npm error compilation terminated.
npm error make: *** [xmljs.target.mk:176: Release/obj.target/xmljs/src/libxml2.o] Error 1
npm error make: *** [xmljs.target.mk:176: Release/obj.target/xmljs/src/xml_sax_parser.o] Error 1
npm error ../vendor/libxml2/encoding.c: In function ‘xmlEncodingErrMemory’:
npm error ../vendor/libxml2/encoding.c:86:5: warning: too many arguments for format [-Wformat-extra-args]
npm error    86 |     __xmlSimpleError(XML_FROM_I18N, XML_ERR_NO_MEMORY, NULL, NULL, extra);
npm error       |     ^~~~~~~~~~~~~~~~
npm error ../vendor/libxml2/entities.c: In function ‘xmlEntitiesErrMemory’:
npm error ../vendor/libxml2/entities.c:81:5: warning: too many arguments for format [-Wformat-extra-args]
npm error    81 |     __xmlSimpleError(XML_FROM_TREE, XML_ERR_NO_MEMORY, NULL, NULL, extra);
npm error       |     ^~~~~~~~~~~~~~~~
npm error ../vendor/libxml2/buf.c: In function ‘xmlBufMemoryError’:
npm error ../vendor/libxml2/buf.c:94:5: warning: too many arguments for format [-Wformat-extra-args]
npm error    94 |     __xmlSimpleError(XML_FROM_BUFFER, XML_ERR_NO_MEMORY, NULL, NULL, extra);
npm error       |     ^~~~~~~~~~~~~~~~
npm error ../vendor/libxml2/buf.c: In function ‘xmlBufOverflowError’:
npm error ../vendor/libxml2/buf.c:109:5: warning: too many arguments for format [-Wformat-extra-args]
npm error   109 |     __xmlSimpleError(XML_FROM_BUFFER, XML_BUF_OVERFLOW, NULL, NULL, extra);
npm error       |     ^~~~~~~~~~~~~~~~
npm error ../vendor/libxml2/tree.c: In function ‘xmlTreeErrMemory’:
npm error ../vendor/libxml2/HTMLtree.c: In function ‘htmlSaveErrMemory’:
npm error ../vendor/libxml2/HTMLtree.c:355:5: warning: too many arguments for format [-Wformat-extra-args]
npm error   355 |     __xmlSimpleError(XML_FROM_OUTPUT, XML_ERR_NO_MEMORY, NULL, NULL, extra);
npm error       |     ^~~~~~~~~~~~~~~~
npm error ../vendor/libxml2/tree.c:80:5: warning: too many arguments for format [-Wformat-extra-args]
npm error    80 |     __xmlSimpleError(XML_FROM_TREE, XML_ERR_NO_MEMORY, NULL, NULL, extra);
npm error       |     ^~~~~~~~~~~~~~~~
npm error ../vendor/libxml2/threads.c: In function ‘xmlInitThreads’:
npm error ../vendor/libxml2/threads.c:875:28: warning: the comparison will always evaluate as ‘true’ for the address of ‘pthread_equal’ will never be NULL [-Waddress]
npm error   875 |             (pthread_equal != NULL) &&
npm error       |                            ^~
npm error In file included from /usr/include/features.h:503,
npm error                  from /usr/include/bits/libc-header-start.h:33,
npm error                  from /usr/include/stdio.h:28,
npm error                  from ../vendor/libxml2/libxml.h:51,
npm error                  from ../vendor/libxml2/threads.c:11:
npm error /usr/include/pthread.h:1340:1: note: ‘pthread_equal’ declared here
npm error  1340 | __NTH (pthread_equal (pthread_t __thread1, pthread_t __thread2))
npm error       | ^~~~~
npm error ../vendor/libxml2/encoding.c: In function ‘xmlCharEncCloseFunc’:
npm error ../vendor/libxml2/encoding.c:2780:12: warning: variable ‘handler_in_list’ set but not used [-Wunused-but-set-variable]
npm error  2780 |     int i, handler_in_list = 0;
npm error       |            ^~~~~~~~~~~~~~~
npm error ../vendor/libxml2/tree.c: In function ‘xmlDOMWrapCloneNode’:
npm error ../vendor/libxml2/tree.c:9550:26: warning: array subscript ‘xmlNode {aka struct _xmlNode}[0]’ is partly outside array bounds of ‘unsigned char[96]’ [-Warray-bounds=]
npm error  9550 |                     clone->parent = parentClone;
npm error       |                          ^~
npm error ../vendor/libxml2/tree.c:9539:38: note: object of size 96 allocated by ‘xmlMalloc’
npm error  9539 |                 clone = (xmlNodePtr) xmlMalloc(sizeof(xmlAttr));
npm error       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../vendor/libxml2/tree.c:9553:30: warning: array subscript ‘xmlNode {aka struct _xmlNode}[0]’ is partly outside array bounds of ‘unsigned char[96]’ [-Warray-bounds=]
npm error  9553 |                         clone->prev = prevClone;
npm error       |                              ^~
npm error ../vendor/libxml2/tree.c:9539:38: note: object of size 96 allocated by ‘xmlMalloc’
npm error  9539 |                 clone = (xmlNodePtr) xmlMalloc(sizeof(xmlAttr));
npm error       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
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/perrin4869/.nvm/versions/node/v22.1.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Linux 6.9.0
npm error gyp ERR! command "/home/perrin4869/.nvm/versions/node/v22.1.0/bin/node" "/home/perrin4869/.nvm/versions/node/v22.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--loglevel=http" "--jobs=max" "--module=/home/perrin4869/tmp/node_modules/libxmljs/build/Release/xmljs.node" "--module_name=xmljs" "--module_path=/home/perrin4869/tmp/node_modules/libxmljs/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v127"
npm error gyp ERR! cwd /home/perrin4869/tmp/node_modules/libxmljs
npm error gyp ERR! node -v v22.1.0
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error node-pre-gyp ERR! build error
npm error node-pre-gyp ERR! stack Error: Failed to execute '/home/perrin4869/.nvm/versions/node/v22.1.0/bin/node /home/perrin4869/.nvm/versions/node/v22.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --loglevel=http --jobs=max --module=/home/perrin4869/tmp/node_modules/libxmljs/build/Release/xmljs.node --module_name=xmljs --module_path=/home/perrin4869/tmp/node_modules/libxmljs/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)
npm error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/perrin4869/tmp/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm error node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
npm error node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1105:16)
npm error node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm error node-pre-gyp ERR! System Linux 6.9.0
npm error node-pre-gyp ERR! command "/home/perrin4869/.nvm/versions/node/v22.1.0/bin/node" "/home/perrin4869/tmp/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http" "-j" "max"
npm error node-pre-gyp ERR! cwd /home/perrin4869/tmp/node_modules/libxmljs
npm error node-pre-gyp ERR! node -v v22.1.0
npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm error node-pre-gyp ERR! not ok

npm error A complete log of this run can be found in: /home/perrin4869/.npm/_logs/2024-05-15T12_20_50_083Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0