Search Unity

Burst related error when building for Mac Standalone in Mac machine

Discussion in 'Burst' started by davenirline, Sep 4, 2019.

  1. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    987
    I get the following errors when I build a Mac standalone in a Mac machine:

    System.DllNotFoundException: Unable to load the unmanaged library `/Users/admin/academia/UnitySource/Library/PackageCache/com.unity.burst@1.1.3-preview.3/.Runtime/libburst-llvm-8.dylib` Reason: dlopen(/Users/admin/academia/UnitySource/Library/PackageCache/com.unity.burst@1.1.3-preview.3/.Runtime/libburst-llvm-8.dylib, 2): Symbol not found: _futimens

    Referenced from: /Users/admin/academia/UnitySource/Library/PackageCache/com.unity.burst@1.1.3-preview.3/.Runtime/libburst-llvm-8.dylib

    Expected in: /usr/lib/libSystem.B.dylib

    in /Users/admin/academia/UnitySource/Library/PackageCache/com.unity.burst@1.1.3-preview.3/.Runtime/libburst-llvm-8.dylib
    at Burst.Backend.UnmanagedLibrary+MacOSUnmanagedLibrary.LoadLibrary (System.String name) [0x00060] in <ae830c4c4959490e881065388aec48ae>:0
    at Burst.Backend.UnmanagedLibrary.LoadLibrary (System.String name) [0x00020] in <ae830c4c4959490e881065388aec48ae>:0
    at Burst.Backend.StandardCompilerBackend..ctor (System.String nativeSharedLibraryName) [0x0000d] in <ae830c4c4959490e881065388aec48ae>:0
    at Burst.Bcl.BclApp..ctor (Burst.Bcl.BclOptions options) [0x00022] in <fb38bf4c96b84fb69f934f8977af49fb>:0
    at Burst.Bcl.Program.Main (System.String[] args) [0x00189] in <fb38bf4c96b84fb69f934f8977af49fb>:0



    BuildFailedException: Burst compiler (1.1.3-preview.3) failed running

    stdout:
    An unexpected exception occurred:
    stderr:
    System.DllNotFoundException: Unable to load the unmanaged library `/Users/admin/academia/UnitySource/Library/PackageCache/com.unity.burst@1.1.3-preview.3/.Runtime/libburst-llvm-8.dylib` Reason: dlopen(/Users/admin/academia/UnitySource/Library/PackageCache/com.unity.burst@1.1.3-preview.3/.Runtime/libburst-llvm-8.dylib, 2): Symbol not found: _futimens
    Referenced from: /Users/admin/academia/UnitySource/Library/PackageCache/com.unity.burst@1.1.3-preview.3/.Runtime/libburst-llvm-8.dylib
    Expected in: /usr/lib/libSystem.B.dylib
    in /Users/admin/academia/UnitySource/Library/PackageCache/com.unity.burst@1.1.3-preview.3/.Runtime/libburst-llvm-8.dylib
    at Burst.Backend.UnmanagedLibrary+MacOSUnmanagedLibrary.LoadLibrary (System.String name) [0x00060] in <ae830c4c4959490e881065388aec48ae>:0
    at Burst.Backend.UnmanagedLibrary.LoadLibrary (System.String name) [0x00020] in <ae830c4c4959490e881065388aec48ae>:0
    at Burst.Backend.StandardCompilerBackend..ctor (System.String nativeSharedLibraryName) [0x0000d] in <ae830c4c4959490e881065388aec48ae>:0
    at Burst.Bcl.BclApp..ctor (Burst.Bcl.BclOptions options) [0x00022] in <fb38bf4c96b84fb69f934f8977af49fb>:0
    at Burst.Bcl.Program.Main (System.String[] args) [0x00189] in <fb38bf4c96b84fb69f934f8977af49fb>:0

    Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.3-preview.3/Editor/BurstAotCompiler.cs:725)
    Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.3-preview.3/Editor/BurstAotCompiler.cs:663)
    Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.1.3-preview.3/Editor/BurstAotCompiler.cs:637)

    We are using the following versions:
    • Unity 2019.2.3
    • Unity.Entities 0.1.1
    • Burst 1.1.3 preview.3
    Building for Windows works fine.
     
  2. fabrizio_unity

    fabrizio_unity

    Unity Technologies

    Joined:
    May 3, 2018
    Posts:
    47
    Hello,
    thank you for reporting this issue. We are looking into it and i'll let you know as soon as possible.
    Sorry for the inconvenience.
     
  3. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    987
    Also tried downgrading to Unity 2019.2.2. Still the same errors.
     
  4. fabrizio_unity

    fabrizio_unity

    Unity Technologies

    Joined:
    May 3, 2018
    Posts:
    47
    Hello,
    i wanted to let you know that we were able to find the root cause for this issue and the next burst package will contain the fix.
    I will let you know when it is available.
    Thanks
     
    davenirline likes this.
  5. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    987
    Thank you very much!
     
  6. fabrizio_unity

    fabrizio_unity

    Unity Technologies

    Joined:
    May 3, 2018
    Posts:
    47
    Hello,
    we just published a new version of burst `1.2.0-preview.1`. Can you please try this one out and let us know if it fixes the issue above?
    Thank you
     
    davenirline likes this.
  7. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    987
    Ok, thanks!

    Edit: Verified that it works. Thank you very much!
     
    Last edited: Sep 10, 2019