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: nodePackages.cdktf-cli #391385

Closed
3 tasks done
FKouhai opened this issue Mar 19, 2025 · 0 comments
Closed
3 tasks done

Build failure: nodePackages.cdktf-cli #391385

FKouhai opened this issue Mar 19, 2025 · 0 comments
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin

Comments

@FKouhai
Copy link
Contributor

FKouhai commented Mar 19, 2025

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

nix-shell -p python39 nodePackages_latest.cdktf-cli

Can Hydra reproduce this build failure?

Please select the Hydra Status.

Link to Hydra build job

No response

Relevant log output

npm warn config production Use `--omit=dev` instead.
\|/-\|/-\|/-\npm error code 1
\npm error path /nix/store/02rs2yas0hcw7axh0p5l1q38y5n5f96c-cdktf-cli-0.20.11/lib/node_modules/cdktf-cli/node_modules/@cdktf/node-pty-prebuilt-multiarch
\npm error command failed
\npm error command sh -c node scripts/check-prebuild.js || prebuild-install || node scripts/install.js
\npm error make: Entering directory '/nix/store/02rs2yas0hcw7axh0p5l1q38y5n5f96c-cdktf-cli-0.20.11/lib/node_modules/cdktf-cli/node_modules/@cdktf/node-pty-prebuilt-multiarch/build'
npm error   CXX(target) Release/obj.target/pty/src/unix/pty.o
npm error make: Leaving directory '/nix/store/02rs2yas0hcw7axh0p5l1q38y5n5f96c-cdktf-cli-0.20.11/lib/node_modules/cdktf-cli/node_modules/@cdktf/node-pty-prebuilt-multiarch/build'
\npm error Prebuild binary missing for platform darwin
npm error prebuild-install warn install unable to get local issuer certificate
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.0.0
npm error gyp info using node@23.10.0 | darwin | arm64
npm error gyp info find Python using Python version 3.12.9 found at "/nix/store/ibnllhp7pc88kgcrxa2gddxcbyl0vngk-python3-3.12.9/bin/python3"
npm error gyp WARN read config.gypi ENOENT: no such file or directory, open '/nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/include/node/config.gypi'
npm error gyp info spawn /nix/store/ibnllhp7pc88kgcrxa2gddxcbyl0vngk-python3-3.12.9/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/nix/store/yph39j7h2a593qmfrnqd4ajpapr4z01z-nodejs-23.10.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/nix/store/02rs2yas0hcw7axh0p5l1q38y5n5f96c-cdktf-cli-0.20.11/lib/node_modules/cdktf-cli/node_modules/@cdktf/node-pty-prebuilt-multiarch/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/nix/store/yph39j7h2a593qmfrnqd4ajpapr4z01z-nodejs-23.10.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources',
npm error gyp info spawn args '-Dnode_gyp_dir=/nix/store/yph39j7h2a593qmfrnqd4ajpapr4z01z-nodejs-23.10.0/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/$(Configuration)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/nix/store/02rs2yas0hcw7axh0p5l1q38y5n5f96c-cdktf-cli-0.20.11/lib/node_modules/cdktf-cli/node_modules/@cdktf/node-pty-prebuilt-multiarch',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error ../src/unix/pty.cc:669:10: error: use of undeclared identifier 'openpty'
npm error   669 |   return openpty(amaster, aslave, name, (termios *)termp, (winsize *)winp);
npm error       |          ^
npm error ../src/unix/pty.cc:717:10: error: use of undeclared identifier 'forkpty'
npm error   717 |   return forkpty(amaster, name, (termios *)termp, (winsize *)winp);
npm error       |          ^
npm error ../src/unix/pty.cc:734:1: warning: cast from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' (aka 'void (*)(Local<v8::Object>)') to 'node::addon_register_func' (aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void *)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error   734 | NODE_MODULE(pty, init)
npm error       | ^~~~~~~~~~~~~~~~~~~~~~
npm error /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/src/node.h:1261:3: note: expanded from macro 'NODE_MODULE'
npm error  1261 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm error       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/src/node.h:1227:7: note: expanded from macro 'NODE_MODULE_X'
npm error  1227 |       (node::addon_register_func) (regfunc),                          \
npm error       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error In file included from ../src/unix/pty.cc:20:
npm error In file included from ../../../nan/nan.h:62:
npm error In file included from /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/src/node.h:73:
npm error In file included from /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/deps/v8/include/v8.h:24:
npm error In file included from /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/deps/v8/include/v8-array-buffer.h:13:
npm error In file included from /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/deps/v8/include/v8-object.h:11:
npm error /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/deps/v8/include/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error   493 |                          reinterpret_cast<Callback>(callback), type);
npm error       |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/src/node_object_wrap.h:85:18: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<node::ObjectWrap>' requested here
npm error    85 |     persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
npm error       |                  ^
npm error In file included from ../src/unix/pty.cc:20:
npm error In file included from ../../../nan/nan.h:62:
npm error In file included from /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/src/node.h:73:
npm error In file included from /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/deps/v8/include/v8.h:24:
npm error In file included from /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/deps/v8/include/v8-array-buffer.h:13:
npm error In file included from /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/deps/v8/include/v8-object.h:11:
npm error /nix/store/3280sikvpfss6cjfxxbm6g9cxq3xrvjj-node-sources/deps/v8/include/v8-persistent-handle.h:493:26: warning: cast from 'typename WeakCallbackInfo<ObjectWrap>::Callback' (aka 'void (*)(const WeakCallbackInfo<ObjectWrap> &)') to 'Callback' (aka 'void (*)(const WeakCallbackInfo<void> &)') converts to incompatible function type [-Wcast-function-type-mismatch]
npm error   493 |                          reinterpret_cast<Callback>(callback), type);
npm error       |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../../../nan/nan_object_wrap.h:64:50: note: in instantiation of function template specialization 'v8::PersistentBase<v8::Object>::SetWeak<Nan::ObjectWrap>' requested here
npm error    64 |     persistent().v8::PersistentBase<v8::Object>::SetWeak(
npm error       |                                                  ^
npm error 3 warnings and 2 errors generated.
npm error make: *** [pty.target.mk:124: Release/obj.target/pty/src/unix/pty.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/nix/store/yph39j7h2a593qmfrnqd4ajpapr4z01z-nodejs-23.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:216:23)
npm error gyp ERR! System Darwin 24.3.0
npm error gyp ERR! command "/nix/store/yph39j7h2a593qmfrnqd4ajpapr4z01z-nodejs-23.10.0/bin/node" "/nix/store/yph39j7h2a593qmfrnqd4ajpapr4z01z-nodejs-23.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /nix/store/02rs2yas0hcw7axh0p5l1q38y5n5f96c-cdktf-cli-0.20.11/lib/node_modules/cdktf-cli/node_modules/@cdktf/node-pty-prebuilt-multiarch
npm error gyp ERR! node -v v23.10.0
npm error gyp ERR! node-gyp -v v11.0.0
npm error gyp ERR! not ok
\npm error A complete log of this run can be found in: /private/tmp/nix-build-cdktf-cli-0.20.11.drv-0/.npm/_logs/2025-03-19T21_16_32_562Z-debug-0.log

Additional context

Whenever I try to use a version newer than 0.19.1 of cdktf (via devbox) it fails to build on macOS aarch64

System metadata

nix-shell -p nix-info --run "nix-info -m"                                                                                                                                                                                   
warning: 'https://cache.flakehub.com' does not appear to be a binary cache
these 2 paths will be fetched (0.01 MiB download, 0.10 MiB unpacked):
  /nix/store/cvxpbpj70j4qldflmyy54jhj32klvvz9-DarwinTools-1
  /nix/store/61q7qx55d18sbd5cc380y531za99armb-nix-info
copying path '/nix/store/cvxpbpj70j4qldflmyy54jhj32klvvz9-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/61q7qx55d18sbd5cc380y531za99armb-nix-info' from 'https://cache.nixos.org'...
 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.3.0, macOS 15.3.2`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.24.12`
 - channels(root): `""`
 - nixpkgs: `/nix/store/shh5sdqk4h0s482fxyyw6v5hhljapby9-source`

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@FKouhai FKouhai added 0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

2 participants