Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-gyp fails x509 build in node v10.2 #676

Closed
csarven opened this issue May 24, 2018 · 1 comment
Closed

node-gyp fails x509 build in node v10.2 #676

csarven opened this issue May 24, 2018 · 1 comment

Comments

@csarven
Copy link
Member

csarven commented May 24, 2018

On node-solid-server ff53c5c (4.0.9), node-gyp (3.6.2) appears to fail the x509 build if node v10.2 (probably 10.x)

See:

$ npm install                                                                                                          [43/45]
                                                                                                                                                                        
> [email protected] install /var/www/node-solid-server/node_modules/x509                                                                                                       
> node-gyp rebuild                                                                  
                                          
make: Entering directory '/var/www/node-solid-server/node_modules/x509/build'       
  CXX(target) Release/obj.target/x509/src/addon.o
In file included from ../include/addon.h:4:0,
                 from ../src/addon.cc:4:                                            
/home/csarven/.node-gyp/10.2.0/include/node/node.h:53:10: fatal error: core.h: No such file or directory
 #include "core.h"  // NOLINT(build/include_order)
          ^~~~~~~~                        
compilation terminated.
x509.target.mk:102: recipe for target 'Release/obj.target/x509/src/addon.o' failed  
make: *** [Release/obj.target/x509/src/addon.o] Error 1                             
make: Leaving directory '/var/www/node-solid-server/node_modules/x509/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/csarven/.nvm/versions/node/v10.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.13.0-43-generic                                             
gyp ERR! command "/home/csarven/.nvm/versions/node/v10.2.0/bin/node" "/home/csarven/.nvm/versions/node/v10.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.$
s" "rebuild"                                                                        
gyp ERR! cwd /var/www/node-solid-server/node_modules/x509
gyp ERR! node -v v10.2.0
gyp ERR! node-gyp -v v3.6.2                                                         
gyp ERR! not ok
                                                                                    
> [email protected] postinstall /var/www/node-solid-server/node_modules/spawn-sync
> node postinstall                                                                  
                                                                                    
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/x509):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 761 packages in 18.046s

node v9.11.1 (maybe v9.x and v8.x?) seems to work. See also Southern/node-x509#68 (mentioned by @dmitrizagidulin )

@csarven csarven changed the title node-gyp fails x509 build in node <= v10.2 node-gyp fails x509 build in node v10.2 May 24, 2018
@RubenVerborgh
Copy link
Contributor

It's okay, this is an optional dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants