cargo icon indicating copy to clipboard operation
cargo copied to clipboard

Ubuntu (wsl1 & 2) doesn't support Cargo Build

Open xmas7 opened this issue 1 year ago • 6 comments

Summary

user@DESKTOP-54YU45:/mnt/d/Blockchain/Solana/program-rust$ cargo build Updating crates.io index

Unresolved Issues

Tried to use 'Cargo Build' in Ubuntu wsl on Windows rather than Ubuntu Native System. But it seems not working properly...?

Future Extensions

No response

About tracking issues

No response

xmas7 avatar Aug 26 '22 12:08 xmas7

D:\Blockchain\Solana\program-rust>cargo build Compiling proc-macro2 v1.0.30 Compiling unicode-xid v0.2.2 Compiling syn v1.0.80 Compiling serde_derive v1.0.130 Compiling serde v1.0.130 Compiling typenum v1.14.0 Compiling version_check v0.9.3 Compiling cfg-if v1.0.0 Compiling subtle v2.4.1 Compiling semver-parser v0.7.0 Compiling winapi v0.3.9 Compiling getrandom v0.1.16 Compiling crunchy v0.2.2 Compiling memchr v2.3.4

My Case://

Anthony-3 avatar Aug 26 '22 12:08 Anthony-3

I'm doing the majority of my development on WSL2 at the moment, so it works generally, leaving us to narrow down what is failing in your specific case.

Can you give more detail of what is happening. Is it hanging while updating the index or something else? Can you run with -vv to see if we get extra information

epage avatar Aug 26 '22 12:08 epage

Are you on wsl1 or wsl2? You can see this by running wsl -l -v in a powershell prompt. Which version of Ubuntu do you have? Using win10, win11 or something else?

se7enstar25 avatar Aug 26 '22 12:08 se7enstar25

I'm doing the majority of my development on WSL2 at the moment, so it works generally, leaving us to narrow down what is failing in your specific case.

Can you give more detail of what is happening. Is it hanging while updating the index or something else? Can you run with -vv to see if we get extra information

Thanks for your reply. Wil try -vv and post some more details here.

xmas7 avatar Aug 26 '22 12:08 xmas7

Millucas as well.

xmas7 avatar Aug 26 '22 12:08 xmas7

"Not working properly" isn't exactly the most helpful description of the issue, can you tell how it doesn't work more specifically? Or is it just getting stuck at the index? Because that can take a while to download on slower internet connections. :P

gimbling-away avatar Sep 11 '22 12:09 gimbling-away

I am going to close due to lack of a minimal set of steps to reproduce, and it has been inactive for a while. Feel free to open a new issue if there is any update. Thank you!

weihanglo avatar Feb 19 '23 12:02 weihanglo