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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question how to solve? error: undefined symbol: sendfile (referenced by top-level compiled C/C++ code)

Discussion in 'Web' started by ypings, Oct 25, 2022.

  1. ypings

    ypings

    Joined:
    Jul 27, 2020
    Posts:
    1
    Unity 2021.3.11f1c2, mac m1
    upload_2022-10-25_22-16-57.png
    Building Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js failed with output:
    error: undefined symbol: _ZN14RefcountedData7ReleaseEv (referenced by top-level compiled C/C++ code)
    warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols
    warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
    warning: __ZN14RefcountedData7ReleaseEv may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
    error: undefined symbol: sendfile (referenced by top-level compiled C/C++ code)
    warning: _sendfile may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
    Error: Aborting compilation due to previous errors
    emcc2: error: '/Applications/Unity/Hub/Editor/2021.3.11f1c2/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/node/node /Applications/Unity/Hub/Editor/2021.3.11f1c2/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emscripten/src/compiler.js /var/folders/lj/1b_yv7ss7db44gwq37h0px5h0000gn/T/tmpu085u7d0.txt' failed (1)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)


    others:
    upload_2022-10-25_22-18-44.png
    upload_2022-10-25_22-19-47.png
     

    Attached Files:

  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,323
    Is this with an empty project or one that used to build but stopped creating builds just now? In the latter case, check what you changed since the last working build.

    It may also help to test building with a newer Unity version (keep a backup of the project).
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,058
  4. ChiuanWei

    ChiuanWei

    Joined:
    Jan 29, 2012
    Posts:
    131
    i got the same issue....don't know why...
     
  5. wechat_os_Qy03jJFAvyKlOcMb_j2eWq7k8

    wechat_os_Qy03jJFAvyKlOcMb_j2eWq7k8

    Joined:
    Sep 10, 2020
    Posts:
    1
    Have you finally solved this problem