Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question WebGL Build issue: undefined symbol: DownloadFile

Discussion in 'Web' started by BruceKristelijn, Oct 16, 2023.

  1. BruceKristelijn

    BruceKristelijn

    Joined:
    Apr 28, 2017
    Posts:
    108
    When I build for WebGL I always get the following error:

    Code (CSharp):
    1. Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js: undefined symbol: DownloadFile (referenced by top-level compiled C/C++ code)
    Is there anything we can do to solve this? This error has been haunting us all weekend now.

    Editor version: 2022.3.7f1

    All errors:
    Code (CSharp):
    1. Build completed with a result of 'Failed' in 309 seconds (308579 ms)
    2. 3 errors
    Code (CSharp):
    1. Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:
    2. error: undefined symbol: DownloadFile (referenced by top-level compiled C/C++ code)
    3. warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols
    4. warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
    5. warning: _DownloadFile may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
    6. Error: Aborting compilation due to previous errors
    7. emcc: error: '"C:/Program Files/Unity/Hub/Editor/2022.3.7f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/node/node.exe" "C:\Program Files\Unity\Hub\Editor\2022.3.7f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\src\compiler.js" D:\TEMP\tmp3ahc_ijz.json' failed (returned 1)
    8.  
    Code (CSharp):
    1. Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js: Aborting compilation due to previous errors
    2. 0x00007ff61a84229d (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007ff61a847249 (Unity) StackWalker::ShowCallstack
    4. 0x00007ff61b8133a1 (Unity) GetStacktrace
    5. 0x00007ff61bed4c02 (Unity) DebugStringToFile
    6. 0x00007ff619758736 (Unity) DebugLogHandler_CUSTOM_Internal_Log
    7. 0x0000022ed6f57b53 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    8. 0x0000022ed6f57a6b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    9. 0x0000022ed6f577b0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    10. 0x0000022ed949d315 (Mono JIT Code) UnityEngine.Debug:LogError (object)
    11. 0x0000022ed949cc8b (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:DefaultResultProcessor (Bee.BinLog.NodeFinishedMessage,bool,bool)
    12. 0x0000022ed949d223 (Mono JIT Code) UnityEditor.WebGL.WebGlBuildPostprocessor:WebGLLinkerResultProcessor (Bee.BinLog.NodeFinishedMessage)
    13. 0x0000022ed949c5a7 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:ReportBuildResults ()
    14. 0x0000022ed6f8d023 (Mono JIT Code) UnityEditor.Modules.BeeBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs)
    15. 0x0000022ed6f8b6f3 (Mono JIT Code) UnityEditor.WebGL.WebGlBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs)
    16. 0x0000022ed6f8b1bb (Mono JIT Code) UnityEditor.Modules.DefaultBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
    17. 0x0000022ed6f8ac51 (Mono JIT Code) UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
    18. 0x0000022ed6f8afc5 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
     
    Last edited: Oct 16, 2023
  2. Cheen_2226

    Cheen_2226

    Joined:
    May 11, 2023
    Posts:
    3
    I have similar error like undefined symbol:Download, Did you solve it?
     
  3. Cheen_2226

    Cheen_2226

    Joined:
    May 11, 2023
    Posts:
    3
    and my Unity version 2021.3.2
     
  4. Cheen_2226

    Cheen_2226

    Joined:
    May 11, 2023
    Posts:
    3
    i try to check plugins in my project, after i removed a plugin called 'XCharts' , it succeeded to build