Skip to content

Compilation error during package installation on Mac #236

Description

@lokxii

I run npm -i --save-dev appdmg and got the follow error

222 error code 1
223 error path /Users/austinsiu/Desktop/program/BingGPT/node_modules/macos-alias
224 error command failed
225 error command sh -c node-gyp rebuild
226 error CXX(target) Release/obj.target/volume/src/volume.o
227 error gyp info it worked if it ends with ok
227 error gyp info using node-gyp@9.3.1
227 error gyp info using node@21.3.0 | darwin | x64
227 error gyp info find Python using Python version 3.11.6 found at "/usr/local/opt/python@3.11/bin/python3.11"
227 error gyp info spawn /usr/local/opt/python@3.11/bin/python3.11
227 error gyp info spawn args [
227 error gyp info spawn args   '/Users/austinsiu/Desktop/program/BingGPT/node_modules/node-gyp/gyp/gyp_main.py',
227 error gyp info spawn args   'binding.gyp',
227 error gyp info spawn args   '-f',
227 error gyp info spawn args   'make',
227 error gyp info spawn args   '-I',
227 error gyp info spawn args   '/Users/austinsiu/Desktop/program/BingGPT/node_modules/macos-alias/build/config.gypi',
227 error gyp info spawn args   '-I',
227 error gyp info spawn args   '/Users/austinsiu/Desktop/program/BingGPT/node_modules/node-gyp/addon.gypi',
227 error gyp info spawn args   '-I',
227 error gyp info spawn args   '/Users/austinsiu/Library/Caches/node-gyp/21.3.0/include/node/common.gypi',
227 error gyp info spawn args   '-Dlibrary=shared_library',
227 error gyp info spawn args   '-Dvisibility=default',
227 error gyp info spawn args   '-Dnode_root_dir=/Users/austinsiu/Library/Caches/node-gyp/21.3.0',
227 error gyp info spawn args   '-Dnode_gyp_dir=/Users/austinsiu/Desktop/program/BingGPT/node_modules/node-gyp',
227 error gyp info spawn args   '-Dnode_lib_file=/Users/austinsiu/Library/Caches/node-gyp/21.3.0/<(target_arch)/node.lib',
227 error gyp info spawn args   '-Dmodule_root_dir=/Users/austinsiu/Desktop/program/BingGPT/node_modules/macos-alias',
227 error gyp info spawn args   '-Dnode_engine=v8',
227 error gyp info spawn args   '--depth=.',
227 error gyp info spawn args   '--no-parallel',
227 error gyp info spawn args   '--generator-output',
227 error gyp info spawn args   'build',
227 error gyp info spawn args   '-Goutput_dir=.'
227 error gyp info spawn args ]
227 error gyp info spawn make
227 error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
227 error In file included from ../src/volume.cc:2:
227 error In file included from ../../nan/nan.h:60:
227 error In file included from /Users/austinsiu/Library/Caches/node-gyp/21.3.0/include/node/node.h:73:
227 error In file included from /Users/austinsiu/Library/Caches/node-gyp/21.3.0/include/node/v8.h:24:
227 error In file included from /Users/austinsiu/Library/Caches/node-gyp/21.3.0/include/node/v8-array-buffer.h:12:
227 error /Users/austinsiu/Library/Caches/node-gyp/21.3.0/include/node/v8-local-handle.h:253:5: error: static_assert failed due to requirement 'std::is_base_of<v8::Value, v8::Data>::value' "type check"
227 error     static_assert(std::is_base_of<T, S>::value, "type check");
227 error     ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
227 error ../../nan/nan_callbacks_12_inl.h:175:20: note: in instantiation of function template specialization 'v8::Local<v8::Value>::Local<v8::Data>' requested here
227 error       cbinfo(info, obj->GetInternalField(kDataIndex));
227 error                    ^
227 error 1 error generated.
227 error make: *** [Release/obj.target/volume/src/volume.o] Error 1
227 error gyp ERR! build error 
227 error gyp ERR! stack Error: `make` failed with exit code: 2
227 error gyp ERR! stack     at ChildProcess.onExit (/Users/austinsiu/Desktop/program/BingGPT/node_modules/node-gyp/lib/build.js:203:23)
227 error gyp ERR! stack     at ChildProcess.emit (node:events:519:28)
227 error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
227 error gyp ERR! System Darwin 21.6.0
227 error gyp ERR! command "/usr/local/Cellar/node/21.3.0/bin/node" "/Users/austinsiu/Desktop/program/BingGPT/node_modules/.bin/node-gyp" "rebuild"
227 error gyp ERR! cwd /Users/austinsiu/Desktop/program/BingGPT/node_modules/macos-alias
227 error gyp ERR! node -v v21.3.0
227 error gyp ERR! node-gyp -v v9.3.1
227 error gyp ERR! not ok
228 verbose exit 1
229 timing npm Completed in 5164ms
230 verbose unfinished npm timer reify 1702178619543
231 verbose unfinished npm timer reify:build 1702178620906
232 verbose unfinished npm timer build 1702178620907
233 verbose unfinished npm timer build:deps 1702178620907
234 verbose unfinished npm timer build:run:install 1702178620911
235 verbose unfinished npm timer build:run:install:node_modules/macos-alias 1702178620917
236 verbose code 1
237 error A complete log of this run can be found in: /Users/austinsiu/.npm/_logs/2023-12-10T03_23_39_298Z-debug-0.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions