nodejs / nodejs/node-gyp

Doesn't build on NodeJS 19.0.1

Open
#2,757 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Linux
Dominant language
Python
Stars
10.7k
Forks
1.9k
Avg merge
1d 4h
Merged PRs (30d)
5

Description

  • Node Version: v19.0.1
  • Platform: Linux Ubuntu SMP x86_64 GNU/Linux
  • Compiler: gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  • Module: re2
Verbose output (from npm or node-gyp):
➤ YN0008: │ esbuild@npm:0.14.54 must be rebuilt because its dependency tree changed
➤ YN0009: │ re2@npm:1.17.7 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-6a01c75b/build.log)
➤ YN0000: └ Completed in 24s 261ms
➤ YN0000: Failed with errors in 46s 646ms
➜  calckey git:(develop) ✗ cat /tmp/xfs-6a01c75b/build.log
# This file contains the result of Yarn building a package (re2@npm:1.17.7)
# Script name: install

Trying https://github.com/uhop/node-re2/releases/download/1.17.7/linux-x64-111.br ...
Trying https://github.com/uhop/node-re2/releases/download/1.17.7/linux-x64-111.gz ...
Building locally ...

> re2@1.17.7 rebuild
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@9.1.0
gyp info using node@19.0.1 | linux | x64
gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp http 500 https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: 500  status code downloading checksum
gyp ERR! stack     at downloadShasums (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:214:15)
gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack     at async Promise.all (index 1)
gyp ERR! stack     at async go (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:189:5)
gyp ERR! stack     at async install (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:62:18)
gyp ERR! System Linux 5.4.0-122-generic
gyp ERR! command "/home/misskey/.nvm/versions/node/v19.0.1/bin/node" "/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/misskey/calckey/node_modules/.store/re2-npm-1.17.7-02f9dd5be3/node_modules/re2
gyp ERR! node -v v19.0.1
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok 
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "1".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v19.0.1

> re2@1.17.7 rebuild
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@9.1.0
gyp info using node@19.0.1 | linux | x64
gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp http 500 https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: 500  status code downloading checksum
gyp ERR! stack     at downloadShasums (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:214:15)
gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack     at async Promise.all (index 1)
gyp ERR! stack     at async go (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:189:5)
gyp ERR! stack     at async install (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:62:18)
gyp ERR! System Linux 5.4.0-122-generic
gyp ERR! command "/home/misskey/.nvm/versions/node/v19.0.1/bin/node" "/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/misskey/calckey/node_modules/.store/re2-npm-1.17.7-02f9dd5be3/node_modules/re2
gyp ERR! node -v v19.0.1
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok 
➜  calckey git:(develop) ✗  "/home/misskey/.nvm/versions/node/v19.0.1/bin/node" "/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp info it worked if it ends with ok
gyp info using node-gyp@9.1.0
gyp info using node@19.0.1 | linux | x64
gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp http 500 https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: 500  status code downloading checksum
gyp ERR! stack     at downloadShasums (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:214:15)
gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack     at async Promise.all (index 1)
gyp ERR! stack     at async go (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:189:5)
gyp ERR! stack     at async install (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:62:18)
gyp ERR! System Linux 5.4.0-122-generic
gyp ERR! command "/home/misskey/.nvm/versions/node/v19.0.1/bin/node" "/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/misskey/calckey
gyp ERR! node -v v19.0.1
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok 
gyp http GET https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v19.0.1/node-v19.0.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp http 500 https://nodejs.org/download/release/v19.0.1/SHASUMS256.txt
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: 500  status code downloading checksum
gyp ERR! stack     at downloadShasums (/home/misskey/.nvm/versions/node/v19.0.1/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:214:15)
gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack     at async Promise.all (index 1)

Seems to be a checksum error.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with node-gyp/lib/install.js, specifically the downloadShasums path named in the stack trace, and reproduce the v19.0.1 rebuild failure. Determine whether the 500 response from Node.js SHASUMS256.txt is handled as expected; done means the reported Node.js version can complete the relevant build step without this checksum failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, python
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.