-
Notifications
You must be signed in to change notification settings - Fork 822
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
Compiling arm gcc crashes on wsl 2 because virtual memory exhausted #5295
Comments
When that happens do Also post the entire command you use to compile. |
Well, i put 12 gb on swap and now i think it's working, but now this is result of
Yes, i'm compilling with |
Yeah 4GiB is cutting it pretty close for a -j4. Old trick: let it build with (say) -j4. Watch it run out of memory. Get over the hump with -j1 (usually a link phase). Then ctrl-c, and start it back up with -j4. Repeat. I've done that with chromium builds, which can take over 32GiB to link. But in your case with 4gb, probably just -j2, cross fingers, and be patient. The different is not worth the dance. Don't let it swap if you can. Your patience will probably run out. |
Microsoft Windows [version 10.0.19041.264]
I have tried compile arm gcc for a personal project on wsl 2, but compilation crashes because this:
I already have compiled same project on ubuntu and arch linux, but this is happening and i didn't find any issues of how solve this. It seems that wsl doesn't free memory allocated by program. Any help with this?
The text was updated successfully, but these errors were encountered: