Skip to content

WebGL Build Error #649

@roiderhl

Description

@roiderhl

What happened?

Environment
Cesium for Unity version:1.20.0
Unity Editor Version:2022.3.62f3
Test Project:CesiumForUnitySamples-v1.20.0

Build Error:
Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:
wasm-ld: warning: function signature mismatch: time

defined as (i32) -> i64 in ThirdPart/[email protected]/Plugins/WebGL/lib/libspdlog.a(spdlog.cpp.o)
defined as (i32) -> i32 in C:\Program Files\Unity\Hub\Editor\2022.3.62f3c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\lib\wasm32-emscripten\libc.a(emscripten_time.o)

wasm-ld: warning: function signature mismatch: _ZNSt3__26chrono12system_clock9to_time_tERKNS0_10time_pointIS1_NS0_8durationIxNS_5ratioILx1ELx1000000EEEEEEE

defined as (i32) -> i64 in ThirdPart/[email protected]/Plugins/WebGL/lib/libspdlog.a(spdlog.cpp.o)
defined as (i32) -> i32 in C:\Program Files\Unity\Hub\Editor\2022.3.62f3c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\lib\wasm32-emscripten\libc++.a(chrono.o)

wasm-ld: warning: function signature mismatch: mktime

defined as (i32) -> i64 in ThirdPart/[email protected]/Plugins/WebGL/lib/libabsl_time_zone.a(time_zone_libc.cc.o)
defined as (i32) -> i32 in C:\Program Files\Unity\Hub\Editor\2022.3.62f3c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\lib\wasm32-emscripten\libc.a(emscripten_time.o)

wasm-ld: warning: function signature mismatch: difftime

defined as (i64, i64) -> f64 in ThirdPart/[email protected]/Plugins/WebGL/lib/libCesiumAsync.a(CachingAssetAccessor.cpp.o)
defined as (i32, i32) -> f64 in C:\Program Files\Unity\Hub\Editor\2022.3.62f3c1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\lib\wasm32-emscripten\libc.a(difftime.o)

wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: ThirdPart/[email protected]/Plugins/WebGL/libCesiumForUnityNative-Runtime.a(CesiumCreditSystem.cpp.o): undefined symbol: __wasm_lpad_context
wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
emcc: error: '"C:/Program Files/Unity/Hub/Editor/2022.3.62f3c1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\wasm-ld.exe" @C:\Users\ADMINI~1\AppData\Local\Temp\emscripten_p1e21t1b.rsp.utf-8' failed (returned 1)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Environment

Cesium for Unity version:
Unity Editor Version:
Operating System:

Reproduction steps

...

Supporting evidence

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageNew issues in need of triage to determine reproducibility, scope, and urgency

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions