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

"Not enough storage is available to process this command." on Windows 7 #13212

Closed
steves opened this issue Mar 30, 2014 · 2 comments
Closed

"Not enough storage is available to process this command." on Windows 7 #13212

steves opened this issue Mar 30, 2014 · 2 comments
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows Operating system: Windows

Comments

@steves
Copy link

steves commented Mar 30, 2014

I'm encountering a compile error while trying to get rust-sfml working. I'm running Windows 7 64-bit with 32gb of RAM and over 40gb of available disk space. I've copied the SFML and CSFML files over to MinGW and am running the latest Rust 0.10-pre-nightly installed less than an hour ago. When I run rustc src/lib.rs I get the following error:

task 'rustc' failed at 'failed to print diagnostics: unknown error (OS Error 8: Not enough storage is available to process this command.)', c:\bot\slave\nightly-win\build\src\libsyntax\diagnostic.rs:267

Running with RUST_BACKTRACE=1 I just get the following:

$ RUST_BACKTRACE=1 rustc -o lib src/lib.rs
error: linking with `gcc` failed: exit code: 1
note: gcc arguments: '-m32' '-LC:\Program Files (x86)\Rust\bin\rustlib\i686-pc-mingw32\lib' '-o' 'lib' 'lib.o' '-lmorestack' 'lib.metadata.o' '-shared-libgcc' '-LC:\Program Files (x86)\Rust\bin\rustlib\i686-pc-mingw32\lib'
'-lstd-31b43f22-0.10-pre' '-LC:\MinGW\msys\1.0\home\steve\dev\test_project\lib\rsfml\.rust' '-LC:\MinGW\msys\1.0\home\steve\dev\test_project\lib\rsfml' '-lcsfml-system' '-lcsfml-window' '-lcsfml-audio' '-lcsfml-graphics' '-lcsfml-network' '-lgcc_s' '-shared' '-lcompiler-rt'
note: error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'failed to print diagnostics: unknown error (OS Error 8: Not enough storage is available to process this command.)', C:\bot\slave\nightly-win\build\src\libsyntax\diagnostic.rs:267
stack backtrace:
   1:  0x19b8d85
   2:  0x19b8276
   3:  0x1754b00
   4:  0x1752f22
   5:   0xac0d0c
   6:   0xabe535
   7:   0xbaddc8
   8:   0xbb0ff9
   9:   0xbd43bd
  10:   0xbe5ed7
  11:   0xbe48d9
  12:   0xbe0b6e
  13:   0x42f8f3
  14:  0x1a45e1c
  15:   0x42f7a0
  16:  0x1a4919d
  17: 0x77289f72

I've looked around online and found some references to this error that involved messing around in the registry. I've tried all of them with no luck so far. I can build my own simple projects just fine so it's not a general purpose "rust is completely broken" issue.

Many of the references I've found to this error, including one on Microsoft's site, mention that this is common primarily when you have anti-virus but I'm not running any.

$ rustc -v
c:\Program Files (x86)\Rust\bin\rustc.exe 0.10-pre-nightly
host: i686-pc-mingw32
@Aatch
Copy link
Contributor

Aatch commented Mar 31, 2014

So it appears that the issue is when it's trying to print the diagnostics, after it hits an error during linking. While the issue is still valid, I suggest checking that all the libraries you are using are installed, that paths are correct and similar.

@steves
Copy link
Author

steves commented Apr 8, 2014

A clean install of MinGW fixed this problem. I must have messed up the environment somehow along the way without realizing it.

@steves steves closed this as completed Apr 8, 2014
notriddle pushed a commit to notriddle/rust that referenced this issue Sep 20, 2022
Add config to unconditionally prefer core imports over std

Fixes rust-lang/rust-analyzer#12979
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-windows Operating system: Windows
Projects
None yet
Development

No branches or pull requests

2 participants