Skip to content

cdktf: No prebuilt binaries found (target=22.0.0 runtime=node arch=arm64 libc= platform=linux) #3896

Open
@X-Guardian

Description

@X-Guardian

Expected Behavior

Successful install of cdktf v0.20.12 and prebuilt binary dependencies when using Node 22 on linux arm64

Actual Behavior

.../@cdktf/node-pty-prebuilt-multiarch install: Prebuild binary missing for platform linux
.../@cdktf/node-pty-prebuilt-multiarch install: prebuild-install warn install No prebuilt binaries found (target=22.16.0 runtime=node arch=arm64 libc= platform=linux)
.../@cdktf/node-pty-prebuilt-multiarch install: gyp info it worked if it ends with ok
.../@cdktf/node-pty-prebuilt-multiarch install: gyp info using [email protected]
.../@cdktf/node-pty-prebuilt-multiarch install: gyp info using [email protected] | linux | arm64

Steps to Reproduce

Using a linux arm64 machine with Node 22 installed:

pnpm add --global [email protected]

Versions

N/A

Providers

N/A

Gist

No response

Possible Solutions

Looking at the latest release action #45 on the cdktf/node-pty-prebuilt-multiarch repo, the debian-arm64v8 and alpine-arm64-v8 job's Linux - prebuild Binaries steps failed for different reasons, even though the jobs were marked as successful. This makes me assume the relevant Debian/Alpine Linux arm64 Node 22 binaries were not published.

The debian-x86_64 job completed successfully for example, and the cdktf prebuilt binary dependencies are successfully installed when using Node 22 on linux amd64.

debian-arm64v8 Error

gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | arm64
gyp ERR! find Python 
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python 
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python 
gyp ERR! configure error 
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack     at PythonFinder.fail (/node-pty/node_modules/node-gyp/lib/find-python.js:330:47)
gyp ERR! stack     at PythonFinder.runChecks (/node-pty/node_modules/node-gyp/lib/find-python.js:159:21)
gyp ERR! stack     at PythonFinder.<anonymous> (/node-pty/node_modules/node-gyp/lib/find-python.js:202:16)
gyp ERR! stack     at PythonFinder.execFileCallback (/node-pty/node_modules/node-gyp/lib/find-python.js:294:16)
gyp ERR! stack     at exithandler (node:child_process:334:5)
gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:346:5)
gyp ERR! stack     at ChildProcess.emit (node:events:378:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
gyp ERR! stack     at onErrorNT (node:internal/child_process:480:16)
gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:81:21)
gyp ERR! System Linux 6.8.0-1021-azure
gyp ERR! command "/usr/local/bin/node" "/node-pty/node_modules/.bin/node-gyp" "rebuild" "--target=21.0.0" "--devdir=/tmp/prebuildify/node" "--arch=arm64" "--release"
gyp ERR! cwd /node-pty
gyp ERR! node -v v15.8.0
gyp ERR! node-gyp -v v9.4.1
gyp ERR! not ok 
node-gyp exited with 1

alpine-arm64v8 Error

g++: internal compiler error: Segmentation fault signal terminated program cc1plus
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://gitlab.alpinelinux.org/alpine/aports/-/issues> for instructions.
make: *** [pty.target.mk:111: Release/obj.target/pty/src/unix/pty.o] Error 4
make: Leaving directory '/node-pty/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/node-pty/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Linux 6.8.0-1021-azure
gyp ERR! command "/usr/local/bin/node" "/node-pty/node_modules/.bin/node-gyp" "rebuild" "--target=21.0.0" "--devdir=/tmp/prebuildify/node" "--arch=arm64" "--release"
gyp ERR! cwd /node-pty
gyp ERR! node -v v16.20.2
gyp ERR! node-gyp -v v9.4.1
gyp ERR! not ok 
node-gyp exited with 1

Workarounds

No response

Anything Else?

No response

References

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnewUn-triaged issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions