-
-
Notifications
You must be signed in to change notification settings - Fork 483
Description
we do not see any build issue on windows and it works fantastic but somehow on mac, its failing npm build. Error seems to be from transitive dependency cpu-features. We are facing below error while running "npm run build" command. We are making use of this package currently. Please if you can help on this.
⨯ cannot execute cause=exit status 1
errorOut=npm error code 1
npm error path /Users/suneet.gupta/ws/velocityaiworkbench/node_modules/cpu-features
npm error command failed
npm error command sh -c node buildcheck.js > buildcheck.gypi && node-gyp rebuild
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o
npm error CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o
npm error LIBTOOL-STATIC Release/cpu_features.a
npm error CXX(target) Release/obj.target/cpufeatures/src/binding.o
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | darwin | arm64
npm error (node:74535) [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.12.7 found at "/opt/anaconda3/bin/python3"
npm error gyp info spawn /opt/anaconda3/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/suneet.gupta/ws/velocityaiworkbench/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 '/Users/suneet.gupta/ws/velocityaiworkbench/node_modules/cpu-features/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/suneet.gupta/ws/velocityaiworkbench/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/suneet.gupta/.electron-gyp/33.2.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=/Users/suneet.gupta/.electron-gyp/33.2.1',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/suneet.gupta/ws/velocityaiworkbench/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/suneet.gupta/.electron-gyp/33.2.1/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/suneet.gupta/ws/velocityaiworkbench/node_modules/cpu-features',
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:1:
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/node.h:27:2: error: "It looks like you are building this native module without using the right config.gypi. This normally means that you need to update electron-rebuild (>=3.2.8) or node-gyp (>=9.0.0) if you're building modules directly."
npm error 27 | #error "It looks like you are building this native module without using the right config.gypi. This normally means that you need to update electron-rebuild (>=3.2.8) or node-gyp (>=9.0.0) if you're building modules directly."
npm error | ^
npm error In file included from ../src/binding.cc:3:
npm error In file included from ../../nan/nan.h:3045:
npm error ../../nan/nan_scriptorigin.h:36:7: error: no matching constructor for initialization of 'v8::ScriptOrigin'
npm error 36 | v8::ScriptOrigin(v8::Isolate::GetCurrent(), name) {}
npm error | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/v8-message.h:64:13: note: candidate constructor not viable: no known conversion from 'Isolate *' to 'Local' for 1st argument
npm error 64 | V8_INLINE ScriptOrigin(Local resource_name,
npm error | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/v8-message.h:62:17: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided
npm error 62 | class V8_EXPORT ScriptOrigin {
npm error | ^~~~~~~~~~~~
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/v8-message.h:62:17: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided
npm error 62 | class V8_EXPORT ScriptOrigin {
npm error | ^~~~~~~~~~~~
npm error In file included from ../src/binding.cc:3:
npm error In file included from ../../nan/nan.h:3045:
npm error ../../nan/nan_scriptorigin.h:40:7: error: no matching constructor for initialization of 'v8::ScriptOrigin'
npm error 40 | v8::ScriptOrigin(v8::Isolate::GetCurrent()
npm error | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 41 | , name
npm error | ~~~~~~
npm error 42 | , To<int32_t>(line).FromMaybe(0)) {}
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/v8-message.h:64:13: note: candidate constructor not viable: no known conversion from 'Isolate *' to 'Local' for 1st argument
npm error 64 | V8_INLINE ScriptOrigin(Local resource_name,
npm error | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/v8-message.h:62:17: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
npm error 62 | class V8_EXPORT ScriptOrigin {
npm error | ^~~~~~~~~~~~
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/v8-message.h:62:17: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 3 were provided
npm error 62 | class V8_EXPORT ScriptOrigin {
npm error | ^~~~~~~~~~~~
npm error In file included from ../src/binding.cc:3:
npm error In file included from ../../nan/nan.h:3045:
npm error ../../nan/nan_scriptorigin.h:47:7: error: no matching constructor for initialization of 'v8::ScriptOrigin'
npm error 47 | v8::ScriptOrigin(v8::Isolate::GetCurrent()
npm error | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 48 | , name
npm error | ~~~~~~
npm error 49 | , To<int32_t>(line).FromMaybe(0)
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 50 | , To<int32_t>(column).FromMaybe(0)) {}
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/v8-message.h:64:13: note: candidate constructor not viable: no known conversion from 'Isolate *' to 'Local' for 1st argument
npm error 64 | V8_INLINE ScriptOrigin(Local resource_name,
npm error | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/v8-message.h:62:17: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 4 were provided
npm error 62 | class V8_EXPORT ScriptOrigin {
npm error | ^~~~~~~~~~~~
npm error /Users/suneet.gupta/.electron-gyp/33.2.1/include/node/v8-message.h:62:17: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 4 were provided
npm error 62 | class V8_EXPORT ScriptOrigin {
npm error | ^~~~~~~~~~~~
npm error 4 errors generated.
npm error make: *** [Release/obj.target/cpufeatures/src/binding.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 (/Users/suneet.gupta/ws/velocityaiworkbench/node_modules/node-gyp/lib/build.js:194:23)
npm error gyp ERR! stack at ChildProcess.emit (node:events:524:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm error gyp ERR! System Darwin 23.6.0
npm error gyp ERR! command "/Users/suneet.gupta/.nvm/versions/node/v22.13.0/bin/node" "/Users/suneet.gupta/ws/velocityaiworkbench/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /Users/suneet.gupta/ws/velocityaiworkbench/node_modules/cpu-features
npm error gyp ERR! node -v v22.13.0
npm error gyp ERR! node-gyp -v v8.4.1
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /Users/suneet.gupta/.npm/_logs/2025-01-15T13_27_30_197Z-debug-0.log