Skip to content

ICE: Not enough storage to process this command #15344

@sinistersnare

Description

@sinistersnare

Hello, Im trying to get rust-bindgen working, and im getting an ICE.

It's probably me being stupid, but still, I am pretty sure ICEs shouldnt happen, and should be fixed.

So i have installed LLVM, and am calling the following command through the rust-bindgen folder.

$ BACKTRACE=1 rustc lib.rs -L C:/users/silvermd/desktop/llvm/build/Debug+Assert/lib

and get the following scary message (without warnings):

SilvermD@PC-R901WNZL ~/Desktop
$ RUST_BACKTRACE=1 rustc rustpy/rust-bindgen/lib.rs -L C:/Users/silvermd/Deskto
p/llvm/build/Debug+Asserts/lib
error: linking with `gcc` failed: exit code: 1
note: gcc '-m32' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\i686-pc-mingw32\l
ib' '-o' 'bindgen-49da6271-0.0.dll' 'bindgen.o' '-Wl,--whole-archive' '-lmoresta
ck' '-Wl,--no-whole-archive' 'bindgen.metadata.o' '-shared-libgcc' '-Wl,--enable
-long-section-names' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\i686-pc-mingw
32\lib' '-lrustc-d252d482-0.11.0-pre' '-L' 'C:\Program Files (x86)\Rust\bin\rust
lib\i686-pc-mingw32\lib' '-larena-063bff73-0.11.0-pre' '-L' 'C:\Program Files (x
86)\Rust\bin\rustlib\i686-pc-mingw32\lib' '-lsyntax-555559ea-0.11.0-pre' '-L' 'C
:\Program Files (x86)\Rust\bin\rustlib\i686-pc-mingw32\lib' '-ldebug-1e940314-0.
11.0-pre' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\i686-pc-mingw32\lib' '-l
fmt_macros-5125f3bd-0.11.0-pre' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\i6
86-pc-mingw32\lib' '-lterm-4e4945a5-0.11.0-pre' '-L' 'C:\Program Files (x86)\Rus
t\bin\rustlib\i686-pc-mingw32\lib' '-lgraphviz-7b3cf89d-0.11.0-pre' '-L' 'C:\Pro
gram Files (x86)\Rust\bin\rustlib\i686-pc-mingw32\lib' '-ltime-4bb3739b-0.11.0-p
re' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\i686-pc-mingw32\lib' '-lserial
ize-0352aab7-0.11.0-pre' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\i686-pc-m
ingw32\lib' '-llog-cd053230-0.11.0-pre' '-L' 'C:\Program Files (x86)\Rust\bin\ru
stlib\i686-pc-mingw32\lib' '-lgetopts-c94737d1-0.11.0-pre' '-L' 'C:\Program File
s (x86)\Rust\bin\rustlib\i686-pc-mingw32\lib' '-lflate-92afea7e-0.11.0-pre' '-L'
 'C:\Program Files (x86)\Rust\bin\rustlib\i686-pc-mingw32\lib' '-lstd-59beb4f7-0
.11.0-pre' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\i686-pc-mingw32\lib' '-
lsync-305341d2-0.11.0-pre' '-L' 'C:\Program Files (x86)\Rust\bin\rustlib\i686-pc
-mingw32\lib' '-lrustrt-d8560cb2-0.11.0-pre' '-L' 'C:\Users\silvermd\Desktop\llv
m\build\Debug+Asserts\lib' '-L' 'C:\Users\silvermd\Desktop\.rust' '-L' 'C:\Users
\silvermd\Desktop' '-Wl,-Bdynamic' '-lclang' '-Wl,-Bdynamic' '-lshell32' '-lpsap
i' '-limagehlp' '-lm' '-lstdc++' '-lkernel32' '-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://doc.rust-lang.org/complement-bugr
eport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'failed to print diagnostics: OS Error 8: Not enough stor
age is available to process this command.
', C:\bot\slave\nightly-win\build\src\libsyntax\diagnostic.rs:336

stack backtrace:
   1: 0x70dca039
   2: 0x701c9431
   3: 0x701c8f8e
   4: 0x6a3d4b70
   5: 0x6a3d40a2
   6: 0x65ae7fbe
   7: 0x65ae02f0
   8: 0x65b7ce07
   9: 0x65b7417b
  10: 0x65c2ca5f
  11: 0x65c29f8d
  12: 0x65c3dc2e
  13: 0x65c3dae6
  14: 0x64173963
  15: 0x701c8c45
  16: 0x701c5e53
  17: 0x6417380c
  18: 0x701c879f
  19: 0x77699f72

Running windows 7 64 bit, with msys and git-bash. The nightly is

$ rustc -v rustc 0.11.0-pre-nightly (90ab2f8b616634cff8e02f12c529504c088d52e8 2014-07-01 01 :01:36 +0000)

I can run a standard hello world program that links to clang, but this does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions