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

Build failure with v8 canary #921

Closed
aalexand opened this issue Oct 15, 2021 · 7 comments
Closed

Build failure with v8 canary #921

aalexand opened this issue Oct 15, 2021 · 7 comments

Comments

@aalexand
Copy link

We've been seeing this for a couple of months, filing to see if there are easy fixes.

Building https://github.com/google/pprof-nodejs with v8-canary gives this error:

+ timeout 60 npm install --quiet --nodedir=/bin/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0
node-pre-gyp ERR! install response status 404 Not Found on https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v3.2.0/node-v103-linux-x64-glibc.tar.gz 
node-pre-gyp WARN Pre-built binaries not installable for pprof@3.2.0 and node@17.0.0-v8-canary20211015aebb1af5c0 (node-v103 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error response status 404 Not Found on https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v3.2.0/node-v103-linux-x64-glibc.tar.gz 
In file included from /bin/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/include/node/v8-object.h:10,
                 from /bin/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/include/node/v8-array-buffer.h:13,
                 from /bin/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/include/node/v8.h:25,
                 from /bin/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/include/node/node.h:63,
                 from ../node_modules/nan/nan.h:56,
                 from ../bindings/profiler.cc:19:
/bin/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/include/node/v8-persistent-handle.h:10:10: fatal error: v8-weak-callback-info.h: No such file or directory
   10 | #include "v8-weak-callback-info.h"  // NOLINT(build/include_directory)
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [pprof.target.mk:115: Release/obj.target/pprof/bindings/profiler.o] Error 1
gyp ERR! build error 
@kkoopa
Copy link
Collaborator

kkoopa commented Oct 15, 2021 via email

@aalexand
Copy link
Author

Here is a reproducer:

@azina:~$ cd /tmp
@azina:tmp$ mkdir pprof
cd @azina:tmp$ cd pprof
/tmp/pprof
@azina:pprof$ NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/v8-canary nvm install node
Downloading and installing node v17.0.0-v8-canary20211015aebb1af5c0...
Downloading https://nodejs.org/download/v8-canary/v17.0.0-v8-canary20211015aebb1af5c0/node-v17.0.0-v8-canary20211015aebb1af5c0-linux-x64.tar.xz...
####################################################################################################################################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v17.0.0-v8-canary20211015aebb1af5c0 (npm v8.0.0)
@azina:pprof$ npm install --save pprof
npm notice
npm notice New minor version of npm available! 8.0.0 -> 8.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.0
npm notice Run npm install -g npm@8.1.0 to update!
npm notice
npm ERR! code 1
npm ERR! path /tmp/pprof/node_modules/pprof
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build
npm ERR! make: Entering directory '/tmp/pprof/node_modules/pprof/build'
npm ERR!   CXX(target) Release/obj.target/pprof/bindings/profiler.o
npm ERR! make: Leaving directory '/tmp/pprof/node_modules/pprof/build'
npm ERR! Failed to execute '/usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/bin/node /usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/tmp/pprof/node_modules/pprof/build/node-v103-linux-x64-glibc/pprof.node --module_name=pprof --module_path=/tmp/pprof/node_modules/pprof/build/node-v103-linux-x64-glibc --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v103' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.5
npm ERR! node-pre-gyp info using node@17.0.0-v8-canary20211015aebb1af5c0 | linux | x64
npm ERR! node-pre-gyp info check checked for "/tmp/pprof/node_modules/pprof/build/node-v103-linux-x64-glibc/pprof.node" (not found)
npm ERR! node-pre-gyp http GET https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v3.2.0/node-v103-linux-x64-glibc.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v3.2.0/node-v103-linux-x64-glibc.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for pprof@3.2.0 and node@17.0.0-v8-canary20211015aebb1af5c0 (node-v103 ABI, glibc) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://storage.googleapis.com/cloud-profiler/pprof-nodejs/release/v3.2.0/node-v103-linux-x64-glibc.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.2.0
npm ERR! gyp info using node@17.0.0-v8-canary20211015aebb1af5c0 | linux | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.2.0
npm ERR! gyp info using node@17.0.0-v8-canary20211015aebb1af5c0 | linux | x64
npm ERR! gyp info find Python using Python version 3.9.7 found at "/usr/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/v8-canary/v17.0.0-v8-canary20211015aebb1af5c0/node-v17.0.0-v8-canary20211015aebb1af5c0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/v8-canary/v17.0.0-v8-canary20211015aebb1af5c0/node-v17.0.0-v8-canary20211015aebb1af5c0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/v8-canary/v17.0.0-v8-canary20211015aebb1af5c0/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/v8-canary/v17.0.0-v8-canary20211015aebb1af5c0/SHASUMS256.txt
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/tmp/pprof/node_modules/pprof/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/google/home/aalexand/.cache/node-gyp/17.0.0-v8-canary20211015aebb1af5c0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/usr/local/google/home/aalexand/.cache/node-gyp/17.0.0-v8-canary20211015aebb1af5c0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/usr/local/google/home/aalexand/.cache/node-gyp/17.0.0-v8-canary20211015aebb1af5c0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/tmp/pprof/node_modules/pprof',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.2.0
npm ERR! gyp info using node@17.0.0-v8-canary20211015aebb1af5c0 | linux | x64
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from /usr/local/google/home/aalexand/.cache/node-gyp/17.0.0-v8-canary20211015aebb1af5c0/include/node/v8-object.h:10,
npm ERR!                  from /usr/local/google/home/aalexand/.cache/node-gyp/17.0.0-v8-canary20211015aebb1af5c0/include/node/v8-array-buffer.h:13,
npm ERR!                  from /usr/local/google/home/aalexand/.cache/node-gyp/17.0.0-v8-canary20211015aebb1af5c0/include/node/v8.h:25,
npm ERR!                  from /usr/local/google/home/aalexand/.cache/node-gyp/17.0.0-v8-canary20211015aebb1af5c0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:58,
npm ERR!                  from ../bindings/profiler.cc:19:
npm ERR! /usr/local/google/home/aalexand/.cache/node-gyp/17.0.0-v8-canary20211015aebb1af5c0/include/node/v8-persistent-handle.h:10:10: fatal error: v8-weak-callback-info.h: No such file or directory
npm ERR!    10 | #include "v8-weak-callback-info.h"  // NOLINT(build/include_directory)
npm ERR!       |          ^~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! compilation terminated.
npm ERR! make: *** [pprof.target.mk:115: Release/obj.target/pprof/bindings/profiler.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.10.46-4rodete4-amd64
npm ERR! gyp ERR! command "/usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/bin/node" "/usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/tmp/pprof/node_modules/pprof/build/node-v103-linux-x64-glibc/pprof.node" "--module_name=pprof" "--module_path=/tmp/pprof/node_modules/pprof/build/node-v103-linux-x64-glibc" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v103"
npm ERR! gyp ERR! cwd /tmp/pprof/node_modules/pprof
npm ERR! gyp ERR! node -v v17.0.0-v8-canary20211015aebb1af5c0
npm ERR! gyp ERR! node-gyp -v v8.2.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/bin/node /usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/tmp/pprof/node_modules/pprof/build/node-v103-linux-x64-glibc/pprof.node --module_name=pprof --module_path=/tmp/pprof/node_modules/pprof/build/node-v103-linux-x64-glibc --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v103' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/tmp/pprof/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1062:16)
npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm ERR! node-pre-gyp ERR! System Linux 5.10.46-4rodete4-amd64
npm ERR! node-pre-gyp ERR! command "/usr/local/google/home/aalexand/.nvm/versions/node/v17.0.0-v8-canary20211015aebb1af5c0/bin/node" "/tmp/pprof/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /tmp/pprof/node_modules/pprof
npm ERR! node-pre-gyp ERR! node -v v17.0.0-v8-canary20211015aebb1af5c0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.5
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /usr/local/google/home/aalexand/.npm/_logs/2021-10-15T18_50_25_956Z-debug.log

@kkoopa
Copy link
Collaborator

kkoopa commented Oct 15, 2021 via email

@ewanharris
Copy link

I think nodejs/node/pull/40526 will fix this

@aalexand
Copy link
Author

@ewanharris thanks!

@ewanharris
Copy link

Ah my bad, I see v8-weak-callback-info.h is still missing. Commenting on the PR

@aalexand
Copy link
Author

Looks like it's fixed - thanks!

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