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

1.16.0 fails to build with GCCLINK : LLVM error : I->getOperand(0)->getType() == i64 #5

Closed
virtualcodewarrior opened this issue Apr 25, 2014 · 2 comments

Comments

@virtualcodewarrior
Copy link

After installing the newest version (1.16.0), my project fails to link with the following error :

GCCLINK : LLVM error : I->getOperand(0)->getType() == i64
3>  Stack dump:
3>  0.  Program arguments: C:/Program Files/Emscripten/clang/e1.16.0_64bit\llc c:\users\me\appdata\local\temp\tmp4r2fqb\my_program_release.bc -march=js -filetype=asm -o c:\users\me\appdata\local\temp\tmpkvgbro.4.js -O2 
3>  1.  Running pass 'Expand and lower illegal >i32 operations into 32-bit chunks' on module 'c:\users\me\appdata\local\temp\tmp4r2fqb\my_program_release.bc'.
3>  Traceback (most recent call last):
3>    File "C:\Program Files\Emscripten\emscripten\1.16.0\emscripten.py", line 1433, in <module>
3>      _main(environ=os.environ)
3>    File "C:\Program Files\Emscripten\emscripten\1.16.0\emscripten.py", line 1421, in _main
3>      temp_files.run_and_clean(lambda: main(
3>    File "C:\Program Files\Emscripten\emscripten\1.16.0\tools\tempfiles.py", line 39, in run_and_clean
3>      return func()
3>    File "C:\Program Files\Emscripten\emscripten\1.16.0\emscripten.py", line 1429, in <lambda>
3>      DEBUG_CACHE=DEBUG_CACHE,
3>    File "C:\Program Files\Emscripten\emscripten\1.16.0\emscripten.py", line 1316, in main
3>      jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE)
3>    File "C:\Program Files\Emscripten\emscripten\1.16.0\emscripten.py", line 768, in emscript_fast
3>      start_funcs = backend_output.index(start_funcs_marker)
3>  ValueError: substring not found
3>  Traceback (most recent call last):
3>    File "C:\Program Files\Emscripten\emscripten\1.16.0\\emcc", line 1575, in <module>
3>      final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
3>    File "C:\Program Files\Emscripten\emscripten\1.16.0\tools\shared.py", line 1370, in emscripten
3>      assert os.path.exists(filename + '.o.js') and len(open(filename + '.o.js', 'r').read()) > 0, 'Emscripten failed to generate .js: ' + str(compiler_output)
3>  AssertionError: Emscripten failed to generate .js: 
3>
3>Build FAILED.

I build in Devstudio 2010 with vs-tool-0.9.3 installed.
This project build fine with older versions (pre 1.12).
The source project is a c++ 32 bits app.

Any idea what is causing this ??

@UplinkCoder
Copy link

Yeah you are running out of memory while building

@juj
Copy link
Collaborator

juj commented Jul 7, 2014

This looks like an Emscripten compiler side issue. A new compiler version was released in the SDK today: http://tiny.cc/2npmix . Can you check if that version still gives the issue? The error message (in that form) does not look like it should ever occur, even if it was due to running out of memory.

Let me close this issue here, and if it still reproduces in the new release, please report it to https://github.com/kripken/emscripten/issues , preferably with a small test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants