netcdf4 icon indicating copy to clipboard operation
netcdf4 copied to clipboard

compile errors running npm install ( [email protected], [email protected])

Open stepheneb opened this issue 5 years ago • 1 comments

macOS 10.15.3

netcdf installed with homebrew:

$ brew info netcdf
netcdf: stable 4.7.3 (bottled)
Libraries and data formats for array-oriented scientific data
https://www.unidata.ucar.edu/software/netcdf
/usr/local/Cellar/netcdf/4.7.3_1 (89 files, 5.8MB) *
  Poured from bottle on 2020-02-15 at 15:56:20
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/netcdf.rb
==> Dependencies

Summary report from installing:

35 warnings and 5 errors generated.
make: *** [Release/obj.target/netcdf4/src/Group.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/stephen/.nvm/versions/node/v12.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.3.0
gyp ERR! command "/Users/stephen/.nvm/versions/node/v12.16.0/bin/node" "/Users/stephen/.nvm/versions/node/v12.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/stephen/dev/node-cdf/node_modules/netcdf4
gyp ERR! node -v v12.16.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

Just the five errors.

./src/Group.cpp:36:49: error: too few arguments to function call, single argument 'context' was not specified
    constructor.Reset(isolate, tpl->GetFunction());
                               ~~~~~~~~~~~~~~~~ ^
../src/Group.cpp:118:36: error: too few arguments to function call, single argument 'context' was not specified
        len = args[1]->Uint32Value();
              ~~~~~~~~~~~~~~~~~~~~ ^
/Users/stephen/Library/Caches/node-gyp/12.16.0/include/node/v8.h:2707:3: note: 'Uint32Value' declared here
../src/Group.cpp:161:44: error: no matching member function for call to 'ToObject'
    v8::Local<v8::Object> array = args[2]->ToObject();
                                  ~~~~~~~~~^~~~~~~~
/Users/stephen/Library/Caches/node-gyp/12.16.0/include/node/v8.h:2672:44: note: candidate function not viable: requires single argument
../src/Group.cpp:162:88: error: too few arguments to function call, single argument 'context' was not specified
    size_t ndims = array->Get(v8::String::NewFromUtf8(isolate, "length"))->Uint32Value();
../src/Group.cpp:165:47: error: too few arguments to function call, single argument 'context' was not specified
        dimids[i] = array->Get(i)->Int32Value();

The debug.log produced:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/Users/stephen/.nvm/versions/node/v12.16.0/bin/node',
1 verbose cli   '/Users/stephen/.nvm/versions/node/v12.16.0/bin/npm',
1 verbose cli   'install',
1 verbose cli   'netcdf4'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session ed44b6729031d234
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/netcdf4 17ms (from cache)
8 silly pacote tag manifest for netcdf4@latest fetched in 28ms
9 timing stage:loadCurrentTree Completed in 65ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 7ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 7ms
18 timing stage:loadIdealTree Completed in 15ms
19 silly currentTree [email protected]
19 silly currentTree ├── [email protected]
19 silly currentTree ├── [email protected]
19 silly currentTree ├── [email protected]
19 silly currentTree └── [email protected]
20 silly idealTree [email protected]
20 silly idealTree ├── [email protected]
20 silly idealTree ├── [email protected]
20 silly idealTree ├── [email protected]
20 silly idealTree ├── [email protected]
20 silly idealTree └── [email protected]
21 silly install generateActionsToTake
22 timing stage:generateActionsToTake Completed in 3ms
23 silly diffTrees action count 1
24 silly diffTrees add [email protected]
25 silly decomposeActions action count 8
26 silly decomposeActions fetch [email protected]
27 silly decomposeActions extract [email protected]
28 silly decomposeActions preinstall [email protected]
29 silly decomposeActions build [email protected]
30 silly decomposeActions install [email protected]
31 silly decomposeActions postinstall [email protected]
32 silly decomposeActions finalize [email protected]
33 silly decomposeActions refresh-package-json [email protected]
34 silly install executeActions
35 silly doSerial global-install 8
36 verbose correctMkdir /Users/stephen/.npm/_locks correctMkdir not in flight; initializing
37 verbose lock using /Users/stephen/.npm/_locks/staging-db43c5e244f989ba.lock for /Users/stephen/dev/node-cdf/node_modules/.staging
38 silly doParallel extract 1
39 silly extract [email protected]
40 silly tarball trying netcdf4@latest by hash: sha512-XU2uEKh7N6jzJUSqJGEm0C6f92ea3WrRXnGa4bcRh2jq9lKD2H1OCGxjjzKPjD31z15qL5S9y342gfeui/Uu3A==
41 silly extract netcdf4@latest extracted to /Users/stephen/dev/node-cdf/node_modules/.staging/netcdf4-73e7ef9a (205ms)
42 timing action:extract Completed in 208ms
43 silly doReverseSerial unbuild 8
44 silly doSerial remove 8
45 silly doSerial move 8
46 silly doSerial finalize 8
47 silly finalize /Users/stephen/dev/node-cdf/node_modules/netcdf4
48 timing action:finalize Completed in 2ms
49 silly doParallel refresh-package-json 1
50 silly refresh-package-json /Users/stephen/dev/node-cdf/node_modules/netcdf4
51 timing action:refresh-package-json Completed in 6ms
52 silly doParallel preinstall 1
53 silly preinstall [email protected]
54 info lifecycle [email protected]~preinstall: [email protected]
55 timing action:preinstall Completed in 1ms
56 silly doSerial build 8
57 silly build [email protected]
58 info linkStuff [email protected]
59 silly linkStuff [email protected] has /Users/stephen/dev/node-cdf/node_modules as its parent node_modules
60 timing action:build Completed in 1ms
61 silly doSerial global-link 8
62 silly doParallel update-linked 0
63 silly doSerial install 8
64 silly install [email protected]
65 info lifecycle [email protected]~install: [email protected]
66 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true
67 verbose lifecycle [email protected]~install: PATH: /Users/stephen/.nvm/versions/node/v12.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/stephen/dev/node-cdf/node_modules/netcdf4/node_modules/.bin:/Users/stephen/dev/node-cdf/node_modules/.bin:/Users/stephen/.nvm/versions/node/v12.16.0/bin:/Users/stephen/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Users/stephen/dev/bin
68 verbose lifecycle [email protected]~install: CWD: /Users/stephen/dev/node-cdf/node_modules/netcdf4
69 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp rebuild' ]
70 timing audit submit Completed in 667ms
71 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 667ms
72 timing audit body Completed in 1ms
73 silly lifecycle [email protected]~install: Returned: code: 1  signal: null
74 info lifecycle [email protected]~install: Failed to exec install script
75 timing action:install Completed in 2281ms
76 verbose unlock done using /Users/stephen/.npm/_locks/staging-db43c5e244f989ba.lock for /Users/stephen/dev/node-cdf/node_modules/.staging
77 timing stage:rollbackFailedOptional Completed in 70ms
78 timing stage:runTopLevelLifecycles Completed in 2696ms
79 silly saveTree [email protected]
79 silly saveTree ├─┬ [email protected]
79 silly saveTree │ └─┬ [email protected]
79 silly saveTree │   └─┬ [email protected]
79 silly saveTree │     └── [email protected]
79 silly saveTree └── [email protected]
80 warn [email protected] No description
81 warn [email protected] No repository field.
82 verbose stack Error: [email protected] install: `node-gyp rebuild`
82 verbose stack Exit status 1
82 verbose stack     at EventEmitter.<anonymous> (/Users/stephen/.nvm/versions/node/v12.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
82 verbose stack     at EventEmitter.emit (events.js:321:20)
82 verbose stack     at ChildProcess.<anonymous> (/Users/stephen/.nvm/versions/node/v12.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
82 verbose stack     at ChildProcess.emit (events.js:321:20)
82 verbose stack     at maybeClose (internal/child_process.js:1021:16)
82 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
83 verbose pkgid [email protected]
84 verbose cwd /Users/stephen/dev/node-cdf
85 verbose Darwin 19.3.0
86 verbose argv "/Users/stephen/.nvm/versions/node/v12.16.0/bin/node" "/Users/stephen/.nvm/versions/node/v12.16.0/bin/npm" "install" "netcdf4"
87 verbose node v12.16.0
88 verbose npm  v6.13.4
89 error code ELIFECYCLE
90 error errno 1
91 error [email protected] install: `node-gyp rebuild`
91 error Exit status 1
92 error Failed at the [email protected] install script.
92 error This is probably not a problem with npm. There is likely additional logging output above.
93 verbose exit [ 1, true ]

stepheneb avatar Feb 18 '20 04:02 stepheneb

I am getting the same errors on

  • centos 7
  • node v12.14.0
  • npm 6.13.4
  • node-gyp v5.0.5

Has there been any progress?

PhilipNelson5 avatar Jul 15 '20 17:07 PhilipNelson5