==> Synchronizing chroot copy [/home/alhp/workspace/chroot/root] -> [build_8f151312-0017-410f-9b53-679165c73b6f]...done ==> Making package: code 1.101.2-1.1 (Mon Jun 30 09:05:12 2025) ==> Retrieving sources... -> Cloning vscode git repo... Cloning into bare repository '/home/alhp/workspace/build/x86-64-v4/code-1.101.2-1/vscode'... -> Found code.mjs -> Found code.sh -> Found product_json.diff -> Found clipath.patch -> Downloading 0009-openvsx-extension-signature.patch... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1926 100 1926 0 0 6021 0 --:--:-- --:--:-- --:--:-- 6021 ==> Validating source files with sha512sums... vscode ... Passed code.mjs ... Passed code.sh ... Passed product_json.diff ... Passed clipath.patch ... Passed 0009-openvsx-extension-signature.patch ... Passed ==> Making package: code 1.101.2-1.1 (Mon Jun 30 07:08:48 2025) ==> Checking runtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... warning: dependency cycle detected: warning: harfbuzz will be installed before its freetype2 dependency warning: dependency cycle detected: warning: mesa will be installed before its libglvnd dependency Package (98) New Version Net Change extra/adwaita-cursors 48.1-1 11.41 MiB extra/adwaita-fonts 49.0-2 7.22 MiB extra/adwaita-icon-theme 48.1-1 1.15 MiB extra/adwaita-icon-theme-legacy 46.2-3 2.23 MiB extra/alsa-lib 1.2.14-1 1.68 MiB extra/alsa-topology-conf 1.2.5.1-4 0.33 MiB extra/alsa-ucm-conf 1.2.14-2 0.54 MiB extra/at-spi2-core 2.56.3-1 3.96 MiB extra/avahi 1:0.8+r194+g3f79789-3 1.88 MiB extra/c-ares 1.34.5-1 0.51 MiB extra/cairo 1.18.4-1 1.59 MiB extra/dav1d 1.5.1-1 1.77 MiB extra/dconf 0.40.0-3 0.45 MiB extra/default-cursors 3-1 0.00 MiB extra/desktop-file-utils 0.28-1 0.18 MiB extra/duktape 2.7.0-7 0.78 MiB extra/flac 1.5.0-1 1.14 MiB extra/fontconfig 2:2.17.0-2 1.12 MiB extra/freetype2 2.13.3-3 1.62 MiB extra/fribidi 1.0.16-2 0.24 MiB extra/gdk-pixbuf2 2.42.12-2 2.99 MiB extra/glib-networking 1:2.80.1-1 0.65 MiB extra/graphite 1:1.3.14-4 0.20 MiB extra/gsettings-desktop-schemas 48.0-1 5.39 MiB extra/gsettings-system-schemas 48.0-1 0.01 MiB extra/gtk-update-icon-cache 1:4.18.6-1 0.04 MiB extra/gtk3 1:3.24.49-2 53.14 MiB extra/harfbuzz 11.2.1-1 4.22 MiB extra/hicolor-icon-theme 0.18-1 0.05 MiB extra/iso-codes 4.18.0-1 21.40 MiB extra/jbigkit 2.1-8 0.16 MiB extra/json-glib 1.10.6-1 1.01 MiB extra/lame 3.100-5 1.17 MiB extra/lcms2 2.17-1 0.67 MiB extra/libasyncns 1:0.8+r3+g68cd5af-3 0.05 MiB extra/libcloudproviders 0.3.6-2 0.47 MiB extra/libcolord 1.4.8-1 1.24 MiB extra/libcups 2:2.4.12-2 0.77 MiB extra/libdaemon 0.14-6 0.06 MiB extra/libdatrie 0.2.13-4 0.48 MiB extra/libdrm 2.4.125-1 1.26 MiB core/libedit 20250104_3.1-1 0.26 MiB extra/libepoxy 1.5.10-3 2.64 MiB extra/libglvnd 1.7.0-3 3.34 MiB extra/libjpeg-turbo 3.1.1-1 2.41 MiB extra/libogg 1.3.5-2 0.44 MiB extra/libpciaccess 0.18.1-2 0.06 MiB extra/libpng 1.6.49-1 0.57 MiB extra/libproxy 0.5.10-1 0.10 MiB extra/libpulse 17.0+r43+g3e2bb8a1e-1 1.46 MiB extra/librsvg 2:2.60.0-2 10.65 MiB extra/libsndfile 1.2.2-3 1.03 MiB extra/libsoup3 3.6.5-1 1.95 MiB extra/libstemmer 3.0.1-1 0.60 MiB extra/libthai 0.1.29-3 1.22 MiB extra/libtiff 4.7.0-1 1.78 MiB extra/libvorbis 1.3.7-4 0.83 MiB extra/libxau 1.0.12-1 0.02 MiB extra/libxcb 1.17.0-1 3.87 MiB extra/libxcomposite 0.4.6-2 0.02 MiB extra/libxcursor 1.2.3-1 0.07 MiB extra/libxdamage 1.1.6-2 0.02 MiB extra/libxdmcp 1.1.5-1 0.13 MiB extra/libxext 1.3.6-1 0.30 MiB extra/libxfixes 6.0.1-2 0.04 MiB extra/libxft 2.3.9-1 0.13 MiB extra/libxi 1.8.2-1 0.48 MiB extra/libxinerama 1.1.5-2 0.02 MiB extra/libxkbcommon 1.10.0-1 0.90 MiB extra/libxrandr 1.5.4-1 0.07 MiB extra/libxrender 0.9.12-1 0.09 MiB extra/libxshmfence 1.3.3-1 0.02 MiB extra/libxslt 1.1.43-2 0.78 MiB extra/libxtst 1.2.5-1 0.11 MiB extra/libxxf86vm 1.1.6-1 0.03 MiB extra/llvm-libs 20.1.6-3 150.00 MiB extra/lm_sensors 1:3.6.2-1 0.48 MiB core/lzo 2.10-5 0.38 MiB extra/mesa 1:25.1.4-1 40.77 MiB core/minizip 1:1.3.1-2 0.08 MiB extra/mpg123 1.33.0-1 1.17 MiB core/nspr 4.36-1 0.71 MiB core/nss 3.113-1 5.13 MiB extra/opus 1.5.2-1 5.30 MiB extra/pango 1:1.56.4-1 2.32 MiB extra/pixman 0.46.2-1 0.74 MiB extra/shared-mime-info 2.4-2 4.57 MiB extra/spirv-tools 1:1.4.313.0-1 7.22 MiB extra/tinysparql 3.9.2-2 3.83 MiB extra/wayland 1.23.1-2 0.80 MiB extra/xcb-proto 1.17.0-3 1.02 MiB extra/xkeyboard-config 2.45-1 10.16 MiB extra/xorg-xprop 1.2.8-1 0.05 MiB extra/xorgproto 2024.1-2 1.46 MiB extra/electron35 35.6.0-1 270.00 MiB extra/libx11 1.8.12-1 9.78 MiB extra/libxkbfile 1.1.3-1 0.20 MiB extra/ripgrep 14.1.1-1 5.03 MiB Total Installed Size: 692.88 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing c-ares... installing adwaita-fonts... installing hicolor-icon-theme... installing adwaita-icon-theme-legacy... installing adwaita-cursors... installing adwaita-icon-theme... installing dconf... installing gsettings-system-schemas... installing gsettings-desktop-schemas... installing xcb-proto... installing xorgproto... installing libxdmcp... installing libxau... installing libxcb... installing libx11... installing libxext... installing libxfixes... installing libxi... installing libxtst... installing xorg-xprop... installing at-spi2-core... installing libpng... installing graphite... Optional dependencies for graphite graphite-docs: Documentation installing harfbuzz... Optional dependencies for harfbuzz harfbuzz-utils: utilities installing freetype2... installing fontconfig... Creating fontconfig configuration... Rebuilding fontconfig cache... installing libxrender... installing lzo... installing pixman... installing cairo... installing desktop-file-utils... installing fribidi... installing libjpeg-turbo... Optional dependencies for libjpeg-turbo java-runtime>11: for TurboJPEG Java wrapper installing jbigkit... installing libtiff... Optional dependencies for libtiff freeglut: for using tiffgt installing shared-mime-info... installing gdk-pixbuf2... Optional dependencies for gdk-pixbuf2 libwmf: Load .wmf and .apm libopenraw: Load .dng, .cr2, .crw, .nef, .orf, .pef, .arw, .erf, .mrw, and .raf libavif: Load .avif libheif: Load .heif, .heic, and .avif libjxl: Load .jxl librsvg: Load .svg, .svgz, and .svg.gz [pending] webp-pixbuf-loader: Load .webp installing iso-codes... installing libcloudproviders... installing lcms2... installing libcolord... installing libdaemon... installing avahi... Optional dependencies for avahi gtk3: avahi-discover, avahi-discover-standalone, bshell, bssh, bvnc [pending] libevent: libevent bindings [installed] nss-mdns: NSS support for mDNS python-dbus: avahi-bookmarks, avahi-discover python-gobject: avahi-bookmarks, avahi-discover python-twisted: avahi-bookmarks qt5-base: qt5 bindings installing libcups... installing libpciaccess... installing libdrm... Optional dependencies for libdrm cairo: needed for modetest tool [installed] installing libxshmfence... installing libxxf86vm... installing libedit... installing llvm-libs... installing lm_sensors... Optional dependencies for lm_sensors rrdtool: for logging with sensord perl: for sensor detection and configuration convert [installed] installing spirv-tools... installing default-cursors... Optional dependencies for default-cursors adwaita-cursors: default cursor theme [installed] installing wayland... installing mesa... Optional dependencies for mesa opengl-man-pages: for the OpenGL API man pages installing libglvnd... installing libepoxy... installing dav1d... Optional dependencies for dav1d dav1d-doc: HTML documentation installing libdatrie... installing libthai... installing libxft... installing pango... installing librsvg... installing libxcomposite... installing libxcursor... installing libxdamage... installing libxinerama... installing xkeyboard-config... installing libxkbcommon... Optional dependencies for libxkbcommon libxkbcommon-x11: xkbcli interactive-x11 wayland: xkbcli interactive-wayland [installed] installing libxrandr... installing json-glib... installing duktape... installing libproxy... installing glib-networking... installing libsoup3... Optional dependencies for libsoup3 samba: Windows Domain SSO installing libstemmer... installing tinysparql... installing gtk-update-icon-cache... installing gtk3... Optional dependencies for gtk3 evince: Default print preview command installing libasyncns... installing libogg... installing flac... installing lame... installing libvorbis... installing alsa-topology-conf... installing alsa-ucm-conf... installing alsa-lib... installing mpg123... Optional dependencies for mpg123 sdl2: for sdl audio support jack: for jack audio support libpulse: for pulse audio support [pending] perl: for conplay [installed] installing opus... installing libsndfile... Optional dependencies for libsndfile alsa-lib: for sndfile-play [installed] installing libpulse... Optional dependencies for libpulse pulse-native-provider: PulseAudio backend installing nspr... installing nss... installing minizip... installing libxslt... Optional dependencies for libxslt python: Python bindings installing electron35... Optional dependencies for electron35 kde-cli-tools: file deletion support (kioclient5) pipewire: WebRTC desktop sharing under Wayland qt5-base: enable Qt5 with --enable-features=AllowQt gtk4: for --gtk-version=4 (GTK4 IME might work better on Wayland) trash-cli: file deletion support (trash-put) xdg-utils: open URLs with desktop’s default (xdg-email, xdg-open) installing libxkbfile... installing ripgrep... :: Running post-transaction hooks... ( 1/14) Creating system user accounts... Creating group 'avahi' with GID 971. Creating user 'avahi' (Avahi mDNS/DNS-SD daemon) with UID 971 and GID 971. ( 2/14) Reloading system manager configuration... Skipped: Current root is not booted. ( 3/14) Reloading user manager configuration... Skipped: Current root is not booted. ( 4/14) Arming ConditionNeedsUpdate... ( 5/14) Updating the MIME type database... ( 6/14) Updating fontconfig configuration... ( 7/14) Reloading system bus configuration... Skipped: Current root is not booted. ( 8/14) Updating fontconfig cache... ( 9/14) Probing GDK-Pixbuf loader modules... (10/14) Updating GIO module cache... (11/14) Compiling GSettings XML schema files... (12/14) Probing GTK3 input method modules... (13/14) Updating icon theme caches... (14/14) Updating the desktop file MIME type cache... ==> Checking buildtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Package (16) New Version Net Change extra/libuv 1.51.0-1 0.62 MiB core/mpdecimal 4.0.1-1 0.33 MiB extra/node-gyp 11.2.0-1 8.84 MiB extra/nodejs-nopt 7.2.1-1 0.03 MiB extra/oniguruma 6.9.10-1 0.88 MiB extra/perl-error 0.17030-1 0.04 MiB extra/perl-mailtools 2.22-1 0.10 MiB extra/perl-timedate 2.33-7 0.08 MiB extra/semver 7.7.2-1 0.09 MiB extra/zlib-ng 2.2.4-1 0.26 MiB extra/git 2.50.0-1 29.40 MiB extra/jq 1.8.0-1 0.44 MiB extra/nodejs-lts-iron 20.19.3-1 44.52 MiB extra/npm 11.4.2-1 8.52 MiB core/python 3.13.5-1 67.53 MiB extra/zip 3.0-11 0.55 MiB Total Installed Size: 162.23 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing perl-error... installing perl-timedate... installing perl-mailtools... installing zlib-ng... installing git... Optional dependencies for git git-zsh-completion: upstream zsh completion tk: gitk and git gui openssh: ssh transport and crypto man: show help with `git command --help` perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 [pending] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing libuv... installing nodejs-lts-iron... Optional dependencies for nodejs-lts-iron npm: nodejs package manager [pending] installing nodejs-nopt... installing semver... installing node-gyp... Optional dependencies for node-gyp gcc: to build C++ modules [installed] make: to build C++ modules [installed] python: to build C++ modules [pending] installing npm... Optional dependencies for npm git: for dependencies using Git URL's [installed] installing mpdecimal... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] xz: for lzma [installed] tk: for tkinter installing zip... installing oniguruma... installing jq... :: Running post-transaction hooks... (1/4) Creating system user accounts... Creating group 'git' with GID 970. Creating user 'git' (git daemon user) with UID 970 and GID 970. (2/4) Reloading system manager configuration... Skipped: Current root is not booted. (3/4) Arming ConditionNeedsUpdate... (4/4) Checking for old perl modules... ==> Retrieving sources... -> Found code.mjs -> Found code.sh -> Found product_json.diff -> Found clipath.patch -> Found 0009-openvsx-extension-signature.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Creating working copy of vscode git repo... Cloning into 'vscode'... done. Switched to a new branch 'makepkg' ==> Starting prepare()... patching file product.json patching file package.json Hunk #1 succeeded at 104 with fuzz 2. patching file src/vs/platform/extensionManagement/node/extensionSignatureVerificationService.ts patching file src/vs/code/node/cli.ts patching file src/vs/platform/lifecycle/electron-main/lifecycleMainService.ts patching file src/vs/platform/native/electron-main/nativeHostMainService.ts Hunk #1 succeeded at 679 (offset -7 lines). ==> Starting build()... npm warn Unknown project config "disturl". This will stop working in the next major version of npm. npm warn Unknown project config "target". This will stop working in the next major version of npm. npm warn Unknown project config "ms_build_id". This will stop working in the next major version of npm. npm warn Unknown project config "runtime". This will stop working in the next major version of npm. npm warn Unknown project config "build_from_source". This will stop working in the next major version of npm. npm warn Unknown project config "timeout". This will stop working in the next major version of npm. npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility npm warn deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated npm warn deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm warn deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported npm warn deprecated sinon@12.0.1: 16.1.1 npm warn deprecated osenv@0.1.5: This package is no longer supported. npm warn deprecated is-data-descriptor@1.0.0: Please upgrade to v1.0.1 npm warn deprecated is-accessor-descriptor@1.0.0: Please upgrade to v1.0.1 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated gulp-vinyl-zip@2.1.2: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated glob@5.0.15: Glob versions prior to v9 are no longer supported npm warn deprecated fstream@1.0.12: This package is no longer supported. npm warn deprecated eslint-plugin-local@6.0.0: Since the coming of ESLint flat config file, you can specify local rules without the need of this package. For running ESLint rule unit tests, use eslint-rule-tester instead npm warn deprecated asar@3.0.3: Please use @electron/asar moving forward. There is no API change, just a package name change npm warn deprecated @azure/core-http@2.3.2: This package is no longer supported. Please migrate to use @azure/core-rest-pipeline npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5 npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7 npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5 npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7 npm warn deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7 npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5 npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported npm warn deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported npm warn deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5 npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7 npm warn deprecated is-data-descriptor@0.1.4: Please upgrade to v0.1.5 npm warn deprecated is-accessor-descriptor@0.1.6: Please upgrade to v0.1.7 npm warn deprecated glob@7.1.6: Glob versions prior to v9 are no longer supported npm error code 1 npm error path /startdir/src/vscode/node_modules/@parcel/watcher npm error command failed npm error command sh -c node scripts/build-from-source.js npm error make: Entering directory '/startdir/src/vscode/node_modules/@parcel/watcher/build' npm error CXX(target) Release/obj.target/watcher/src/binding.o npm error CXX(target) Release/obj.target/watcher/src/Backend.o npm error CXX(target) Release/obj.target/watcher/src/Watcher.o npm error CXX(target) Release/obj.target/watcher/src/DirTree.o npm error CXX(target) Release/obj.target/watcher/src/Glob.o npm error CXX(target) Release/obj.target/watcher/src/Debounce.o npm error CXX(target) Release/obj.target/watcher/src/watchman/BSER.o npm error CXX(target) Release/obj.target/watcher/src/watchman/WatchmanBackend.o npm error CXX(target) Release/obj.target/watcher/src/shared/BruteForceBackend.o npm error CXX(target) Release/obj.target/watcher/src/linux/InotifyBackend.o npm error CXX(target) Release/obj.target/watcher/src/unix/legacy.o npm error make: Leaving directory '/startdir/src/vscode/node_modules/@parcel/watcher/build' npm error gyp info it worked if it ends with ok npm error gyp info using node-gyp@11.2.0 npm error gyp info using node@20.19.3 | linux | x64 npm error gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3" npm error gyp http GET https://electronjs.org/headers/v35.5.1/node-v35.5.1-headers.tar.gz npm error gyp http 200 https://artifacts.electronjs.org/headers/v35.5.1/node-v35.5.1-headers.tar.gz?force_headers_dist=1 npm error gyp http GET https://electronjs.org/headers/v35.5.1/SHASUMS256.txt npm error gyp http 200 https://artifacts.electronjs.org/headers/v35.5.1/SHASUMS256.txt?force_headers_dist=1 npm error gyp info spawn /usr/bin/python3 npm error gyp info spawn args [ npm error gyp info spawn args '/usr/lib/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 '/startdir/src/vscode/node_modules/@parcel/watcher/build/config.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi', npm error gyp info spawn args '-I', npm error gyp info spawn args '/startdir/src/node-gyp/35.5.1/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=/startdir/src/node-gyp/35.5.1', npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/node-gyp', npm error gyp info spawn args '-Dnode_lib_file=/startdir/src/node-gyp/35.5.1/<(target_arch)/node.lib', npm error gyp info spawn args '-Dmodule_root_dir=/startdir/src/vscode/node_modules/@parcel/watcher', 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 ../src/binding.cc:2: npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:107:17: error: ‘napi_async_context’ has not been declared npm error 107 | napi_async_context* result); npm error | ^~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:110:34: error: ‘napi_async_context’ has not been declared npm error 110 | napi_async_destroy(napi_env env, napi_async_context async_context); npm error | ^~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:114:20: error: ‘napi_async_context’ has not been declared npm error 114 | napi_async_context async_context, npm error | ^~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:164:24: error: ‘napi_async_execute_callback’ has not been declared npm error 164 | napi_async_execute_callback execute, npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:165:24: error: ‘napi_async_complete_callback’ has not been declared npm error 165 | napi_async_complete_callback complete, npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:167:24: error: ‘napi_async_work’ has not been declared npm error 167 | napi_async_work* result); npm error | ^~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:169:59: error: ‘napi_async_work’ has not been declared npm error 169 | napi_async_work work); npm error | ^~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:171:58: error: ‘napi_async_work’ has not been declared npm error 171 | napi_async_work work); npm error | ^~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:173:48: error: ‘napi_async_work’ has not been declared npm error 173 | napi_cancel_async_work(node_api_basic_env env, napi_async_work work); npm error | ^~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:177:35: error: ‘napi_node_version’ does not name a type; did you mean ‘napi_key_conversion’? npm error 177 | node_api_basic_env env, const napi_node_version** version); npm error | ^~~~~~~~~~~~~~~~~ npm error | napi_key_conversion npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:193:29: error: ‘napi_cleanup_hook’ has not been declared npm error 193 | node_api_basic_env env, napi_cleanup_hook fun, void* arg); npm error | ^~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:196:29: error: ‘napi_cleanup_hook’ has not been declared npm error 196 | node_api_basic_env env, napi_cleanup_hook fun, void* arg); npm error | ^~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:201:26: error: ‘napi_async_context’ has not been declared npm error 201 | napi_async_context context, npm error | ^~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:202:26: error: ‘napi_callback_scope’ has not been declared; did you mean ‘napi_callback_info__’? npm error 202 | napi_callback_scope* result); npm error | ^~~~~~~~~~~~~~~~~~~ npm error | napi_callback_info__ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:205:41: error: ‘napi_callback_scope’ has not been declared; did you mean ‘napi_callback_info__’? npm error 205 | napi_close_callback_scope(napi_env env, napi_callback_scope scope); npm error | ^~~~~~~~~~~~~~~~~~~ npm error | napi_callback_info__ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:222:33: error: ‘napi_threadsafe_function_call_js’ has not been declared npm error 222 | napi_threadsafe_function_call_js call_js_cb, npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:223:33: error: ‘napi_threadsafe_function’ has not been declared npm error 223 | napi_threadsafe_function* result); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:226:5: error: ‘napi_threadsafe_function’ was not declared in this scope; did you mean ‘napi_create_function’? npm error 226 | napi_threadsafe_function func, void** result); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error | napi_create_function npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:226:36: error: expected primary-expression before ‘void’ npm error 226 | napi_threadsafe_function func, void** result); npm error | ^~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:226:49: error: expression list treated as compound expression in initializer [-fpermissive] npm error 226 | napi_threadsafe_function func, void** result); npm error | ^ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:229:31: error: ‘napi_threadsafe_function’ was not declared in this scope; did you mean ‘napi_call_threadsafe_function’? npm error 229 | napi_call_threadsafe_function(napi_threadsafe_function func, npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error | napi_call_threadsafe_function npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:230:31: error: expected primary-expression before ‘void’ npm error 230 | void* data, npm error | ^~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:231:31: error: ‘napi_threadsafe_function_call_mode’ was not declared in this scope; did you mean ‘napi_get_threadsafe_function_context’? npm error 231 | napi_threadsafe_function_call_mode is_blocking); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error | napi_get_threadsafe_function_context npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:231:77: error: expression list treated as compound expression in initializer [-fpermissive] npm error 231 | napi_threadsafe_function_call_mode is_blocking); npm error | ^ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:234:34: error: ‘napi_threadsafe_function’ was not declared in this scope; did you mean ‘napi_call_threadsafe_function’? npm error 234 | napi_acquire_threadsafe_function(napi_threadsafe_function func); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error | napi_call_threadsafe_function npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:237:5: error: ‘napi_threadsafe_function’ was not declared in this scope; did you mean ‘napi_call_threadsafe_function’? npm error 237 | napi_threadsafe_function func, napi_threadsafe_function_release_mode mode); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error | napi_call_threadsafe_function npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:237:36: error: ‘napi_threadsafe_function_release_mode’ was not declared in this scope npm error 237 | napi_threadsafe_function func, napi_threadsafe_function_release_mode mode); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:237:78: error: expression list treated as compound expression in initializer [-fpermissive] npm error 237 | napi_threadsafe_function func, napi_threadsafe_function_release_mode mode); npm error | ^ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:240:29: error: ‘napi_threadsafe_function’ has not been declared npm error 240 | node_api_basic_env env, napi_threadsafe_function func); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:243:29: error: ‘napi_threadsafe_function’ has not been declared npm error 243 | node_api_basic_env env, napi_threadsafe_function func); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:251:29: error: ‘napi_async_cleanup_hook’ has not been declared npm error 251 | napi_async_cleanup_hook hook, npm error | ^~~~~~~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:253:29: error: ‘napi_async_cleanup_hook_handle’ has not been declared npm error 253 | napi_async_cleanup_hook_handle* remove_handle); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error /startdir/src/node-gyp/35.5.1/include/node/node_api.h:256:32: error: ‘napi_async_cleanup_hook_handle’ was not declared in this scope npm error 256 | napi_remove_async_cleanup_hook(napi_async_cleanup_hook_handle remove_handle); npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error In file included from ../src/binding.cc:4: npm error ../../../node-addon-api/napi.h:1453:7: error: ‘napi_async_context’ has not been declared npm error 1453 | napi_async_context context = nullptr) const; npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:1456:36: error: ‘napi_async_context’ has not been declared npm error 1456 | napi_async_context context = nullptr) const; npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:1460:36: error: ‘napi_async_context’ has not been declared npm error 1460 | napi_async_context context = nullptr) const; npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:1453:36: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘int’ npm error 1453 | napi_async_context context = nullptr) const; npm error | ^~~~~~~ npm error | | npm error | std::nullptr_t npm error ../../../node-addon-api/napi.h:1456:65: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘int’ npm error 1456 | napi_async_context context = nullptr) const; npm error | ^~~~~~~ npm error | | npm error | std::nullptr_t npm error ../../../node-addon-api/napi.h:1460:65: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘int’ npm error 1460 | napi_async_context context = nullptr) const; npm error | ^~~~~~~ npm error | | npm error | std::nullptr_t npm error ../../../node-addon-api/napi.h:1663:7: error: ‘napi_async_context’ has not been declared npm error 1663 | napi_async_context context = nullptr) const; npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:1667:7: error: ‘napi_async_context’ has not been declared npm error 1667 | napi_async_context context = nullptr) const; npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:1672:7: error: ‘napi_async_context’ has not been declared npm error 1672 | napi_async_context context = nullptr) const; npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:1663:36: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘int’ npm error 1663 | napi_async_context context = nullptr) const; npm error | ^~~~~~~ npm error | | npm error | std::nullptr_t npm error ../../../node-addon-api/napi.h:1667:36: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘int’ npm error 1667 | napi_async_context context = nullptr) const; npm error | ^~~~~~~ npm error | | npm error | std::nullptr_t npm error ../../../node-addon-api/napi.h:1672:36: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘int’ npm error 1672 | napi_async_context context = nullptr) const; npm error | ^~~~~~~ npm error | | npm error | std::nullptr_t npm error ../../../node-addon-api/napi.h:2485:31: error: ‘napi_callback_scope’ has not been declared; did you mean ‘napi_callback_info__’? npm error 2485 | CallbackScope(napi_env env, napi_callback_scope scope); npm error | ^~~~~~~~~~~~~~~~~~~ npm error | napi_callback_info__ npm error ../../../node-addon-api/napi.h:2486:31: error: ‘napi_async_context’ has not been declared npm error 2486 | CallbackScope(napi_env env, napi_async_context context); npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2486:3: error: ‘Napi::CallbackScope::CallbackScope(napi_env, int)’ cannot be overloaded with ‘Napi::CallbackScope::CallbackScope(napi_env, int)’ npm error 2486 | CallbackScope(napi_env env, napi_async_context context); npm error | ^~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2485:3: note: previous declaration ‘Napi::CallbackScope::CallbackScope(napi_env, int)’ npm error 2485 | CallbackScope(napi_env env, napi_callback_scope scope); npm error | ^~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2492:12: error: expected type-specifier before ‘napi_callback_scope’ npm error 2492 | operator napi_callback_scope() const; npm error | ^~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2498:3: error: ‘napi_callback_scope’ does not name a type; did you mean ‘napi_callback_info__’? npm error 2498 | napi_callback_scope _scope; npm error | ^~~~~~~~~~~~~~~~~~~ npm error | napi_callback_info__ npm error ../../../node-addon-api/napi.h:2514:12: error: expected type-specifier before ‘napi_async_context’ npm error 2514 | operator napi_async_context() const; npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2520:3: error: ‘napi_async_context’ does not name a type npm error 2520 | napi_async_context _context; npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2530:12: error: expected type-specifier before ‘napi_async_work’ npm error 2530 | operator napi_async_work() const; npm error | ^~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2580:3: error: ‘napi_async_work’ does not name a type npm error 2580 | napi_async_work _work; npm error | ^~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2722:46: error: expected ‘)’ before ‘tsFunctionValue’ npm error 2722 | ThreadSafeFunction(napi_threadsafe_function tsFunctionValue); npm error | ~ ^~~~~~~~~~~~~~~~ npm error | ) npm error ../../../node-addon-api/napi.h:2724:12: error: expected type-specifier before ‘napi_threadsafe_function’ npm error 2724 | operator napi_threadsafe_function() const; npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2793:28: error: ‘napi_threadsafe_function_call_mode’ has not been declared npm error 2793 | napi_threadsafe_function_call_mode mode) const; npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2800:3: error: ‘napi_threadsafe_function’ does not name a type; did you mean ‘ThreadSafeFunction’? npm error 2800 | napi_threadsafe_function _tsfn; npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error | ThreadSafeFunction npm error ../../../node-addon-api/napi.h:2940:51: error: expected ‘)’ before ‘tsFunctionValue’ [-Wtemplate-body] npm error 2940 | TypedThreadSafeFunction(napi_threadsafe_function tsFunctionValue); npm error | ~ ^~~~~~~~~~~~~~~~ npm error | ) npm error ../../../node-addon-api/napi.h:2942:12: error: expected type-specifier before ‘napi_threadsafe_function’ [-Wtemplate-body] npm error 2942 | operator napi_threadsafe_function() const; npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi.h:2990:3: error: ‘napi_threadsafe_function’ does not name a type; did you mean ‘TypedThreadSafeFunction’? [-Wtemplate-body] npm error 2990 | napi_threadsafe_function _tsfn; npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error | TypedThreadSafeFunction npm error ../../../node-addon-api/napi.h:3170:16: error: ‘napi_node_version’ does not name a type; did you mean ‘napi_key_conversion’? npm error 3170 | static const napi_node_version* GetNodeVersion(Env env); npm error | ^~~~~~~~~~~~~~~~~ npm error | napi_key_conversion npm error In file included from ../../../node-addon-api/napi.h:3199: npm error ../../../node-addon-api/napi-inl.h:2538:5: error: ‘napi_async_context’ has not been declared npm error 2538 | napi_async_context context) const { npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:2545:5: error: ‘napi_async_context’ has not been declared npm error 2545 | napi_async_context context) const { npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:2553:5: error: ‘napi_async_context’ has not been declared npm error 2553 | napi_async_context context) const { npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:3651:5: error: ‘napi_async_context’ has not been declared npm error 3651 | napi_async_context context) const { npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:3671:5: error: ‘napi_async_context’ has not been declared npm error 3671 | napi_async_context context) const { npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:3691:5: error: ‘napi_async_context’ has not been declared npm error 3691 | napi_async_context context) const { npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:4965:51: error: ‘napi_callback_scope’ has not been declared; did you mean ‘napi_callback_info__’? npm error 4965 | inline CallbackScope::CallbackScope(napi_env env, napi_callback_scope scope) npm error | ^~~~~~~~~~~~~~~~~~~ npm error | napi_callback_info__ npm error ../../../node-addon-api/napi-inl.h: In constructor ‘Napi::CallbackScope::CallbackScope(napi_env, int)’: npm error ../../../node-addon-api/napi-inl.h:4966:18: error: class ‘Napi::CallbackScope’ does not have any field named ‘_scope’ npm error 4966 | : _env(env), _scope(scope) {} npm error | ^~~~~~ npm error ../../../node-addon-api/napi-inl.h: At global scope: npm error ../../../node-addon-api/napi-inl.h:4968:51: error: ‘napi_async_context’ has not been declared npm error 4968 | inline CallbackScope::CallbackScope(napi_env env, napi_async_context context) npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:4968:8: error: redefinition of ‘Napi::CallbackScope::CallbackScope(napi_env, int)’ npm error 4968 | inline CallbackScope::CallbackScope(napi_env env, napi_async_context context) npm error | ^~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:4965:8: note: ‘Napi::CallbackScope::CallbackScope(napi_env, int)’ previously defined here npm error 4965 | inline CallbackScope::CallbackScope(napi_env env, napi_callback_scope scope) npm error | ^~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In destructor ‘virtual Napi::CallbackScope::~CallbackScope()’: npm error ../../../node-addon-api/napi-inl.h:4976:56: error: ‘_scope’ was not declared in this scope npm error 4976 | napi_status status = napi_close_callback_scope(_env, _scope); npm error | ^~~~~~ npm error ../../../node-addon-api/napi-inl.h: At global scope: npm error ../../../node-addon-api/napi-inl.h:4981:32: error: expected type-specifier before ‘napi_callback_scope’ npm error 4981 | inline CallbackScope::operator napi_callback_scope() const { npm error | ^~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In constructor ‘Napi::AsyncContext::AsyncContext(napi_env, const char*, const Napi::Object&)’: npm error ../../../node-addon-api/napi-inl.h:5000:18: error: class ‘Napi::AsyncContext’ does not have any field named ‘_context’ npm error 5000 | : _env(env), _context(nullptr) { npm error | ^~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5006:58: error: ‘_context’ was not declared in this scope npm error 5006 | status = napi_async_init(_env, resource, resource_id, &_context); npm error | ^~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In destructor ‘virtual Napi::AsyncContext::~AsyncContext()’: npm error ../../../node-addon-api/napi-inl.h:5011:7: error: ‘_context’ was not declared in this scope npm error 5011 | if (_context != nullptr) { npm error | ^~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In constructor ‘Napi::AsyncContext::AsyncContext(Napi::AsyncContext&&)’: npm error ../../../node-addon-api/napi-inl.h:5020:3: error: ‘_context’ was not declared in this scope npm error 5020 | _context = other._context; npm error | ^~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5020:20: error: ‘class Napi::AsyncContext’ has no member named ‘_context’ npm error 5020 | _context = other._context; npm error | ^~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5021:9: error: ‘class Napi::AsyncContext’ has no member named ‘_context’ npm error 5021 | other._context = nullptr; npm error | ^~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘Napi::AsyncContext& Napi::AsyncContext::operator=(Napi::AsyncContext&&)’: npm error ../../../node-addon-api/napi-inl.h:5027:3: error: ‘_context’ was not declared in this scope npm error 5027 | _context = other._context; npm error | ^~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5027:20: error: ‘class Napi::AsyncContext’ has no member named ‘_context’ npm error 5027 | _context = other._context; npm error | ^~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5028:9: error: ‘class Napi::AsyncContext’ has no member named ‘_context’ npm error 5028 | other._context = nullptr; npm error | ^~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: At global scope: npm error ../../../node-addon-api/napi-inl.h:5032:31: error: expected type-specifier before ‘napi_async_context’ npm error 5032 | inline AsyncContext::operator napi_async_context() const { npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In constructor ‘Napi::AsyncWorker::AsyncWorker(const Napi::Object&, const Napi::Function&, const char*, const Napi::Object&)’: npm error ../../../node-addon-api/napi-inl.h:5088:36: error: ‘_work’ was not declared in this scope; did you mean ‘_Fork’? npm error 5088 | &_work); npm error | ^~~~~ npm error | _Fork npm error ../../../node-addon-api/napi-inl.h: In constructor ‘Napi::AsyncWorker::AsyncWorker(Napi::Env, const char*, const Napi::Object&)’: npm error ../../../node-addon-api/napi-inl.h:5112:36: error: ‘_work’ was not declared in this scope; did you mean ‘_Fork’? npm error 5112 | &_work); npm error | ^~~~~ npm error | _Fork npm error ../../../node-addon-api/napi-inl.h: In destructor ‘virtual Napi::AsyncWorker::~AsyncWorker()’: npm error ../../../node-addon-api/napi-inl.h:5117:7: error: ‘_work’ was not declared in this scope; did you mean ‘_Fork’? npm error 5117 | if (_work != nullptr) { npm error | ^~~~~ npm error | _Fork npm error ../../../node-addon-api/napi-inl.h: At global scope: npm error ../../../node-addon-api/napi-inl.h:5127:30: error: expected type-specifier before ‘napi_async_work’ npm error 5127 | inline AsyncWorker::operator napi_async_work() const { npm error | ^~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘void Napi::AsyncWorker::Queue()’: npm error ../../../node-addon-api/napi-inl.h:5136:52: error: ‘_work’ was not declared in this scope; did you mean ‘_Fork’? npm error 5136 | napi_status status = napi_queue_async_work(_env, _work); npm error | ^~~~~ npm error | _Fork npm error ../../../node-addon-api/napi-inl.h: In member function ‘void Napi::AsyncWorker::Cancel()’: npm error ../../../node-addon-api/napi-inl.h:5141:53: error: ‘_work’ was not declared in this scope; did you mean ‘_Fork’? npm error 5141 | napi_status status = napi_cancel_async_work(_env, _work); npm error | ^~~~~ npm error | _Fork npm error ../../../node-addon-api/napi-inl.h: In static member function ‘static Napi::TypedThreadSafeFunction Napi::TypedThreadSafeFunction::New(napi_env, ResourceString, size_t, size_t, ContextType*)’: npm error ../../../node-addon-api/napi-inl.h:5259:45: error: ‘class Napi::TypedThreadSafeFunction’ has no member named ‘_tsfn’ [-Wtemplate-body] npm error 5259 | &tsfn._tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In static member function ‘static Napi::TypedThreadSafeFunction Napi::TypedThreadSafeFunction::New(napi_env, const Napi::Object&, ResourceString, size_t, size_t, ContextType*)’: npm error ../../../node-addon-api/napi-inl.h:5294:45: error: ‘class Napi::TypedThreadSafeFunction’ has no member named ‘_tsfn’ [-Wtemplate-body] npm error 5294 | &tsfn._tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In static member function ‘static Napi::TypedThreadSafeFunction Napi::TypedThreadSafeFunction::New(napi_env, ResourceString, size_t, size_t, ContextType*, Finalizer, FinalizerDataType*)’: npm error ../../../node-addon-api/napi-inl.h:5336:13: error: ‘class Napi::TypedThreadSafeFunction’ has no member named ‘_tsfn’ [-Wtemplate-body] npm error 5336 | &tsfn._tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In static member function ‘static Napi::TypedThreadSafeFunction Napi::TypedThreadSafeFunction::New(napi_env, const Napi::Object&, ResourceString, size_t, size_t, ContextType*, Finalizer, FinalizerDataType*)’: npm error ../../../node-addon-api/napi-inl.h:5380:13: error: ‘class Napi::TypedThreadSafeFunction’ has no member named ‘_tsfn’ [-Wtemplate-body] npm error 5380 | &tsfn._tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In static member function ‘static Napi::TypedThreadSafeFunction Napi::TypedThreadSafeFunction::New(napi_env, const Napi::Function&, ResourceString, size_t, size_t, ContextType*)’: npm error ../../../node-addon-api/napi-inl.h:5417:45: error: ‘class Napi::TypedThreadSafeFunction’ has no member named ‘_tsfn’ [-Wtemplate-body] npm error 5417 | &tsfn._tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In static member function ‘static Napi::TypedThreadSafeFunction Napi::TypedThreadSafeFunction::New(napi_env, const Napi::Function&, const Napi::Object&, ResourceString, size_t, size_t, ContextType*)’: npm error ../../../node-addon-api/napi-inl.h:5453:45: error: ‘class Napi::TypedThreadSafeFunction’ has no member named ‘_tsfn’ [-Wtemplate-body] npm error 5453 | &tsfn._tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In static member function ‘static Napi::TypedThreadSafeFunction Napi::TypedThreadSafeFunction::New(napi_env, const Napi::Function&, ResourceString, size_t, size_t, ContextType*, Finalizer, FinalizerDataType*)’: npm error ../../../node-addon-api/napi-inl.h:5496:13: error: ‘class Napi::TypedThreadSafeFunction’ has no member named ‘_tsfn’ [-Wtemplate-body] npm error 5496 | &tsfn._tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In static member function ‘static Napi::TypedThreadSafeFunction Napi::TypedThreadSafeFunction::New(napi_env, CallbackType, const Napi::Object&, ResourceString, size_t, size_t, ContextType*, Finalizer, FinalizerDataType*)’: npm error ../../../node-addon-api/napi-inl.h:5545:13: error: ‘class Napi::TypedThreadSafeFunction’ has no member named ‘_tsfn’ [-Wtemplate-body] npm error 5545 | &tsfn._tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In constructor ‘Napi::TypedThreadSafeFunction::TypedThreadSafeFunction()’: npm error ../../../node-addon-api/napi-inl.h:5560:7: error: class ‘Napi::TypedThreadSafeFunction’ does not have any field named ‘_tsfn’ [-Wtemplate-body] npm error 5560 | : _tsfn() {} npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: At global scope: npm error ../../../node-addon-api/napi-inl.h:5565:8: error: ISO C++ forbids declaration of ‘TypedThreadSafeFunction’ with no type [-fpermissive] npm error 5565 | inline TypedThreadSafeFunction:: npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5565:8: error: ‘int Napi::TypedThreadSafeFunction::TypedThreadSafeFunction’ is not a static data member of ‘class Napi::TypedThreadSafeFunction’ [-Wtemplate-body] npm error ../../../node-addon-api/napi-inl.h:5566:29: error: template definition of non-template ‘int Napi::TypedThreadSafeFunction::TypedThreadSafeFunction’ [-Wtemplate-body] npm error 5566 | TypedThreadSafeFunction(napi_threadsafe_function tsfn) npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5566:29: error: ‘napi_threadsafe_function’ was not declared in this scope; did you mean ‘napi_ref_threadsafe_function’? [-Wtemplate-body] npm error 5566 | TypedThreadSafeFunction(napi_threadsafe_function tsfn) npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error | napi_ref_threadsafe_function npm error ../../../node-addon-api/napi-inl.h:5573:10: error: expected type-specifier before ‘napi_threadsafe_function’ [-Wtemplate-body] npm error 5573 | operator napi_threadsafe_function() const { npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::TypedThreadSafeFunction::BlockingCall(DataType*) const’: npm error ../../../node-addon-api/napi-inl.h:5583:40: error: ‘_tsfn’ was not declared in this scope [-Wtemplate-body] npm error 5583 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_blocking); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:5583:53: error: ‘napi_tsfn_blocking’ was not declared in this scope [-Wtemplate-body] npm error 5583 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_blocking); npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::TypedThreadSafeFunction::NonBlockingCall(DataType*) const’: npm error ../../../node-addon-api/napi-inl.h:5592:40: error: ‘_tsfn’ was not declared in this scope [-Wtemplate-body] npm error 5592 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_nonblocking); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:5592:53: error: ‘napi_tsfn_nonblocking’ was not declared in this scope [-Wtemplate-body] npm error 5592 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_nonblocking); npm error | ^~~~~~~~~~~~~~~~~~~~~ npm error ../src/DirTree.cc: In constructor ‘DirEntry::DirEntry(FILE*)’: npm error ../src/DirTree.cc:144:13: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] npm error 144 | fscanf(f, "%" PRIu64 " %d\n", &mtime, &d); npm error | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘void Napi::TypedThreadSafeFunction::Ref(napi_env) const’: npm error ../../../node-addon-api/napi-inl.h:5600:7: error: ‘_tsfn’ was not declared in this scope [-Wtemplate-body] npm error 5600 | if (_tsfn != nullptr) { npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘void Napi::TypedThreadSafeFunction::Unref(napi_env) const’: npm error ../../../node-addon-api/napi-inl.h:5611:7: error: ‘_tsfn’ was not declared in this scope [-Wtemplate-body] npm error 5611 | if (_tsfn != nullptr) { npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::TypedThreadSafeFunction::Acquire() const’: npm error ../../../node-addon-api/napi-inl.h:5622:43: error: ‘_tsfn’ was not declared in this scope [-Wtemplate-body] npm error 5622 | return napi_acquire_threadsafe_function(_tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:5622:48: error: ‘napi_acquire_threadsafe_function’ cannot be used as a function [-Wtemplate-body] npm error 5622 | return napi_acquire_threadsafe_function(_tsfn); npm error | ^ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::TypedThreadSafeFunction::Release() const’: npm error ../../../node-addon-api/napi-inl.h:5630:43: error: ‘_tsfn’ was not declared in this scope [-Wtemplate-body] npm error 5630 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_release); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:5630:50: error: ‘napi_tsfn_release’ was not declared in this scope [-Wtemplate-body] npm error 5630 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_release); npm error | ^~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5630:67: error: ‘napi_release_threadsafe_function’ cannot be used as a function [-Wtemplate-body] npm error 5630 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_release); npm error | ^ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::TypedThreadSafeFunction::Abort() const’: npm error ../../../node-addon-api/napi-inl.h:5638:43: error: ‘_tsfn’ was not declared in this scope [-Wtemplate-body] npm error 5638 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_abort); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:5638:50: error: ‘napi_tsfn_abort’ was not declared in this scope [-Wtemplate-body] npm error 5638 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_abort); npm error | ^~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5638:65: error: ‘napi_release_threadsafe_function’ cannot be used as a function [-Wtemplate-body] npm error 5638 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_abort); npm error | ^ npm error ../../../node-addon-api/napi-inl.h: In member function ‘ContextType* Napi::TypedThreadSafeFunction::GetContext() const’: npm error ../../../node-addon-api/napi-inl.h:5647:61: error: ‘_tsfn’ was not declared in this scope [-Wtemplate-body] npm error 5647 | napi_status status = napi_get_threadsafe_function_context(_tsfn, &context); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:5647:60: error: ‘napi_get_threadsafe_function_context’ cannot be used as a function [-Wtemplate-body] npm error 5647 | napi_status status = napi_get_threadsafe_function_context(_tsfn, &context); npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In constructor ‘Napi::ThreadSafeFunction::ThreadSafeFunction()’: npm error ../../../node-addon-api/napi-inl.h:5958:51: error: class ‘Napi::ThreadSafeFunction’ does not have any field named ‘_tsfn’ npm error 5958 | inline ThreadSafeFunction::ThreadSafeFunction() : _tsfn() {} npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: At global scope: npm error ../../../node-addon-api/napi-inl.h:5960:8: error: ISO C++ forbids declaration of ‘ThreadSafeFunction’ with no type [-fpermissive] npm error 5960 | inline ThreadSafeFunction::ThreadSafeFunction(napi_threadsafe_function tsfn) npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5960:8: error: ‘int Napi::ThreadSafeFunction::ThreadSafeFunction’ is not a static data member of ‘class Napi::ThreadSafeFunction’ npm error ../../../node-addon-api/napi-inl.h:5960:47: error: ‘napi_threadsafe_function’ was not declared in this scope; did you mean ‘napi_ref_threadsafe_function’? npm error 5960 | inline ThreadSafeFunction::ThreadSafeFunction(napi_threadsafe_function tsfn) npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error | napi_ref_threadsafe_function npm error ../../../node-addon-api/napi-inl.h:5963:37: error: expected type-specifier before ‘napi_threadsafe_function’ npm error 5963 | inline ThreadSafeFunction::operator napi_threadsafe_function() const { npm error | ^~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::BlockingCall() const’: npm error ../../../node-addon-api/napi-inl.h:5968:32: error: ‘napi_tsfn_blocking’ was not declared in this scope npm error 5968 | return CallInternal(nullptr, napi_tsfn_blocking); npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::BlockingCall(Callback) const [with Callback = void*]’: npm error ../../../node-addon-api/napi-inl.h:5973:40: error: ‘_tsfn’ was not declared in this scope npm error 5973 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_blocking); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:5973:53: error: ‘napi_tsfn_blocking’ was not declared in this scope npm error 5973 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_blocking); npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5973:71: error: ‘napi_call_threadsafe_function’ cannot be used as a function npm error 5973 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_blocking); npm error | ^ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::BlockingCall(Callback) const’: npm error ../../../node-addon-api/napi-inl.h:5978:54: error: ‘napi_tsfn_blocking’ was not declared in this scope [-Wtemplate-body] npm error 5978 | return CallInternal(new CallbackWrapper(callback), napi_tsfn_blocking); npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::BlockingCall(DataType*, Callback) const’: npm error ../../../node-addon-api/napi-inl.h:5987:53: error: ‘napi_tsfn_blocking’ was not declared in this scope [-Wtemplate-body] npm error 5987 | return CallInternal(new CallbackWrapper(wrapper), napi_tsfn_blocking); npm error | ^~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::NonBlockingCall() const’: npm error ../../../node-addon-api/napi-inl.h:5991:32: error: ‘napi_tsfn_nonblocking’ was not declared in this scope npm error 5991 | return CallInternal(nullptr, napi_tsfn_nonblocking); npm error | ^~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::NonBlockingCall(Callback) const [with Callback = void*]’: npm error ../../../node-addon-api/napi-inl.h:5996:40: error: ‘_tsfn’ was not declared in this scope npm error 5996 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_nonblocking); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:5996:53: error: ‘napi_tsfn_nonblocking’ was not declared in this scope npm error 5996 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_nonblocking); npm error | ^~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:5996:74: error: ‘napi_call_threadsafe_function’ cannot be used as a function npm error 5996 | return napi_call_threadsafe_function(_tsfn, data, napi_tsfn_nonblocking); npm error | ^ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::NonBlockingCall(Callback) const’: npm error ../../../node-addon-api/napi-inl.h:6002:54: error: ‘napi_tsfn_nonblocking’ was not declared in this scope [-Wtemplate-body] npm error 6002 | return CallInternal(new CallbackWrapper(callback), napi_tsfn_nonblocking); npm error | ^~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::NonBlockingCall(DataType*, Callback) const’: npm error ../../../node-addon-api/napi-inl.h:6011:53: error: ‘napi_tsfn_nonblocking’ was not declared in this scope [-Wtemplate-body] npm error 6011 | return CallInternal(new CallbackWrapper(wrapper), napi_tsfn_nonblocking); npm error | ^~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘void Napi::ThreadSafeFunction::Ref(napi_env) const’: npm error ../../../node-addon-api/napi-inl.h:6015:7: error: ‘_tsfn’ was not declared in this scope npm error 6015 | if (_tsfn != nullptr) { npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘void Napi::ThreadSafeFunction::Unref(napi_env) const’: npm error ../../../node-addon-api/napi-inl.h:6022:7: error: ‘_tsfn’ was not declared in this scope npm error 6022 | if (_tsfn != nullptr) { npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::Acquire() const’: npm error ../../../node-addon-api/napi-inl.h:6029:43: error: ‘_tsfn’ was not declared in this scope npm error 6029 | return napi_acquire_threadsafe_function(_tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:6029:48: error: ‘napi_acquire_threadsafe_function’ cannot be used as a function npm error 6029 | return napi_acquire_threadsafe_function(_tsfn); npm error | ^ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::Release() const’: npm error ../../../node-addon-api/napi-inl.h:6033:43: error: ‘_tsfn’ was not declared in this scope npm error 6033 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_release); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:6033:50: error: ‘napi_tsfn_release’ was not declared in this scope npm error 6033 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_release); npm error | ^~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:6033:67: error: ‘napi_release_threadsafe_function’ cannot be used as a function npm error 6033 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_release); npm error | ^ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::Abort() const’: npm error ../../../node-addon-api/napi-inl.h:6037:43: error: ‘_tsfn’ was not declared in this scope npm error 6037 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_abort); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:6037:50: error: ‘napi_tsfn_abort’ was not declared in this scope npm error 6037 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_abort); npm error | ^~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h:6037:65: error: ‘napi_release_threadsafe_function’ cannot be used as a function npm error 6037 | return napi_release_threadsafe_function(_tsfn, napi_tsfn_abort); npm error | ^ npm error ../../../node-addon-api/napi-inl.h: In member function ‘Napi::ThreadSafeFunction::ConvertibleContext Napi::ThreadSafeFunction::GetContext() const’: npm error ../../../node-addon-api/napi-inl.h:6043:61: error: ‘_tsfn’ was not declared in this scope npm error 6043 | napi_status status = napi_get_threadsafe_function_context(_tsfn, &context); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:6043:60: error: ‘napi_get_threadsafe_function_context’ cannot be used as a function npm error 6043 | napi_status status = napi_get_threadsafe_function_context(_tsfn, &context); npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In static member function ‘static Napi::ThreadSafeFunction Napi::ThreadSafeFunction::New(napi_env, const Napi::Function&, const Napi::Object&, ResourceString, size_t, size_t, ContextType*, Finalizer, FinalizerDataType*, napi_finalize)’: npm error ../../../node-addon-api/napi-inl.h:6084:45: error: ‘class Napi::ThreadSafeFunction’ has no member named ‘_tsfn’ [-Wtemplate-body] npm error 6084 | &tsfn._tsfn); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h: At global scope: npm error ../../../node-addon-api/napi-inl.h:6095:5: error: ‘napi_threadsafe_function_call_mode’ has not been declared npm error 6095 | napi_threadsafe_function_call_mode mode) const { npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: In member function ‘napi_status Napi::ThreadSafeFunction::CallInternal(CallbackWrapper*, int) const’: npm error ../../../node-addon-api/napi-inl.h:6097:37: error: ‘_tsfn’ was not declared in this scope npm error 6097 | napi_call_threadsafe_function(_tsfn, callbackWrapper, mode); npm error | ^~~~~ npm error ../../../node-addon-api/napi-inl.h:6097:36: error: ‘napi_call_threadsafe_function’ cannot be used as a function npm error 6097 | napi_call_threadsafe_function(_tsfn, callbackWrapper, mode); npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm error ../../../node-addon-api/napi-inl.h: At global scope: npm error ../../../node-addon-api/napi-inl.h:6503:14: error: ‘napi_node_version’ does not name a type; did you mean ‘napi_key_conversion’? npm error 6503 | inline const napi_node_version* VersionManagement::GetNodeVersion(Env env) { npm error | ^~~~~~~~~~~~~~~~~ npm error | napi_key_conversion npm error ../src/linux/InotifyBackend.cc: In destructor ‘InotifyBackend::~InotifyBackend()’: npm error ../src/linux/InotifyBackend.cc:62:8: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] npm error 62 | write(mPipe[1], "X", 1); npm error | ~~~~~^~~~~~~~~~~~~~~~~~ npm error In file included from ../src/binding.cc:9: npm error ../src/PromiseRunner.hh:44:3: error: ‘napi_async_work’ does not name a type npm error 44 | napi_async_work work; npm error | ^~~~~~~~~~~~~~~ npm error ../src/PromiseRunner.hh: In constructor ‘PromiseRunner::PromiseRunner(Napi::Env)’: npm error ../src/PromiseRunner.hh:17:83: error: ‘work’ was not declared in this scope; did you mean ‘fork’? npm error 17 | onExecute, onWorkComplete, this, &work); npm error | ^~~~ npm error | fork npm error ../src/PromiseRunner.hh: In member function ‘Napi::Value PromiseRunner::queue()’: npm error ../src/PromiseRunner.hh:33:9: error: ‘work’ was not declared in this scope; did you mean ‘fork’? npm error 33 | if (work) { npm error | ^~~~ npm error | fork npm error ../src/PromiseRunner.hh: In static member function ‘static void PromiseRunner::onWorkComplete(napi_env, napi_status, void*)’: npm error ../src/PromiseRunner.hh:61:58: error: ‘class PromiseRunner’ has no member named ‘work’ npm error 61 | status = napi_delete_async_work(self->env, self->work); npm error | ^~~~ npm error make: *** [watcher.target.mk:140: Release/obj.target/watcher/src/binding.o] Error 1 npm error make: *** Waiting for unfinished jobs.... 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. (/usr/lib/node_modules/node-gyp/lib/build.js:219:23) npm error gyp ERR! System Linux 6.12.31-1-lts npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm error gyp ERR! cwd /startdir/src/vscode/node_modules/@parcel/watcher npm error gyp ERR! node -v v20.19.3 npm error gyp ERR! node-gyp -v v11.2.0 npm error gyp ERR! not ok npm error A complete log of this run can be found in: /build/.npm/_logs/2025-06-30T07_08_56_685Z-debug-0.log ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /home/alhp/workspace/chroot/build_8f151312-0017-410f-9b53-679165c73b6f/build