-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Error in fresh Ubuntu 22.04.2 install: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) crossgen-corelib.proj #82873
Comments
On Debian / Ubuntu the quickest way to set runtime build environment is by running:
e.g. MSBuild Exec task require locales during the build: dotnet/dotnet-buildtools-prereqs-docker#284. Debian-like distros don't come with preconfigured locale in base installation. |
Thanks @am11. Good info. The error message I saw wasn't helpful enough. I expect more than one user hitting this problem and scratching their heads. So I wonder if we should improve the way we handle this:
|
Alternatively, we could simply improve our workflow documentation to include locales in the list of dependencies to install, and describe the manual steps to execute on Debian-like distros to prevent the error: Similar to what the docker PR fixed: https://github.com/dotnet/dotnet-buildtools-prereqs-docker/pull/284/files |
dont think this is a crossgen2 specific issue, rather something with infra? |
Closing since this is not crossgen2 related. @carlossanlop, please reopen if you are still hitting any failures. |
I recently formatted my Surface Pro X (ARM64), installed WSL, and added Ubuntu 22.04.2 LTS.
I cloned runtime, installed all the required dependencies for building, and ran the command:
Unfortunately, the build failed with an error that crashed my WSL and I had to restart my laptop. This was the error that showed up multiple times before freezing the WSL terminal window:
Unfortunately, I was unable to see the exact line where it failed. As mentioned, this message showed up many times and the window was frozen.
I searched this error and found an AskUbuntu thread that suggested running these commands against the desired locale:
I tried running it using the one that showed up in the error and it succeeded:
After that, I built runtime again (same command), and it succeded.
What could've caused the error when building? Is this some misconfiguration in our build scripts that we need to fix, or some problem with this Ubuntu version?
The text was updated successfully, but these errors were encountered: