Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Build macOS standalone on Unity 2019.4.8 using Mono on Big Sur not working

Discussion in 'macOS' started by BigGreenPillow, Sep 29, 2020.

  1. BigGreenPillow

    BigGreenPillow

    Joined:
    Dec 2, 2013
    Posts:
    26
    Hi,

    I tried finding information about this in the forum and only saw a known issue about using IL2CPP on Big Sur not working but I'm using Mono and it is giving me a Burst exception and I'm not sure what to do about it, I only have access to one Mac machine that since I need to test the project on it I need it running Big Sur, does building a Mac project not work right now? Is there any work around for it? If possible I'm trying to avoid updating for any version that is not LTS since I don't want things to break on the project because I'm upgrading Unity.

    Errors I'm getting:
    /bin/sh: ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/hostlin/lld: cannot execute binary file


    Code (CSharp):
    1. Burst.Compiler.IL.Aot.AotLinkerException: The native link step failed. Check previous exception in the log - linker command line : "ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/hostlin/lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -sdk_version 10.9 -r -dylib -o "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated.bundle" "ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/libs/burstRTL_m64.a" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_1.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_3.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_0.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_2.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_5.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_4.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_7.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_6.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_1_merged.o""
    2.   at Burst.Compiler.IL.Aot.AotNativeLinkBase.RunNativeLinkerTool (System.String command, System.String arguments, System.String errorMessage, System.String commandType, System.String workingDirectory, System.Boolean muteOutputs) [0x000d0] in <9b99a8d26a5f43d4ad1097789969a537>:0
    3.   at Burst.Compiler.IL.Aot.AotNativeLinkLLVMMacOS.Link (Burst.Backend.TargetCpu targetCpu, System.Collections.Generic.List`1[T] inputFiles, System.String outputFile, System.Boolean enableDebugInfo) [0x00118] in <9b99a8d26a5f43d4ad1097789969a537>:0
    4.   at Burst.Compiler.IL.Aot.AotCompiler.Link (System.Collections.Generic.List`1[T] groups, System.String nameSuffix, Burst.Compiler.IL.Aot.AotCompilerOptions compilerOptions, System.IO.TextWriter consoleOut, System.IO.TextWriter consoleError) [0x001f8] in <9b99a8d26a5f43d4ad1097789969a537>:0
    5.   at Burst.Bcl.BclApp+LibraryThread.Process (Burst.Bcl.BclApp+LibraryCompilationRequest libraryRequest) [0x00440] in <52cdf9e3a3c345ba8ab16cad75b48614>:0
    6.   at Burst.Bcl.BclApp+LibraryThread.Run () [0x0001a] in <52cdf9e3a3c345ba8ab16cad75b48614>:0
    7.   at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <fb001e01371b4adca20013e0ac763896>:0
    8.   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <fb001e01371b4adca20013e0ac763896>:0
    9.   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
    10.   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <fb001e01371b4adca20013e0ac763896>:0
    11.   at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <fb001e01371b4adca20013e0ac763896>:0
    Code (CSharp):
    1. [ERROR] FATAL UNHANDLED EXCEPTION: Burst.Compiler.IL.Aot.AotLinkerException: The native link step failed. Check previous exception in the log - linker command line : "ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/hostlin/lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -sdk_version 10.9 -r -dylib -o "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated.bundle" "ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/libs/burstRTL_m64.a" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_1.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_3.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_0.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_2.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_5.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_4.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_7.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_6.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_1_merged.o""
    2.   at Burst.Compiler.IL.Aot.AotNativeLinkBase.RunNativeLinkerTool (System.String command, System.String arguments, System.String errorMessage, System.String commandType, System.String workingDirectory, System.Boolean muteOutputs) [0x000d0] in <9b99a8d26a5f43d4ad1097789969a537>:0
    3.   at Burst.Compiler.IL.Aot.AotNativeLinkLLVMMacOS.Link (Burst.Backend.TargetCpu targetCpu, System.Collections.Generic.List`1[T] inputFiles, System.String outputFile, System.Boolean enableDebugInfo) [0x00118] in <9b99a8d26a5f43d4ad1097789969a537>:0
    4.   at Burst.Compiler.IL.Aot.AotCompiler.Link (System.Collections.Generic.List`1[T] groups, System.String nameSuffix, Burst.Compiler.IL.Aot.AotCompilerOptions compilerOptions, System.IO.TextWriter consoleOut, System.IO.TextWriter consoleError) [0x001f8] in <9b99a8d26a5f43d4ad1097789969a537>:0
    5.   at Burst.Bcl.BclApp+LibraryThread.Process (Burst.Bcl.BclApp+LibraryCompilationRequest libraryRequest) [0x00440] in <52cdf9e3a3c345ba8ab16cad75b48614>:0
    6.   at Burst.Bcl.BclApp+LibraryThread.Run () [0x0001a] in <52cdf9e3a3c345ba8ab16cad75b48614>:0
    7.   at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <fb001e01371b4adca20013e0ac763896>:0
    8.   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <fb001e01371b4adca20013e0ac763896>:0
    9.   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
    10.   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <fb001e01371b4adca20013e0ac763896>:0
    11.   at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <fb001e01371b4adca20013e0ac763896>:0
    Code (CSharp):
    1. BuildFailedException: Burst compiler (1.3.7) failed running
    2. stdout:
    3. stderr:
    4. /bin/sh: ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/hostlin/lld: cannot execute binary file
    5. Unhandled Exception:
    6. Burst.Compiler.IL.Aot.AotLinkerException: The native link step failed. Check previous exception in the log - linker command line : "ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/hostlin/lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -sdk_version 10.9 -r -dylib -o "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated.bundle" "ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/libs/burstRTL_m64.a" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_1.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_3.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_0.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_2.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_5.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_4.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_7.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_6.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_1_merged.o""
    7.   at Burst.Compiler.IL.Aot.AotNativeLinkBase.RunNativeLinkerTool (System.String command, System.String arguments, System.String errorMessage, System.String commandType, System.String workingDirectory, System.Boolean muteOutputs) [0x000d0] in <9b99a8d26a5f43d4ad1097789969a537>:0
    8.   at Burst.Compiler.IL.Aot.AotNativeLinkLLVMMacOS.Link (Burst.Backend.TargetCpu targetCpu, System.Collections.Generic.List`1[T] inputFiles, System.String outputFile, System.Boolean enableDebugInfo) [0x00118] in <9b99a8d26a5f43d4ad1097789969a537>:0
    9.   at Burst.Compiler.IL.Aot.AotCompiler.Link (System.Collections.Generic.List`1[T] groups, System.String nameSuffix, Burst.Compiler.IL.Aot.AotCompilerOptions compilerOptions, System.IO.TextWriter consoleOut, System.IO.TextWriter consoleError) [0x001f8] in <9b99a8d26a5f43d4ad1097789969a537>:0
    10.   at Burst.Bcl.BclApp+LibraryThread.Process (Burst.Bcl.BclApp+LibraryCompilationRequest libraryRequest) [0x00440] in <52cdf9e3a3c345ba8ab16cad75b48614>:0
    11.   at Burst.Bcl.BclApp+LibraryThread.Run () [0x0001a] in <52cdf9e3a3c345ba8ab16cad75b48614>:0
    12.   at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <fb001e01371b4adca20013e0ac763896>:0
    13.   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <fb001e01371b4adca20013e0ac763896>:0
    14.   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
    15.   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <fb001e01371b4adca20013e0ac763896>:0
    16.   at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <fb001e01371b4adca20013e0ac763896>:0
    17. [ERROR] FATAL UNHANDLED EXCEPTION: Burst.Compiler.IL.Aot.AotLinkerException: The native link step failed. Check previous exception in the log - linker command line : "ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/hostlin/lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 -sdk_version 10.9 -r -dylib -o "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated.bundle" "ProjectFolder/Library/PackageCache/com.unity.burst@1.3.7/.Runtime/libs/burstRTL_m64.a" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_1.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_3.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_0.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_2.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_5.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_4.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_7.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_6.o" "ProjectFolder/Temp/Burst/burst-aotz5txdhr1.3ag/lib_burst_generated_part_1_merged.o""
    18.   at Burst.Compiler.IL.Aot.AotNativeLinkBase.RunNativeLinkerTool (System.String command, System.String arguments, System.String errorMessage, System.String commandType, System.String workingDirectory, System.Boolean muteOutputs) [0x000d0] in <9b99a8d26a5f43d4ad1097789969a537>:0
    19.   at Burst.Compiler.IL.Aot.AotNativeLinkLLVMMacOS.Link (Burst.Backend.TargetCpu targetCpu, System.Collections.Generic.List`1[T] inputFiles, System.String outputFile, System.Boolean enableDebugInfo) [0x00118] in <9b99a8d26a5f43d4ad1097789969a537>:0
    20.   at Burst.Compiler.IL.Aot.AotCompiler.Link (System.Collections.Generic.List`1[T] groups, System.String nameSuffix, Burst.Compiler.IL.Aot.AotCompilerOptions compilerOptions, System.IO.TextWriter consoleOut, System.IO.TextWriter consoleError) [0x001f8] in <9b99a8d26a5f43d4ad1097789969a537>:0
    21.   at Burst.Bcl.BclApp+LibraryThread.Process (Burst.Bcl.BclApp+LibraryCompilationRequest libraryRequest) [0x00440] in <52cdf9e3a3c345ba8ab16cad75b48614>:0
    22.   at Burst.Bcl.BclApp+LibraryThread.Run () [0x0001a] in <52cdf9e3a3c345ba8ab16cad75b48614>:0
    23.   at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <fb001e01371b4adca20013e0ac763896>:0
    24.   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <fb001e01371b4adca20013e0ac763896>:0
    25.   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0
    26.   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <fb001e01371b4adca20013e0ac763896>:0
    27.   at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <fb001e01371b4adca20013e0ac763896>:0
    28. 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.3.7/Editor/BurstAotCompiler.cs:856)
    29. 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.3.7/Editor/BurstAotCompiler.cs:794)
    30. 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.3.7/Editor/BurstAotCompiler.cs:768)
    31. Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:441)
    32. Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:163)
    33. UnityEditor.Build.BuildPipelineInterfaces.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:487)
    34. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
     
  2. Lee_Hammerton

    Lee_Hammerton

    Unity Technologies

    Joined:
    Jul 26, 2018
    Posts:
    118
    Hi, there is a bug in unity on BigSur where it misidentifies the host as being a linux platform rather than correctly identifying it as a mac. Unfortunately this will mean you will need to upgrade your LTS version, I've just checked and it appears that 2019.4.12f1 will contain the fix, but its not released yet.
     
  3. BigGreenPillow

    BigGreenPillow

    Joined:
    Dec 2, 2013
    Posts:
    26
    Do you have an ETA on when 2019.4.12f1 will be available? the 2020 latest version has this problem fixed?

    Thanks!
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,645
    It should be out next week. It hasn't landed to 2020.1 yet either. It should work fine on 2020.2 beta.
     
    Lee_Hammerton and BigGreenPillow like this.
  5. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    @Tautvydas-Zilys I am still getting
    com.unity.burst@1.3.7/.Runtime/hostlin/lld: cannot execute binary file


    On Big Sur and Unity 2020.1.6.

    Is there a planned fix for 2020.1?

    EDIT: This issue no longer exists with 2020.1.15
     
    Last edited: Dec 1, 2020
    nealou1 and sheredom like this.
  6. HanumanthuReddy

    HanumanthuReddy

    Joined:
    Jun 15, 2021
    Posts:
    6
    @adammpolak Can you tell me what the solution was? I recently moved my project from windows to mac and I am seeing this. Unable to work on my project due to this. Would be grateful if you could tell me what happened after this. Thanks
     
  7. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    The solution was in my edit, I updated to a later version of the editor and the issue disappeared.
     
    HanumanthuReddy likes this.