Skip to content

RUSTC no output on WSL1 #88753

@bbulkow

Description

@bbulkow

Hi!

This is not a report of the widely discussed RUSTUP issues last year on WSL1.

I am recently new to rust, and a big user of WSL. Rust installs according to the standard means just fine on WSL1 and WSL2, Ubuntu 20 LTS.

However, simply running 'rustc' with no arguments (not trying to compile, not trying to update, nothing) results in perfect actions in my WSL2 environment, and no output at all in my WSL1 environment. rustc --version outputs... nothing.

rustc is 1.54.0 stable, Windows is Win 11 beta as of 9/8/21 (can dredge up exact latest KB applied). WSL is Ubuntu 20 from the app store, but run in WSL1 mode. uname is: Linux SUPERFLY 4.4.0-22000-Microsoft #1-Microsoft Fri Jun 04 16:28:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux Hardware is a Dell XPS 17.

All my usual tests of the WSL1 install work fine (my embedded toolchain, python), the same exact install path in WSL2 of rust works fine.

This happened in two different installs, one fresh, one not fresh (long story). The fresh install is fairly minimal (required compilers but not all the cruft I've accumulated in prior installs.... you know how it goes :-)....)

Please let me know what further information I can provide.

There are no backtraces or panic, just no output, which rather limits most standard bug reports. Even 'rustc --version' emits silence. Doesn't hang - the command returns promptly - but outputs literally nothing.

Background:

You might ask why I'm using WSL1. In other testing (ESP-IDF compiles for ESP32), I found that WSL1 was nearly 10x faster for compiling embedded projects. This is because NTFS is faster, much faster, because WSL1 isn't running through Linux's NTFS system. I want/need to use NTFS files because the point is I need my editing tools to work. And, WSL1 gives access to the serial port, drop dead necessary for embedded programming as well. But, WSL2 now has graphics, and I would like to test its compile speed, so I have both installed. I might end up using WSL2 more if I can sort the serial issue, and WSL2 does work with Rust, but I think WSL1 is unfairly maligned because it has a lower number - this causes me to like to help make WSL1 work :-)

Soapbox - WSL1 is closer to the true promise of WSL - it's a command shell for windows and doesn't bring along its own requirements for file systems or anything else - which does expose "edges" like dd not working and no real path to graphics working. WSL2 is much closer to a docker container, works best on its own local files, but it doesn't have the manageability or ecosystem or cross-platform nature of Docker. WSL keeps improving, I see WSL1 and WSL2 are now exporting their local file systems into the main Windows area, so some of these reasons are vanishing, but I find WSL1 fills a critical desire in my development environment at the moment.

Powershell 7 works great with rust on this same machine, and is super fast. I'm using that more substantially now, regardless of the lousy '.exe' required all over the place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions