About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Emscripten with latest EE
Author Message
Prodigy Offline
Member

Post: #16
RE: Emscripten with latest EE
Looks like the highest possible emscripten sdk which is compatible with vs-tool is v 1.36.14, managed to build the "Compile Web" but llvm-link always crashes when building "Make Web Libs".

[Image: hSXGKCF.png]

I am no longer seeing WEB folder on each of folders in the ThirdPartyLibs folder, does it mean Web Libs is depreciated?
(This post was last modified: 06-29-2017 02:41 PM by Prodigy.)
06-29-2017 02:37 PM
Find all posts by this user Quote this message in a reply
Prodigy Offline
Member

Post: #17
RE: Emscripten with latest EE
Still stuck with error above, already tried to replace backward slash into forward slash on params.space() function (builder) but no luck.

@Esenthel
Ping!.
06-29-2017 06:44 PM
Find all posts by this user Quote this message in a reply
Prodigy Offline
Member

Post: #18
RE: Emscripten with latest EE
Here is the full stacktrace and enabled emcc_debug :
Code:
C:\Dev\EsenthelEngine>emcc -v -s ASSERTIONS=1 "c:\Dev\EsenthelEngine\Engine/EsenthelEngine.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Brotli/Windows/Emscripten/Release/Brotli.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletCollision.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletDynamics.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/LinearMath.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/FDK-AAC/Windows/Emscripten/Release/FDK-AAC.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/JpegTurbo/Web/Emscripten/Release/turbojpeg-static.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/LZ4/Windows/Emscripten/Release/LZ4.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/LZHAM/Windows/Emscripten/Release/LZHAM.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/LZMA/Windows/Emscripten/Release/Lzma.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Mpg123/Windows/Emscripten/Release_Generic/mpg123.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Ogg/Windows/Emscripten/Release/Ogg.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Png/Windows/Emscripten/LIB Release/Png.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Recast/Windows/Emscripten/Release/Recast.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Snappy/Windows/Emscripten/Release/snappy.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/SQLite/Windows/Emscripten/Release/SQLite.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Theora/Windows/Emscripten/Release/Theora.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis File.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Webp/Windows/Emscripten/Release/WebP.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Zlib/Windows/Emscripten/Release/Zlib.bc" "c:\Dev\EsenthelEngine\ThirdPartyLibs/Zstd/Windows/bin/Emscripten/Release/zstdlib.bc" -o "c:\Dev\EsenthelEngine\Editor/Bin/EsenthelEngine.bc"
DEBUG:root:Cache: acquiring multiprocess file lock to Emscripten cache
DEBUG:root:Cache: done
DEBUG:root:Cache: released multiprocess file lock to Emscripten cache
DEBUG:root:check tells us to use asm.js backend
WARNING:root:invocation: C:\Program Files\Emscripten\emscripten\1.36.14\\emcc -v -s ASSERTIONS=1 c:\Dev\EsenthelEngine\Engine/EsenthelEngine.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Brotli/Windows/Emscripten/Release/Brotli.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletCollision.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletDynamics.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/LinearMath.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/FDK-AAC/Windows/Emscripten/Release/FDK-AAC.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/JpegTurbo/Web/Emscripten/Release/turbojpeg-static.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/LZ4/Windows/Emscripten/Release/LZ4.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/LZHAM/Windows/Emscripten/Release/LZHAM.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/LZMA/Windows/Emscripten/Release/Lzma.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Mpg123/Windows/Emscripten/Release_Generic/mpg123.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Ogg/Windows/Emscripten/Release/Ogg.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Png/Windows/Emscripten/LIB Release/Png.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Recast/Windows/Emscripten/Release/Recast.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Snappy/Windows/Emscripten/Release/snappy.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/SQLite/Windows/Emscripten/Release/SQLite.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Theora/Windows/Emscripten/Release/Theora.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis File.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Webp/Windows/Emscripten/Release/WebP.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Zlib/Windows/Emscripten/Release/Zlib.bc c:\Dev\EsenthelEngine\ThirdPartyLibs/Zstd/Windows/bin/Emscripten/Release/zstdlib.bc -o c:\Dev\EsenthelEngine\Editor/Bin/EsenthelEngine.bc  (in C:\Dev\EsenthelEngine)
DEBUG:root:Checking JS engine ['C:/Program Files/Emscripten/node/4.1.1_64bit/bin/node.exe']
INFO:root:(Emscripten: Running sanity checks)
INFO:root:(Emscripten: Running sanity checks)
DEBUG:root:compiling to bitcode
DEBUG:root:emcc step "parse arguments and setup" took 0.09 seconds
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\Engine/EsenthelEngine.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Brotli/Windows/Emscripten/Release/Brotli.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletCollision.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletDynamics.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/LinearMath.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/FDK-AAC/Windows/Emscripten/Release/FDK-AAC.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/JpegTurbo/Web/Emscripten/Release/turbojpeg-static.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/LZ4/Windows/Emscripten/Release/LZ4.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/LZHAM/Windows/Emscripten/Release/LZHAM.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/LZMA/Windows/Emscripten/Release/Lzma.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Mpg123/Windows/Emscripten/Release_Generic/mpg123.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Ogg/Windows/Emscripten/Release/Ogg.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Png/Windows/Emscripten/LIB Release/Png.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Recast/Windows/Emscripten/Release/Recast.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Snappy/Windows/Emscripten/Release/snappy.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/SQLite/Windows/Emscripten/Release/SQLite.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Theora/Windows/Emscripten/Release/Theora.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis File.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Webp/Windows/Emscripten/Release/WebP.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Zlib/Windows/Emscripten/Release/Zlib.bc
DEBUG:root:using bitcode file: c:\Dev\EsenthelEngine\ThirdPartyLibs/Zstd/Windows/bin/Emscripten/Release/zstdlib.bc
DEBUG:root:emcc step "bitcodeize inputs" took 0.03 seconds
DEBUG:root:link: ['c:\\Dev\\EsenthelEngine\\Engine/EsenthelEngine.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Brotli/Windows/Emscripten/Release/Brotli.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletCollision.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletDynamics.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/LinearMath.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/FDK-AAC/Windows/Emscripten/Release/FDK-AAC.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/JpegTurbo/Web/Emscripten/Release/turbojpeg-static.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/LZ4/Windows/Emscripten/Release/LZ4.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/LZHAM/Windows/Emscripten/Release/LZHAM.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/LZMA/Windows/Emscripten/Release/Lzma.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Mpg123/Windows/Emscripten/Release_Generic/mpg123.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Ogg/Windows/Emscripten/Release/Ogg.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Png/Windows/Emscripten/LIB Release/Png.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Recast/Windows/Emscripten/Release/Recast.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Snappy/Windows/Emscripten/Release/snappy.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/SQLite/Windows/Emscripten/Release/SQLite.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Theora/Windows/Emscripten/Release/Theora.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis File.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Webp/Windows/Emscripten/Release/WebP.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Zlib/Windows/Emscripten/Release/Zlib.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Zstd/Windows/bin/Emscripten/Release/zstdlib.bc']c:\Dev\EsenthelEngine\Editor/Bin/EsenthelEngine.bc
DEBUG:root:emcc: llvm-linking: ['c:\\Dev\\EsenthelEngine\\Engine/EsenthelEngine.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Brotli/Windows/Emscripten/Release/Brotli.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletCollision.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/BulletDynamics.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Bullet/Windows/Emscripten/Release/LinearMath.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/FDK-AAC/Windows/Emscripten/Release/FDK-AAC.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/JpegTurbo/Web/Emscripten/Release/turbojpeg-static.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/LZ4/Windows/Emscripten/Release/LZ4.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/LZHAM/Windows/Emscripten/Release/LZHAM.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/LZMA/Windows/Emscripten/Release/Lzma.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Mpg123/Windows/Emscripten/Release_Generic/mpg123.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Ogg/Windows/Emscripten/Release/Ogg.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Png/Windows/Emscripten/LIB Release/Png.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Recast/Windows/Emscripten/Release/Recast.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Snappy/Windows/Emscripten/Release/snappy.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/SQLite/Windows/Emscripten/Release/SQLite.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Theora/Windows/Emscripten/Release/Theora.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Vorbis/Windows/Emscripten/Release/Vorbis File.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Webp/Windows/Emscripten/Release/WebP.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Zlib/Windows/Emscripten/Release/Zlib.bc', 'c:\\Dev\\EsenthelEngine\\ThirdPartyLibs/Zstd/Windows/bin/Emscripten/Release/zstdlib.bc'] to c:\Dev\EsenthelEngine\Editor/Bin/EsenthelEngine.bc
Wrote crash dump file "C:\Users\Prodigy\AppData\Local\Temp\llvm-link.exe-b7c2d1.dmp"
#0 0x00007ff66dcb9d04 C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0x129d04 C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0x1293ba
#1 0x00007ff66dcb9d04 C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0x12b450 C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0xcf252
#2 0x00007ff66dcb9d04 C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0xce2c9 C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0xd1d22
#3 0x00007ff66dcb9d04 C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0xd0f03 C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0x8b24
#4 0x00007ff66dcb9d04 C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0x964a C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe 0x1dc2c5
#5 0x00007ff66dcb9d04 (C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe+0x129d04)
#6 0x00007ff66dcb93ba (C:\Program Files\Emscripten\clang\e1.36.14_64bit\llvm-link.exe+0x1293ba)
0x00007FF66DCB9D04 (0x000001FCB34E0080 0x000000D000000000 0x000001FCB34E0080 0x000001FCB34E0080)
0x00007FF66DCB93BA (0x000001FCB34E0080 0x000000D0A4F8EEB0 0x000001FCBD588140 0x0000000000000000)
0x00007FF66DCBB450 (0x000000D0A4F8F080 0x000001FCAAB995A0 0x000001FCAC15D3D0 0x000000D0A4F8F620)
0x00007FF66DC5F252 (0x000000D0A4F8F080 0x000000D0A4F8F588 0x000000D0A4F8F8A0 0x000000D0A4F8F860)
0x00007FF66DC5E2C9 (0x000001FCBD8F1008 0x000001FCBD8F1008 0x0000000000000000 0x000000D0A4F8F5A0)
0x00007FF66DC61D22 (0x0000000000000000 0x000000D0A4F8F800 0x0000000000000000 0x000001FCAAB99460)
0x00007FF66DC60F03 (0x0000000000000000 0x000001FCAAB9AF40 0x000001FCAAB99460 0x00007FF66DC59075)
0x00007FF66DB98B24 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF66DB9964A (0x0000000000000000 0x0000000000000000 0x00007FF96A2F69D8 0x0000000000000000)
0x00007FF66DD6C2C5 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF96BDD2774 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FF96D820D51 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
Traceback (most recent call last):
  File "C:\Program Files\Emscripten\emscripten\1.36.14\\emcc", line 13, in <module>
    emcc.run()
  File "C:\Program Files\Emscripten\emscripten\1.36.14\emcc.py", line 1410, in run
    shared.Building.link(linker_inputs, specified_target)
  File "C:\Program Files\Emscripten\emscripten\1.36.14\tools\shared.py", line 1580, in link
    assert os.path.exists(target) and (output is None or 'Could not open input file' not in output), 'Linking error: ' + output
AssertionError: Linking error:
06-29-2017 10:57 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #19
RE: Emscripten with latest EE
The problem was due to libraries being compiled with an older version of emscripten than the one you were using.
Next release (soon) will have the engine updated to latest emscripten.
09-10-2017 11:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #20
RE: Emscripten with latest EE
(06-29-2017 09:10 AM)Prodigy Wrote:  @Esenthel
Is there any plan to move the web technology into web assembly ?
I've just tried that, however I can't make it work, I've encountered the problems listed here:
https://github.com/kripken/emscripten/issues/5566
09-11-2017 12:23 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #21
RE: Emscripten with latest EE
This will be supported in the next release!
10-05-2017 05:12 AM
Find all posts by this user Quote this message in a reply
Post Reply