Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Builds failing after upgrading to 2022.2

Discussion in 'WebGL' started by dinkelstefan, Jan 11, 2023.

  1. dinkelstefan

    dinkelstefan

    Joined:
    Mar 13, 2019
    Posts:
    29
    Hi there,

    I tried newly released 2022.2.1f1 but (clean) builds are now failing in the "Linking build.js (wasm)" phase with an unclear error message.

    Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js: undefined symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ (referenced by top-level compiled C/C++ code)



    upgraded from 2021.1.7f1, any idea what causes this and how I could fix and/or debug this error message?
     
    OmarVector likes this.
  2. dinkelstefan

    dinkelstefan

    Joined:
    Mar 13, 2019
    Posts:
    29
    Some more info from Editor.log

    Code (CSharp):
    1. ##### Custom Environment Variables
    2. EM_CONFIG=C:\Program Files\Unity\Hub\Editor\2022.2.1f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\.emscripten
    3. EMSDK_PYTHON=C:\Program Files\Unity\Hub\Editor\2022.2.1f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\python\python.exe
    4. EMCC_SKIP_SANITY_CHECK=1
    5. EM_FROZEN_CACHE=1
    6. EM_WORKAROUND_PYTHON_BUG_34780=1
    7. EM_WORKAROUND_WIN7_BAD_ERRORLEVEL_BUG=1
    8. ##### ExitCode
    9. 1
    10. ##### Output
    11. error: undefined symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ (referenced by top-level compiled C/C++ code)
    12. warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols
    13. warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
    14. warning: __ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
    15. Error: Aborting compilation due to previous errors
    16. emcc: error: '"C:/Program Files/Unity/Hub/Editor/2022.2.1f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/node/node.exe" "C:\Program Files\Unity\Hub\Editor\2022.2.1f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\src\compiler.js" C:\Users\STEFAN~1\AppData\Local\Temp\tmp4_8xydfj.json' failed (returned 1)
    17. *** Tundra build failed (965.34 seconds - 0:16:05), 346 items updated, 551 evaluated
    18. ExitCode: 3 Duration: 16m:05s
     
  3. dinkelstefan

    dinkelstefan

    Joined:
    Mar 13, 2019
    Posts:
    29
    Deleting and rebuilding the Library folder did not solve the issue
     
  4. dinkelstefan

    dinkelstefan

    Joined:
    Mar 13, 2019
    Posts:
    29
    After some searching in files for this signature, it seems to be caused by a Draco plugin. This plugin might not support the latest Emscripten version?

    upload_2023-1-11_15-17-26.png

    Submitted an issue on the github page for the Draco plugin, still looking for advice on how to build.

    https://github.com/atteneder/DracoUnity/issues/55
     
    OmarVector and Samasab like this.
  5. fxxjdeddqq

    fxxjdeddqq

    Joined:
    Dec 28, 2022
    Posts:
    3
    got same issue on 22.2.4f1c1

    Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js: undefined symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ (referenced by top-level compiled C/C++ code)
     
    OmarVector likes this.