pnpm install failed, Ubuntu 22.04.2
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 248
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Running pnpm install I am getting a failed install, on Ubuntu 22.04.2, using Node v18.16.0, pnpm v8.2.0.
I can see that node-pre-gyp is deprecated and replaced by @mapbox/node-pre-gyp, not sure if the problem is related to fontnik using the deprecated package.
Logs below. I jus wanna make some fonts :(
TOUCH Release/obj.target/action_before_build.stamp
│ CXX(target) Release/obj.target/fontnik/src/node_fontnik.o
│ <command-line>: error: "_GLIBCXX_USE_CXX11_ABI" redefined
│ <command-line>: note: this is the location of the previous definition
│ make: *** [fontnik.target.mk:156: Release/obj.target/fontnik/src/node_fontnik.o] Error 1
│ make: Leaving directory '/home/giacomo/Documents/prog/projects/maps/fonts/node_modules/.pnpm/fontnik@0.6.0/node_modules/fontnik/build'
│ gyp ERR! build error
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/lib/build.js:203:23)
│ gyp ERR! stack at ChildProcess.emit (node:events:513:28)
│ gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
│ gyp ERR! System Linux 6.5.0-26-generic
│ gyp ERR! command "/home/giacomo/.nvm/versions/node/v18.16.0/bin/node" "/usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build=true" "--module=/home/
│ gyp ERR! cwd /home/giacomo/Documents/prog/projects/maps/fonts/node_modules/.pnpm/fontnik@0.6.0/node_modules/fontnik
│ gyp ERR! node -v v18.16.0
│ gyp ERR! node-gyp -v v9.3.1
│ gyp ERR! not ok
│ node-pre-gyp ERR! build error
│ node-pre-gyp ERR! stack Error: Failed to execute '/home/giacomo/.nvm/versions/node/v18.16.0/bin/node /usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-bu
│ node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/giacomo/Documents/prog/projects/maps/fonts/node_modules/.pnpm/node-pre-gyp@0.14.0/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
│ node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28)
│ node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1091:16)
│ node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:302:5)
│ node-pre-gyp ERR! System Linux 6.5.0-26-generic
│ node-pre-gyp ERR! command "/home/giacomo/.nvm/versions/node/v18.16.0/bin/node" "/home/giacomo/Documents/prog/projects/maps/fonts/node_modules/.pnpm/node-pre-gyp@0.14.0/node_modules/node-pre-gyp/bin/n
│ node-pre-gyp ERR! cwd /home/giacomo/Documents/prog/projects/maps/fonts/node_modules/.pnpm/fontnik@0.6.0/node_modules/fontnik
│ node-pre-gyp ERR! node -v v18.16.0
│ node-pre-gyp ERR! node-pre-gyp -v v0.14.0
│ node-pre-gyp ERR! not ok
│ Failed to execute '/home/giacomo/.nvm/versions/node/v18.16.0/bin/node /usr/local/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build=true --module=/home/giacomo
└─ Failed in 1m 33.2s at /home/giacomo/Documents/prog/projects/maps/fonts/node_modules/.pnpm/fontnik@0.6.0/node_modules/fontnik
Contributor guide
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
Start by reproducing pnpm install with Node v18.16.0 and pnpm v8.2.0 on Ubuntu 22.04.2, focusing on the fontnik@0.6.0 native build output from node-gyp. Trace the duplicate _GLIBCXX_USE_CXX11_ABI definition and confirm that installation completes and fonts can be generated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, node.js, ubuntu
- Domain
- build-system, devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100