Compilation error during package installation on Mac
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 158
- PR merge metrics
- No merged PRs in 30d
Description
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::value' "type check"
227 error static_assert(std::is_base_of::value, "type check");
227 error ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
227 error ../../nan/nan_callbacks_12_inl.h:175:20: note: in instantiation of function template specialization 'v8::Local::Local' 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
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the package installation on macOS with Node 21.3.0 and inspect the node_modules/macos-alias native build. Start with src/volume.cc, the node-gyp output, and the listed nan and V8 headers. Done means appdmg installs successfully without the compilation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100