BlankMauser
Topic Author
Posts: 3
Joined: 02 Oct 2024, 09:07

Unity WebGL Build Error (Function Signature Mismatch)

27 Dec 2024, 01:42

Web GL Builds failing with the following error messages on Unity 6.1 Alpha with NoesisGUI 3.2.6:
Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm_mt\build.js failed with output:

E:\UnityProjectsSSD\CrossPaw>set MYDIR=C:\Program Files\Unity\Hub\Editor\6000.1.0a3\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\ 

E:\UnityProjectsSSD\CrossPaw>goto FOUND_MYDIR 
emcc: warning: -pthread + ALLOW_MEMORY_GROWTH may run non-wasm code slowly, see https://github.com/WebAssembly/design/issues/1271 [-Wpthreads-mem-growth]
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_SetCallbacks
>>> defined as (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32) -> i32 in E:/UnityProjectsSSD/CrossPaw/Library/Bee/artifacts/WebGL/il2cppOutput/build/GameAssembly.a(y1r7e4ai1s0s.o)
>>> defined as (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32) -> void in D:/Downloads/NoesisGUI-Unity-3.2.6-Indie/Runtime/Libraries/WebGL/Noesis.a(RenderBindings.o)

wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_CloneRenderTarget
>>> defined as (i32, i32) -> i32 in E:/UnityProjectsSSD/CrossPaw/Library/Bee/artifacts/WebGL/il2cppOutput/build/GameAssembly.a(y1r7e4ai1s0s.o)
>>> defined as (i32, i32, i32) -> i32 in D:/Downloads/NoesisGUI-Unity-3.2.6-Indie/Runtime/Libraries/WebGL/Noesis.a(RenderBindings.o)

wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceD3D12_Create
>>> defined as (i32, i32, i32, i32, i32, i32) -> i32 in E:/UnityProjectsSSD/CrossPaw/Library/Bee/artifacts/WebGL/il2cppOutput/build/GameAssembly.a(y1r7e4ai1s0s.o)
>>> defined as (i32, i32) -> i32 in D:/Downloads/NoesisGUI-Unity-3.2.6-Indie/Runtime/Libraries/WebGL/Noesis.a(UnityBindings.o)

wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceAGC_SetCommandBuffer
>>> defined as (i32, i32) -> i32 in E:/UnityProjectsSSD/CrossPaw/Library/Bee/artifacts/WebGL/il2cppOutput/build/GameAssembly.a(y1r7e4ai1s0s.o)
>>> defined as (i32, i32) -> void in D:/Downloads/NoesisGUI-Unity-3.2.6-Indie/Runtime/Libraries/WebGL/Noesis.a(UnityBindings.o)

wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceGNM_SetContext
>>> defined as (i32, i32) -> i32 in E:/UnityProjectsSSD/CrossPaw/Library/Bee/artifacts/WebGL/il2cppOutput/build/GameAssembly.a(y1r7e4ai1s0s.o)
>>> defined as (i32, i32) -> void in D:/Downloads/NoesisGUI-Unity-3.2.6-Indie/Runtime/Libraries/WebGL/Noesis.a(UnityBindings.o)

wasm-ld: error: --shared-memory is disallowed by Error.o because it was not compiled with 'atomics' or 'bulk-memory' features.
emcc: error: '"C:/Program Files/Unity/Hub/Editor/6000.1.0a3/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\wasm-ld.exe" @C:\Users\ciaru\AppData\Local\Temp\emscripten_vvw8dd8v.rsp.utf-8' failed (returned 1)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Any word on how I could fix this? Fails with Render Graph on or off, have tried various code stripping and scripting defines on/off.
 
User avatar
sfernandez
Site Admin
Posts: 3199
Joined: 22 Dec 2011, 19:20

Re: Unity WebGL Build Error (Function Signature Mismatch)

27 Dec 2024, 12:30

Hello, could you please report this in our bugtracker, it seems there are some signature mismatchs between the native code and the imported functions in the managed code.
 
User avatar
jsantos
Site Admin
Posts: 4215
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unity WebGL Build Error (Function Signature Mismatch)

28 Dec 2024, 00:32

I also see messages that are probably related to new things added in Unity
wasm-ld: error: --shared-memory is disallowed by Error.o because it was not compiled with 'atomics' or 'bulk-memory' features.
It seems we are going to need another build for Unity 6
 
BlankMauser
Topic Author
Posts: 3
Joined: 02 Oct 2024, 09:07

Re: Unity WebGL Build Error (Function Signature Mismatch)

28 Dec 2024, 23:24

Hello, could you please report this in our bugtracker, it seems there are some signature mismatchs between the native code and the imported functions in the managed code.
Done, bug filed here: https://www.noesisengine.com/bugs/view.php?id=3867

Unity has also added experimental WebGPU support and WASM multithreading. However, this current issue was with WebGL.

Who is online

Users browsing this forum: Semrush [Bot] and 10 guests