User avatar
Denis
Topic Author
Posts: 1
Joined: 27 Apr 2020, 01:52
Contact:

WASM: Noesis.bc: unexpected table definition(s) without corresponding symbol-table entries

29 Apr 2021, 14:55

This by compiling the native SDK to make it work on the Web via WebAssembly.
In previous versions the native SDK compiles well, but in version 3.0.11, which is the most current version, the error always occurs when I am compiling the example projects.

C:\Projects\Noesis\NoesisGUINativeSDKWin\Build>make -f NoesisGUI-wasm.mk
==== [NoesisApp] Building 'Release' configuration ====
[PCH] [NoesisApp] pch.h
[CXX] [NoesisApp] register.cpp
[BIN] [App/Theme] NoesisTheme.Styles.xaml
[BIN] [App/Theme] NoesisTheme.Fonts.xaml
.
.
.
[CXX] [App/Interactivity] TriggerActionCollection.cpp
[CXX] [App/Interactivity] TriggerBase.Interactivity.cpp
[CXX] [App/Interactivity] TriggerCollection.cpp
[LD] NoesisApp.bc
==== [Samples.IntegrationGLUT] Building 'Release' configuration ====
[CXX] [Samples/IntegrationGLUT] Main.cpp
[LD] Samples.IntegrationGLUT.bc
[HTML] Samples.IntegrationGLUT.html
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libgl-webgl2.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libgl-webgl2.a" for subsequent builds)
cache:INFO: - ok
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libal.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libal.a" for subsequent builds)
cache:INFO: - ok
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libhtml5.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libhtml5.a" for subsequent builds)
cache:INFO: - ok
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libc.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libc.a" for subsequent builds)
cache:INFO: - ok
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libcompiler_rt.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libcompiler_rt.a" for subsequent builds)
cache:INFO: - ok
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libc++-noexcept.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libc++-noexcept.a" for subsequent builds)
cache:INFO: - ok
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libc++abi-noexcept.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libc++abi-noexcept.a" for subsequent builds)
cache:INFO: - ok
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libdlmalloc.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libdlmalloc.a" for subsequent builds)
cache:INFO: - ok
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libc_rt_wasm-optz.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libc_rt_wasm-optz.a" for subsequent builds)
cache:INFO: - ok
cache:INFO: generating system library: sysroot\lib\wasm32-emscripten\lto\libsockets.a... (this will be cached in "C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libsockets.a" for subsequent builds)
cache:INFO: - ok
wasm-ld: error: ../../../../../../Bin/wasm/Noesis.bc: unexpected table definition(s) without corresponding symbol-table entries.
emcc: error: 'C:/Projects/Github/emsdk/upstream/bin\wasm-ld.exe -o ../../../../../../Bin/wasm/Samples.IntegrationGLUT.wasm ../../../../../../Bin/wasm/Samples.IntegrationGLUT.bc ../../../../../../Bin/wasm/Noesis.bc ../../../../../../Bin/wasm/NoesisApp.bc -LC:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libgl-webgl2.a C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libal.a C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libhtml5.a C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libc.a C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libcompiler_rt.a C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libc++-noexcept.a C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libc++abi-noexcept.a C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libdlmalloc.a C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libc_rt_wasm-optz.a C:\Projects\Github\emsdk\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\lto\libsockets.a -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --allow-undefined --strip-debug --export main --export stackSave --export stackRestore --export stackAlloc --export __wasm_call_ctors --export __errno_location --export setThrew --export malloc --export free --export emscripten_webgl_make_context_current --export emscripten_webgl_get_current_context --export-table --export __start_em_asm --export __stop_em_asm -z stack-size=5242880 --initial-memory=67108864 --no-entry --max-memory=67108864 --global-base=1024' failed (1)
make[1]: *** [../../../../../../Bin/wasm/Samples.IntegrationGLUT.html] Error 1
make: *** [Samples.IntegrationGLUT] Error 2
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: WASM: Noesis.bc: unexpected table definition(s) without corresponding symbol-table entries

30 Apr 2021, 11:18

We are using Emscripten 1.39.13 for building our SDK. Maybe you are using a different version?

We are considering migrating to 2.0 with NoesisGUI 3.1
 
User avatar
Ringo
Posts: 13
Joined: 12 Nov 2018, 20:33

Re: WASM: Noesis.bc: unexpected table definition(s) without corresponding symbol-table entries

09 May 2021, 22:55

Yep, we need 2.0 badly.
1.39.13 is too old, was released a year ago.

Also, can you please remove
#include <emscripten.h>
in CompilerSettings.h?
It is an overkill, forward declaration of
extern "C" void emscripten_debugger(void);
would be enough.
 

Who is online

Users browsing this forum: Google [Bot] and 72 guests