This error occurs when emsripten is trying to prebuild and cache its C
standard library to be used with your project. It should only do it once,
and then keep reusing it. To exclude Visual Studio issues, can you try e.g.
running 'python tests/runner.py asm1' in the Emscripten root directory to
check that the tests pass? Running the tests will also populate the libc
cache, and after that building anything e.g. from VS should skip that step.
Clearing ~/.emscripten_cache might also be worth a try, if something is
corrupted there.


2014-02-13 3:48 GMT+02:00 Mark Hahn <[email protected]>:

> I have loaded my windows app into visual studio with a config of
> emscripten.  The emscripten is from the latest SDK.
>
> It took me a whole day to get the build to complete successfully with the
> windows headers I copied from visual studio.  I butchered the windows
> headers to get all the types to work.
>
> Now that I have gotten my C files to build I am getting an emscripten
> error at the end of the build.  I've never worked with emscripten so it's
> very possible I'm doing something stupid with the Visual Studio config.
>  The errors are below.
>
> Meanwhile I'll switch to my ubuntu environment to see if I can compile
> without having to deal with the painful visual studio.
>
> Does anybody have an idea what I'm doing wrong here?
>
> 1>------ Build started: Project: jspaige-win32, Configuration: Debug
> Emscripten ------
> 1>  Traceback (most recent call last):
> 1>    File "C:\Program Files (x86)\Emscripten\emscripten\1.8.2\\emcc",
> line 1692, in <module>
> 1>      libfile = shared.Cache.get(name, create)
> 1>    File "C:\Program Files
> (x86)\Emscripten\emscripten\1.8.2\tools\cache.py", line 36, in get
> 1>      shutil.copyfile(creator(), cachename)
> 1>    File "C:\Program Files (x86)\Emscripten\emscripten\1.8.2\\emcc",
> line 1457, in create_libc
> 1>      return build_libc('libc.bc', libc_files)
> 1>    File "C:\Program Files (x86)\Emscripten\emscripten\1.8.2\\emcc",
> line 1423, in build_libc
> 1>      shared.Building.link(o_s, in_temp(lib_filename))
> 1>    File "C:\Program Files
> (x86)\Emscripten\emscripten\1.8.2\tools\shared.py", line 1057, in link
> 1>      if Building.is_bitcode(f):
> 1>    File "C:\Program Files
> (x86)\Emscripten\emscripten\1.8.2\tools\shared.py", line 1446, in is_bitcode
> 1>      b = open(filename, 'r').read(4)
> 1>  IOError: [Errno 2] No such file or directory:
> 'c:\\users\\admini~1\\appdata\\local\\temp\\tmphmmwmz\\err.c.o'
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Emscripten\Microsoft.Cpp.Emscripten.Targets(117,5):
> error MSB6006: "C:\Program Files
> (x86)\Emscripten\emscripten\1.8.2\emcc.bat" exited with code 1.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to