zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.16k stars 2.98k forks source link

[Windows] Could not compile `zed`: `rustc-LLVM ERROR: out of memory` #20022

Closed just-ero closed 16 hours ago

just-ero commented 17 hours ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I am trying to build Zed for Windows.
I followed https://github.com/zed-industries/zed/blob/main/docs/src/development/windows.md (which is incomplete; I additionally had to install spectre-mitigated libs via VS, and I need to pass --target x86_64-pc-windows-msvc).

I can get all of the crates to compile except for zed:

Exit message ``` > cargo run --release --target x86_64-pc-windows-msvc warning: zed@0.161.0: Info: using '633b665379c18a06959102c3857889b8bcbde4bb' hash for ZED_COMMIT_SHA env var Compiling zed v0.161.0 (D:\Code\Projects\.cloned\zed\crates\zed) rustc-LLVM ERROR: out of memory Allocation failed The following warnings were emitted during compilation: warning: zed@0.161.0: Info: using '633b665379c18a06959102c3857889b8bcbde4bb' hash for ZED_COMMIT_SHA env var error: could not compile `zed` (bin "zed") Caused by: process didn't exit successfully: `C:\Users\Ero\.rustup\toolchains\1.81-i686-pc-windows-msvc\bin\rustc.exe --crate-name zed --edition=2021 crates\zed\src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=209 --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto=thin -C codegen-units=16 -C debuginfo=1 --allow=clippy::style --allow=clippy::type_complexity --deny=clippy::todo --allow=clippy::single_range_in_vec_init --allow=clippy::should_implement_trait --deny=clippy::redundant_closure --deny=clippy::question_mark --allow=clippy::new_ret_no_self --deny=clippy::module_inception --deny=clippy::dbg_macro --check-cfg cfg(docsrs) --check-cfg "cfg(feature, values(\"mimalloc\"))" -C metadata=9c72a2396775d9fa --out-dir D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps --target x86_64-pc-windows-msvc -L dependency=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps -L dependency=D:\Code\Projects\.cloned\zed\target\release\deps --extern activity_indicator=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libactivity_indicator-be946b045fc0704d.rlib --extern anyhow=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libanyhow-ff82560bec2beeb6.rlib --extern assets=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libassets-1d635f4c8ce6c1dc.rlib --extern assistant=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libassistant-4b46c953d312a8ac.rlib --extern async_watch=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libasync_watch-06c4d1bc73735246.rlib --extern audio=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libaudio-351da2c2c3d81cd0.rlib --extern auto_update=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libauto_update-d43056970ede64e4.rlib --extern backtrace=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libbacktrace-cf321b1142a33da0.rlib --extern breadcrumbs=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libbreadcrumbs-bebc8c3fcbb545a0.rlib --extern call=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libcall-e66d08e799998dd6.rlib --extern channel=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libchannel-a1e96d7cd9630cad.rlib --extern chrono=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libchrono-ec5cec1edb3eb51f.rlib --extern clap=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libclap-fbe6db126310f40d.rlib --extern cli=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libcli-2a7e0dbf05c44c79.rlib --extern client=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libclient-f008de4d115e3307.rlib --extern collab_ui=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libcollab_ui-4095fbaf8d811c0d.rlib --extern collections=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libcollections-253c68ebb9d432f2.rlib --extern command_palette=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libcommand_palette-887bfb4410ebb943.rlib --extern command_palette_hooks=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libcommand_palette_hooks-9340bd9a9f130de3.rlib --extern copilot=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libcopilot-35775d19b56b22e9.rlib --extern db=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libdb-2301d47afa9cdc0e.rlib --extern diagnostics=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libdiagnostics-8d346039c088499f.rlib --extern editor=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libeditor-6f36b865619bd583.rlib --extern env_logger=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libenv_logger-8c79d3df9f0aa3b7.rlib --extern extension=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libextension-5ce13af4e382ca31.rlib --extern extensions_ui=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libextensions_ui-6d3d91670bc9aee5.rlib --extern feature_flags=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libfeature_flags-66d66bc1da52ea33.rlib --extern feedback=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libfeedback-3998d0f8e8336bbf.rlib --extern file_finder=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libfile_finder-489662c12bcfddb5.rlib --extern file_icons=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libfile_icons-0158bb87c6802054.rlib --extern fs=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libfs-145c38995272fe1c.rlib --extern futures=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libfutures-10b1d282cdc803a0.rlib --extern git=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libgit-bc9cca70cd352150.rlib --extern git_hosting_providers=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libgit_hosting_providers-b4c8c9b0144424ce.rlib --extern go_to_line=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libgo_to_line-032820f7e0e82a9b.rlib --extern gpui=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libgpui-7348be41c62ad1ea.rlib --extern http_client=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libhttp_client-e46a4e4846a36b39.rlib --extern image_viewer=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libimage_viewer-94533ea161a11613.rlib --extern inline_completion_button=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libinline_completion_button-7ea8cf3e6b7f2910.rlib --extern install_cli=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libinstall_cli-38841e7c639690a4.rlib --extern journal=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libjournal-98561dccccd346bf.rlib --extern language=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liblanguage-1661c0adc42c8127.rlib --extern language_model=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liblanguage_model-571e53c4d738c72c.rlib --extern language_selector=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liblanguage_selector-5d8b7699bb097144.rlib --extern language_tools=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liblanguage_tools-c91c8f3aba6bfe3b.rlib --extern languages=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liblanguages-832e09bf8f6c33d8.rlib --extern libc=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liblibc-5bf966d0d6b101fb.rlib --extern log=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liblog-50f21f9591668692.rlib --extern markdown_preview=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libmarkdown_preview-31ed498d1a4b0ac8.rlib --extern menu=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libmenu-c5a8054300167791.rlib --extern nix=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libnix-49840c79de67ddc7.rlib --extern node_runtime=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libnode_runtime-f29194ecc4e958a6.rlib --extern notifications=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libnotifications-b8eb6dac6496a889.rlib --extern outline=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liboutline-95be1a9a24c429cd.rlib --extern outline_panel=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liboutline_panel-f6ce14012ae094b9.rlib --extern parking_lot=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libparking_lot-f9c43cd231201201.rlib --extern paths=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libpaths-468a52d89c81ed48.rlib --extern profiling=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libprofiling-2c7ad969e5b6d6fd.rlib --extern project=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libproject-2fca223ef51a3cca.rlib --extern project_panel=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libproject_panel-35c353e2d3bec745.rlib --extern project_symbols=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libproject_symbols-a5bada8e71995ded.rlib --extern proto=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libproto-1653a0e2b7ae7329.rlib --extern quick_action_bar=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libquick_action_bar-63ae79deb4b5734a.rlib --extern recent_projects=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\librecent_projects-7e0ce47a87561724.rlib --extern release_channel=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\librelease_channel-f7f9664554211388.rlib --extern remote=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libremote-663eb75e9487ebc3.rlib --extern repl=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\librepl-abc2ae958b2b4c74.rlib --extern reqwest_client=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libreqwest_client-6774edebb9f22208.rlib --extern rope=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\librope-73b0301fb4a36011.rlib --extern search=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsearch-551a33441586f29f.rlib --extern serde=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libserde-b22881d6d593b0ce.rlib --extern serde_json=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libserde_json-bcf7e7d171fcd00c.rlib --extern session=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsession-85f6515b391bf3f7.rlib --extern settings=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsettings-5aae8ebeb8ffba19.rlib --extern settings_ui=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsettings_ui-122a555742f60e99.rlib --extern shellexpand=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libshellexpand-8e429a23eba0c8d7.rlib --extern simplelog=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsimplelog-e72dc2a223816167.rlib --extern smol=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsmol-d0b73ec895aceddb.rlib --extern snippet_provider=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsnippet_provider-7d36ae8b32a8ca7a.rlib --extern snippets_ui=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsnippets_ui-1fc2ee026ff0324f.rlib --extern supermaven=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsupermaven-b0fe0fb44a35b30c.rlib --extern sysinfo=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libsysinfo-7207809a4b276f26.rlib --extern tab_switcher=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libtab_switcher-4849392414e58f45.rlib --extern task=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libtask-81c3f93a62665fbe.rlib --extern tasks_ui=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libtasks_ui-439ce17070a99751.rlib --extern telemetry_events=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libtelemetry_events-bb04e92091a57d65.rlib --extern terminal_view=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libterminal_view-8de5e8f4b42af7da.rlib --extern theme=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libtheme-0a80ab460b5b86b3.rlib --extern theme_selector=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libtheme_selector-513d9213f446541c.rlib --extern time=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libtime-b15eef2d8a112e79.rlib --extern toolchain_selector=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libtoolchain_selector-e604ba463ba1b4c3.rlib --extern ui=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libui-87a55138b96e538b.rlib --extern url=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liburl-48c4e281db11b0fe.rlib --extern urlencoding=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\liburlencoding-a208e8e4fa7d1838.rlib --extern util=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libutil-f5389a832b795605.rlib --extern uuid=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libuuid-3338c5d362d5b370.rlib --extern vim=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libvim-30ac962f3334ccf3.rlib --extern welcome=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libwelcome-6a98325c254bad2c.rlib --extern windows=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libwindows-75227366b62e9bf7.rlib --extern workspace=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libworkspace-a2d61fd88d5c4145.rlib --extern zed_actions=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\deps\libzed_actions-8675845b44d642b5.rlib --cfg windows_slim_errors -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\zed-8d41a11c329a04cc\out -l dylib=resource -C link-arg=/stack:8388608 -L native=C:\Users\Ero\.cargo\registry\src\index.crates.io-1cd66030c949c28d\windows_x86_64_msvc-0.52.6\lib -L native=C:\Users\Ero\.cargo\registry\src\index.crates.io-1cd66030c949c28d\windows_x86_64_msvc-0.48.5\lib -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\ring-caff73c710992594\out -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\ring-b6aa3196b6d05df7\out -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\gpui-cb1e4910132ff984\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\zstd-sys-0f8dd020a6305486\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\libgit2-sys-c804d083b59e86a8\out\build -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\libz-sys-27e894c1b051ab5e\out\lib -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\libz-sys-27e894c1b051ab5e\out\lib -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-0d93383e61d1a454\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\wasmtime-71eb22ad3462633b\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\wasmtime-fiber-7cc4f1e55e368523\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-json-835f7ca7207a5274\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\libsqlite3-sys-b0e7c198123729e4\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\lmdb-master-sys-f603cd3f8253fea5\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\blake3-59cd0462bf5babcc\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\blake3-59cd0462bf5babcc\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\bin\HostX64\x64\cl.exe\..\..\..\..\lib\spectre\x64" -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-bash-9006c028d3f86ca4\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-c-25b1e1ef19bbf2e7\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-cpp-4a25c10230e052d2\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-css-6cbda2e87b5dd08a\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-diff-15339d1b82b31752\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-go-9d4254c9fd998055\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-gomod-c12f0f6e1c2c4ff9\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-gowork-d21db129bf4558f2\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-jsdoc-67aecee12aa24d13\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-md-c9ba0c5fcb3e4721\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-python-8acd986fd08cd565\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-regex-3626ad9a8295fcb8\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-rust-d3b1195d07721806\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-typescript-f90f1a268d8c6fd0\out -L "native=C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.42.34432\atlmfc\lib\x64" -L native=D:\Code\Projects\.cloned\zed\target\x86_64-pc-windows-msvc\release\build\tree-sitter-yaml-e328253921d96288\out` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN) ```

Environment

I do not know what the "copy system specs into clipboard commend palette action" is.

My system is the following:

OS Name                          Microsoft Windows 11 Pro
Version                          10.0.22631 Build 22631
System Type                      x64-based PC
Processor                        AMD Ryzen 7 5800X 8-Core Processor, 4200 Mhz, 8 Core(s), 16 Logical Processor(s)
Installed Physical Memory (RAM)  64.0 GB

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

No response

SomeoneToIgnore commented 16 hours ago

I additionally had to install spectre-mitigated libs via VS

That is a good point, someone can add it into the docs.

--target x86_64-pc-windows-msvc

Quite odd, that is a default, unless I confuse something?

rustc-LLVM ERROR: out of memory

I see two issues there:

https://www.google.com/search?q=rustc-LLVM+ERROR%3A+out+of+memory+g%21

Zed cannot really help with that issue.

just-ero commented 16 hours ago

Obviously, I have searched for the error. Otherwise I would not have opened the issue.

How much RAM does Zed require, exactly? How is 64 GB not enough? It might be nice to remark this somewhere.

cc @SomeoneToIgnore

SomeoneToIgnore commented 16 hours ago

And what did you find that led you to think it's related to Zed? Have you seen https://github.com/rust-lang/rust/issues/60294 ? This could be a good starting point to understand what's wrong with your toolchain.

https://github.com/zed-industries/zed/actions/runs/11608670326/job/32324388845#step:1:2 is working, daily, and that agent has 64 GB of RAM indeed: image

I also build it daily, same as many people around, including somebody making nighlty builds: https://github.com/zed-industries/zed/discussions/15159

just-ero commented 16 hours ago

Considering that's the first Google result, yes, I have of course seen it. I can't gather any information on how to solve the problem from there.

My system (what I presume the linked issue calls the "host") is not 32-bit.

SomeoneToIgnore commented 16 hours ago

Given that Windows is not officially supported (ergo this issue won't be addressed properly) and other people, including me and GH agents, are building it fine (mine is 64-bit)

I can't gather any information on how to solve the problem from there.

exactly the same situation here.

Feel free to come back with more details.

just-ero commented 16 hours ago

What other details can I possibly give? I included my system specifications, my steps to build, what else is there?

SomeoneToIgnore commented 16 hours ago

I wish I could knew — I would have asked for them immediately. It's a whole research no one but the owner of a faulty system can do.

just-ero commented 13 hours ago

It looks like the build succeeds fine for debug. I've been asking around on the rust support forums and their Discord server, but am not getting any answers. I'll either wait for one or I guess I'll wait for Zed to release on Windows proper.

just-ero commented 11 hours ago

I had to run rustup override set stable-x86_64-pc-windows-msvc. It was using 1.81-i686-pc-windows-msvc (override) before. I'm not sure why or when this happened.

SomeoneToIgnore commented 11 hours ago

So that fixed it all?

https://github.com/zed-industries/zed/blob/main/rust-toolchain.toml could influence that (judging from the 1.81 number), but not sure about the i686 part, that looks very odd.

just-ero commented 11 hours ago

Hm. Not sure, actually. I uninstalled all i686 toolchains, but when I run cargo run --release again, it seems to re-install i686:

> rustup toolchain list
stable-x86_64-pc-windows-msvc

> cargo run --release
info: syncing channel updates for '1.81-i686-pc-windows-msvc'
SomeoneToIgnore commented 11 hours ago

rustup show (in Zed's dir) and rustup override list might give some food for thought about that override, but it's a funny system you've got for sure.

just-ero commented 11 hours ago

Sigh. Well, the issue was that I must have ran rustup default sometime in the past. I don't know when or why. My .rustup/settings.toml looked like this:

default_host_triple = "i686-pc-windows-msvc"
default_toolchain = "nightly-i686-pc-windows-msvc"
profile = "default"
version = "12"

[overrides]