Hmm, never seen that before. Odd.

If this code is open, can you provide the bitcode for testing? If not, one
random guess - if you change that line (911 in emscripten.py) to replace

mem_init

(in both places) with

str(mem_init)

, does that help?

- Alon



On Tue, Oct 28, 2014 at 11:04 AM, Robert Goulet <[email protected]>
wrote:

> Hi all,
>
> I just upgraded my project to Emscripten 1.25.0 and I have a new link
> error that wasn't there with Emscripten 1.22.0.
>
> Here is what the linker outputs:
>
> Link:
>   Traceback (most recent call last):
>     File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py",
> line 1578, in <module>
>       _main(environ=os.environ)
>     File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py",
> line 1566, in _main
>       temp_files.run_and_clean(lambda: main(
>     File "C:\Program
> Files\Emscripten\emscripten\1.25.0\tools\tempfiles.py", line 39, in
> run_and_clean
>       return func()
>     File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py",
> line 1574, in <lambda>
>       DEBUG_CACHE=DEBUG_CACHE,
>     File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py",
> line 1461, in main
>       jcache=jcache, temp_files=temp_files, DEBUG=DEBUG,
> DEBUG_CACHE=DEBUG_CACHE)
>     File "C:\Program Files\Emscripten\emscripten\1.25.0\emscripten.py",
> line 911, in emscript_fast
>       %s''' % (mem_init.count(',')+1, global_initializers, mem_init)) #
> XXX wrong size calculation!
>   UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
> 234337: ordinal not in range(128)
>   Traceback (most recent call last):
>     File "C:\Program Files\Emscripten\emscripten\1.25.0\\emcc", line 1259,
> in <module>
>       final = shared.Building.emscripten(final, append_ext=False,
> extra_args=extra_args)
>     File "C:\Program Files\Emscripten\emscripten\1.25.0\tools\shared.py",
> line 1464, in emscripten
>       assert os.path.exists(filename + '.o.js'), 'Emscripten failed to
> generate .js'
>   AssertionError: Emscripten failed to generate .js
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Emscripten\Microsoft.Cpp.Emscripten.Targets(117,5):
> error MSB6006: "C:\Program Files\Emscripten\emscripten\1.25.0\emcc.bat"
> exited with code 1.
>
> Here is the link command-line use:
>
> emcc -o f:/dev/build/main.html -O2 f:/dev/build/game/game.bc
> -Wno-warn-absolute-paths -s NO_EXIT_RUNTIME=1 -s TOTAL_MEMORY=64*1024*1024
> --preload-file f:/dev/data/gamedata@/
>
> I did a clean/full rebuild to be sure there wasn't any previously built
> files around and I always get the same results. Did anyone ever had this
> problem before? How do I debug this?
> Thanks!
>
> --
> 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/d/optout.
>

-- 
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/d/optout.

Reply via email to