Title: Build from source on Windows - Cargo error without Rust toolchain · Issue #63451 · nodejs/node · GitHub
Open Graph Title: Build from source on Windows - Cargo error without Rust toolchain · Issue #63451 · nodejs/node
X Title: Build from source on Windows - Cargo error without Rust toolchain · Issue #63451 · nodejs/node
Description: Follows on from #63213 Version v27.0.0-pre 0e8fb91 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem build What steps will reproduce the bug? On Windows 11 25H2, follow prerequisite Manual install instructions using: Python 3.14.5...
Open Graph Description: Follows on from #63213 Version v27.0.0-pre 0e8fb91 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem build What steps will reproduce the bug? On Windows 11 25H2, follow prerequisite Manual i...
X Description: Follows on from #63213 Version v27.0.0-pre 0e8fb91 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem build What steps will reproduce the bug? On Windows 11 25H2, follow prerequisite Manual i...
Opengraph URL: https://github.com/nodejs/node/issues/63451
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build from source on Windows - Cargo error without Rust toolchain","articleBody":"Follows on from https://github.com/nodejs/node/issues/63213\n\n### Version\n\nv27.0.0-pre 0e8fb913d857b0d4123995e401293a0c9ee5efd8\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.26200.0 x64\n```\n\n### Subsystem\n\nbuild\n\n### What steps will reproduce the bug?\n\nOn Windows 11 25H2, follow prerequisite [Manual install](https://github.com/nodejs/node/blob/main/BUILDING.md#option-1-manual-install) instructions using:\n- Python 3.14.5\n- Visual Basic 2026 Build Tools 18.6.0 (May 2026)\n - C++ Clang Compiler for Windows (Microsoft.VisualStudio.Component.VC.Llvm.Clang)\n - MSBuild support for LLVM (clang-cl) toolset (Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset)\n- NASM 3.01\n- Do not install a Rust toolchain (and otherwise ensure that there is no `rustc` or `cargo` installed).\n\nIn PowerShell 7 terminal, execute:\n\n```shell\ngit clone https://github.com/nodejs/node\ncd node\ngit switch main\ngit clean -xfd # if repeating\n.\\vcbuild.bat\nRelease\\node -e \"console.log('Hello from Node.js', process.version)\"\n```\n\n\n### How often does it reproduce? Is there a required condition?\n\nAlways if there is no Rust toolchain installed. Test with the following, which should both return errors:\n\n```shell\nrustc --version\ncargo --version\n```\n\n\n\n### What is the expected behavior? Why is that the expected behavior?\n\nIf a Rust toolchain is not installed, `vcbuild.bat` should warn (check for `rustc` \u0026 `cargo`) that Temporal support is disabled and continue to build without error.\n\nThis is implied by the documentation section [Building Node.js with Temporal support](https://github.com/nodejs/node/blob/main/BUILDING.md#building-nodejs-with-temporal-support) and the fact that on Linux, builds succeed if there is no Rust toolchain installed.\n\n\u003e If `--v8-enable-temporal-support` and `--v8-disable-temporal-support` are both omitted, `configure.py` probes for `cargo` and `rustc`. If either is missing, a warning is printed and Temporal support is disabled.\n\nIt should also be possible to disable temporal support actively when building under Windows.\n\n### What do you see instead?\n\nBuild emits error message and continues:\n\n\u003e C:\\Program Files (x86)\\Microsoft Visual Studio\\18\\BuildTools\\MSBuild\\Microsoft\\VC\\v180\\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'Cargo.toml' exited with code 1\n\u003e . [C:\\Users\\mikem\\github\\NODEJS\\node\\deps\\crates\\node_crates.vcxproj]\n\nDirectory `Release` is not created. (`out\\Release` also contains no `node.exe`)\n\n### Additional information\n\nLogs\n\n```text\n.\\vcbuild.bat\nLooking for Python\nPython found in C:\\Users\\mikem\\AppData\\Local\\Microsoft\\WindowsApps\\\\python.exe\nPython 3.14.5\nLooking for NASM\nClangCL is required because the Node.js version being compiled is \u003e= 24.\nLooking for Visual Studio 2026\ncalling: \"C:\\Program Files (x86)\\Microsoft Visual Studio\\18\\BuildTools\\VC\\\\Auxiliary\\Build\\vcvarsall.bat\" amd64\n**********************************************************************\n** Visual Studio 2026 Developer Command Prompt v18.6.0\n** Copyright (c) 2026 Microsoft Corporation\n**********************************************************************\n[vcvarsall.bat] Environment initialized for: 'x64'\nFound MSVS version 18.0\nFound Clang version 20.1.8\nconfigure --dest-cpu=x64 --clang-cl=20.1.8\n[WARNING] A shebang '/bin/sh' was found but does not match any supported template (e.g. '/usr/bin/python'), so it will be treated as an arbitrary command.\n[WARNING] To prevent execution of programs that are not Python runtimes, set 'shebang_can_run_anything' to 'false' in your configuration file.\nNode.js configure: Found Python 3.14.5...\nWarning: Missing input files:\nC:\\Users\\mikem\\github\\NODEJS\\node\\deps\\uv\\src\\win\\atomicops-inl.h\nC:\\Users\\mikem\\github\\NODEJS\\node\\deps\\inspector_protocol\\crdtp\\maybe.h\nC:\\Users\\mikem\\github\\NODEJS\\node\\tools\\v8_gypfiles\\..\\..\\deps\\v8\\third_party\\abseil-cpp\\absl\\base\\internal\\nullability_impl.h\nC:\\Users\\mikem\\github\\NODEJS\\node\\tools\\v8_gypfiles\\..\\..\\deps\\v8\\third_party\\abseil-cpp\\absl\\base\\internal\\fast_type_id.h\nC:\\Users\\mikem\\github\\NODEJS\\node\\tools\\v8_gypfiles\\..\\..\\deps\\v8\\third_party\\abseil-cpp\\absl\\base\\internal\\identity.h\nINFO: configure completed successfully\nProject files generated.\n\nsrc\\hdr_histogram.c(149,23): warning : incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'unsigned long *' [-Wincompatible-pointer-types] [C:\\Us\ners\\mikem\\github\\NODEJS\\node\\deps\\histogram\\histogram.vcxproj]\nC:\\Program Files (x86)\\Microsoft Visual Studio\\18\\BuildTools\\VC\\Tools\\Llvm\\x64\\lib\\clang\\20\\include\\intrin0.h(71,48): message : passing argument to parameter '_Index' here [C:\\Users\\mike\nm\\github\\NODEJS\\node\\deps\\histogram\\histogram.vcxproj]\n In file included from src\\hdr_histogram.c:18:\nsrc\\hdr_atomic.h(23,13): warning : unused function 'hdr_atomic_store_pointer' [-Wunused-function] [C:\\Users\\mikem\\github\\NODEJS\\node\\deps\\histogram\\histogram.vcxproj]\n histogram.vcxproj -\u003e ..\\..\\out\\Release\\lib\\histogram.lib\n cargo_build\n Traceback (most recent call last):\n File \"C:\\Users\\mikem\\github\\NODEJS\\node\\deps\\crates\\cargo_build.py\", line 60, in \u003cmodule\u003e\n main()\n ~~~~^^\n File \"C:\\Users\\mikem\\github\\NODEJS\\node\\deps\\crates\\cargo_build.py\", line 47, in main\n ret = subprocess.call(cmd)\n File \"C:\\Users\\mikem\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\subprocess.py\", line 396, in call\n with Popen(*popenargs, **kwargs) as p:\n ~~~~~^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\mikem\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\subprocess.py\", line 1039, in __init__\n self._execute_child(args, executable, preexec_fn, close_fds,\n ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n pass_fds, cwd, env,\n ^^^^^^^^^^^^^^^^^^^\n ...\u003c5 lines\u003e...\n gid, gids, uid, umask,\n ^^^^^^^^^^^^^^^^^^^^^^\n start_new_session, process_group)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\mikem\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\subprocess.py\", line 1553, in _execute_child\n hp, ht, pid, tid = _winapi.CreateProcess(executable, args,\n ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n # no special security\n ^^^^^^^^^^^^^^^^^^^^^\n ...\u003c4 lines\u003e...\n cwd,\n ^^^^\n startupinfo)\n ^^^^^^^^^^^^\n FileNotFoundError: [WinError 2] The system cannot find the file specified\nC:\\Program Files (x86)\\Microsoft Visual Studio\\18\\BuildTools\\MSBuild\\Microsoft\\VC\\v180\\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'Cargo.toml' exited with code 1\n. [C:\\Users\\mikem\\github\\NODEJS\\node\\deps\\crates\\node_crates.vcxproj]\n```\n","author":{"url":"https://github.com/MikeMcC399","@type":"Person","name":"MikeMcC399"},"datePublished":"2026-05-20T09:19:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/63451/node/issues/63451"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e4738a9e-bcf5-2a24-bfb3-9b0032a9f6c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A10:3415D:22112B:2DE1C0:6A4D32FE |
| html-safe-nonce | 0861dcf174354ae1f263072225806fd89ba0109a3442a9b2d00318c568857be2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTEwOjM0MTVEOjIyMTEyQjoyREUxQzA6NkE0RDMyRkUiLCJ2aXNpdG9yX2lkIjoiNTI5NDIzMjk1MDA1Njc2MDA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9b41d2a922655ef9458c31f543c4256c6ba4a5aa13a7337f00b8b7ae2fae70af |
| hovercard-subject-tag | issue:4484983729 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/63451/issue_layout |
| twitter:image | https://opengraph.githubassets.com/13e46b5de259c46d418ed559bdfcfa3b4f327a818319a5dbf735c3a6c0db0bbb/nodejs/node/issues/63451 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/13e46b5de259c46d418ed559bdfcfa3b4f327a818319a5dbf735c3a6c0db0bbb/nodejs/node/issues/63451 |
| og:image:alt | Follows on from #63213 Version v27.0.0-pre 0e8fb91 Platform Microsoft Windows NT 10.0.26200.0 x64 Subsystem build What steps will reproduce the bug? On Windows 11 25H2, follow prerequisite Manual i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MikeMcC399 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width