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

windows support - cargo install ag failed #137

Closed
Slach opened this issue May 6, 2021 · 3 comments
Closed

windows support - cargo install ag failed #137

Slach opened this issue May 6, 2021 · 3 comments

Comments

@Slach
Copy link

Slach commented May 6, 2021

  --- stderr 
  /usr/bin/sh: /c/Users/Slach/AppData/Local/Temp/cargo-installnNrXZs/release/build/jemalloc-sys-6c84a4f483463000/out/jemalloc/configure: No such file or directory     
  thread 'main' panicked at 'command did not execute successfully: "sh" "/c/Users/Slach/AppData/Local/Temp/cargo-installnNrXZs/release/build/jemalloc-sys-6c84a4f483463000/out/jemalloc/configure" "--disable-cxx" "--with-jemalloc-prefix=_rjem_" "--with-private-namespace=_rjem_" "--host=x86_64-pc-win32" "--build=x86_64-pc-win32" "--prefix=C:\\Users\\Slach\\AppData\\Local\\Temp\\cargo-installnNrXZs\\release\\build\\jemalloc-sys-6c84a4f483463000\\out"                                               
  
  expected success, got: exit code: 127', C:\Users\Slach\.cargo\registry\src\github.com-1ecc6299db9ec823\jemalloc-sys-0.3.2\build.rs:392:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace                                                                                      warning: build failed, waiting for other jobs to finish...
  error: failed to compile `ag v0.16.0`, intermediate artifacts can be found at `C:\Users\Slach\AppData\Local\Temp\cargo-installnNrXZs` 

possible solutions could be found here rust-lang/rust-analyzer#696

@ntfwc
Copy link
Contributor

ntfwc commented Aug 10, 2023

This is still a problem with tikv-jemallocator.

I was able to fix the build on Windows 10. The examples in the README of tikv-jemallocator exclude it for "msvc" builds. I added the exclusions for it, same as the examples, and angle-grinder builds for me on Windows 10.

As far as I can tell, angle-grinder is working correctly on Windows 10 without tikv-jemallocator.

I will add a pull request for the change.

@rcoh
Copy link
Owner

rcoh commented Aug 12, 2023

thanks for the fix!

@rcoh rcoh closed this as completed Aug 12, 2023
@ntfwc
Copy link
Contributor

ntfwc commented Aug 20, 2023

No problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants