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 Android / Burst compiler build errors

Discussion in 'Editor & General Support' started by RobbertGroenendijk, Jun 2, 2023.

  1. RobbertGroenendijk

    RobbertGroenendijk

    Joined:
    Sep 12, 2018
    Posts:
    10
    Hi there,

    I have a project for Android that I was able to build fine before (running Unity on Linux Mint Cinnamon 5.4.12). However, after returning to the project after a month, I cannot seem to build it any more. I have tried on version 2022.2.11f1 and also the previous version I used which was version 2022.3.0f1. The error is the same. I have been trying to read through it and fix it but have actually no clue. Maybe someone can help me out;

    Code (CSharp):
    1. Building Library/Bee/artifacts/Android/AsyncPluginsFromLinker failed with output:
    2. UnityEditor.Build.BuildFailedException: Burst compiler (1.8.3) failed running
    3.  
    4. stdout:
    5. Starting 1 library requests
    6. Error: Burst internal compiler error: Burst.Compiler.IL.Aot.AotLinkerException: Non 0 exit code | The native link step failed. Check previous exception in the log - linker command line : "/home/robbert/Unity/Hub/Editor/2022.2.11f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/clang '@/tmp/tmpacc7644.tmp'"
    7.  
    8.  
    9.  
    10.  
    11.   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) [0x000f8] in <a60580435cf345a18c987df05e687648>:0
    12.   at Burst.Compiler.IL.Aot.AotNativeLinkAndroid.Link (Burst.Backend.TargetCpu targetCpu, System.Collections.Generic.List`1[T] inputFiles, System.String outputFile, System.Boolean enableDebugInfo) [0x000cd] in <a60580435cf345a18c987df05e687648>:0
    13.   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) [0x0023f] in <a60580435cf345a18c987df05e687648>:0
    14.   at Burst.Compiler.IL.Server.LibraryCompiler.LinkAndFinalize (Burst.Compiler.IL.Server.CompilationJob request, Burst.Compiler.IL.Server.CompilerServerJobExecutionContext executionContext, Burst.Compiler.IL.Server.SharedLibraryCompilationState sharedState, System.Int32 methodGroupIndex, Burst.Compiler.IL.NativeCompiler nativeCompiler, Burst.Compiler.IL.Aot.AotCompilerOptions defaultOptions, Burst.Compiler.IL.Aot.AotModuleGroup aotModuleGroup) [0x0060a] in <a60580435cf345a18c987df05e687648>:0
    15. stderr:
    16.  
    17.   at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x001f7] in ./Library/PackageCache/com.unity.burst@1.8.3/Editor/BurstAotCompiler.cs:1656
    18.   at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0003f] in ./Library/PackageCache/com.unity.burst@1.8.3/Editor/BurstAotCompiler.cs:1533
    19.   at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x00000] in ./Library/PackageCache/com.unity.burst@1.8.3/Editor/BurstAotCompiler.cs:1508
    20.   at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (Unity.Burst.Editor.BurstAotCompiler+BurstAOTSettings settings, UnityEditor.Compilation.Assembly[] playerAssemblies) [0x00919] in ./Library/PackageCache/com.unity.burst@1.8.3/Editor/BurstAotCompiler.cs:706
    21.   at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.DoGenerate (UnityEditor.Compilation.Assembly[] assemblies) [0x00013] in ./Library/PackageCache/com.unity.burst@1.8.3/Editor/BurstAotCompiler.cs:265
    22.   at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.GenerateNativePluginsForAssemblies (UnityEditor.Build.IGenerateNativePluginsForAssemblies+GenerateArgs args) [0x0007d] in ./Library/PackageCache/com.unity.burst@1.8.3/Editor/BurstAotCompiler.cs:179
    23.   at UnityEditor.Modules.BeeBuildPostprocessor.GenerateNativePluginsForAssemblies (PlayerBuildProgramLibrary.Data.GenerateNativePluginsForAssembliesArgs args) [0x00050] in /home/bokken/build/output/unity/unity/Editor/Mono/Modules/BeeBuildPostprocessor.cs:605
    24.   at Bee.BeeDriver.BuildRequest+<>c__DisplayClass63_0`1[T].<RegisterRPCCallback>b__0 (System.Object o) [0x00000] in /home/bokken/build/output/unity/unity/Tools/Bee/Bee.BeeDriver2/BuildRequest.cs:66
    25.   at Bee.BeeDriver.BeeDriver_RunBackend+<>c__DisplayClass1_0.<ProcessRPCRequest>b__0 () [0x00000] in /home/bokken/build/output/unity/unity/Tools/Bee/Bee.BeeDriver2/BeeDriver_RunBackend.cs:88
    26.   at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <3f5e11a39c6346ddae9940f64a1d1887>:0
    27.   at System.Threading.Tasks.Task.Execute () [0x00000] in <3f5e11a39c6346ddae9940f64a1d1887>:0
    28. --- End of stack trace from previous location where exception was thrown ---
    29.  
    30.   at Bee.BeeDriver.BeeDriver_RunBackend.ProcessRPCRequest (Bee.BinLog.RPCActionMessage msg, Bee.BeeDriver.BuildRequest+RPCCallback rpcCallback, IPCConnection ipcConnection, System.Threading.Tasks.Task writePipeConnectionTask, Bee.BeeDriver.InternalState state) [0x000c9] in /home/bokken/build/output/unity/unity/Tools/Bee/Bee.BeeDriver2/BeeDriver_RunBackend.cs:88 ����
    31. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,260
    Did you update burst already as well?
     
  3. RobbertGroenendijk

    RobbertGroenendijk

    Joined:
    Sep 12, 2018
    Posts:
    10
    Hi! Yes I did update Burst, even tried to uninstall and reinstall it although Unity then just installs it as a dependency anyway.
     
  4. TobiEE

    TobiEE

    Joined:
    Aug 15, 2021
    Posts:
    1
    I am facing the same issue using 2022.3.3f1:

    Code (csharp):
    1.  
    2. Building Library/Bee/artifacts/Android/AsyncPluginsFromLinker failed with output:
    3. UnityEditor.Build.BuildFailedException: Burst compiler (1.8.7) failed running
    4.  
    5. stdout:
    6. Starting 1 library requests
    7. Error: Burst internal compiler error: Burst.Compiler.IL.Aot.AotLinkerException: Non 0 exit code | The native link step failed. Check previous exception in the log - linker command line : "/home/weiss/Unity/Hub/Editor/2022.3.3f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/clang '@/tmp/tmp54b7efa5.tmp'"
    8.  
    9.  
    10.  
    11.  
    12.   at Burst.Compiler.IL.Aot.AotNativeLinkBase.RunNativeLinkerTool (System.String command, System.String arguments, System.String errorMessage, System.String commandType, System.String workingDirectory, Burst.Compiler.IL.Aot.AotNativeLinkBase+AotNativeLinkerConsoleOutput consoleOutput) [0x000f8] in <532a8a169e6a4953b5d9a4c213b71772>:0
    13.   at Burst.Compiler.IL.Aot.AotNativeLinkAndroid.Link (Burst.Backend.TargetCpu targetCpu, System.Collections.Generic.List`1[T] inputFiles, System.String outputFile, System.Boolean enableDebugInfo) [0x000cd] in <532a8a169e6a4953b5d9a4c213b71772>:0
    14.   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) [0x0023f] in <532a8a169e6a4953b5d9a4c213b71772>:0
    15.   at Burst.Compiler.IL.Server.LibraryCompiler.LinkAndFinalize (Burst.Compiler.IL.Server.CompilationJob request, Burst.Compiler.IL.Server.SharedLibraryCompilationState sharedState, System.Int32 methodGroupIndex, Burst.Compiler.IL.NativeCompiler nativeCompiler, Burst.Compiler.IL.Aot.AotCompilerOptions defaultOptions, Burst.Compiler.IL.Aot.AotModuleGroup aotModuleGroup) [0x007be] in <532a8a169e6a4953b5d9a4c213b71772>:0
    16. stderr:
    17.  
    18.   at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x00237] in ./Library/PackageCache/com.unity.burst@1.8.7/Editor/BurstAotCompiler.cs:1705
    19.   at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0004d] in ./Library/PackageCache/com.unity.burst@1.8.7/Editor/BurstAotCompiler.cs:1582
    20.   at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x00001] in ./Library/PackageCache/com.unity.burst@1.8.7/Editor/BurstAotCompiler.cs:1557
    21.   at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (Unity.Burst.Editor.BurstAotCompiler+BurstAOTSettings settings, UnityEditor.Compilation.Assembly[] playerAssemblies) [0x00a75] in ./Library/PackageCache/com.unity.burst@1.8.7/Editor/BurstAotCompiler.cs:705
    22.   at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.DoGenerate (UnityEditor.Compilation.Assembly[] assemblies) [0x0001b] in ./Library/PackageCache/com.unity.burst@1.8.7/Editor/BurstAotCompiler.cs:265
    23.   at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.GenerateNativePluginsForAssemblies (UnityEditor.Build.IGenerateNativePluginsForAssemblies+GenerateArgs args) [0x0008a] in ./Library/PackageCache/com.unity.burst@1.8.7/Editor/BurstAotCompiler.cs:179
    24.   at UnityEditor.Modules.BeeBuildPostprocessor.GenerateNativePluginsForAssemblies (PlayerBuildProgramLibrary.Data.GenerateNativePluginsForAssembliesArgs args) [0x00050] in /home/bokken/build/output/unity/unity/Editor/Mono/Modules/BeeBuildPostprocessor.cs:605
    25.   at Bee.BeeDriver.BuildRequest+<>c__DisplayClass63_0`1[T].<RegisterRPCCallback>b__0 (System.Object o) [0x00000] in /home/bokken/build/output/unity/unity/Tools/Bee/Bee.BeeDriver2/BuildRequest.cs:66
    26.   at Bee.BeeDriver.BeeDriver_RunBackend+<>c__DisplayClass1_0.<ProcessRPCRequest>b__0 () [0x00000] in /home/bokken/build/output/unity/unity/Tools/Bee/Bee.BeeDriver2/BeeDriver_RunBackend.cs:88
    27.   at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <8f02bdf82edc4309b57af878cc7723ff>:0
    28.   at System.Threading.Tasks.Task.Execute () [0x00000] in <8f02bdf82edc4309b57af878cc7723ff>:0
    29. --- End of stack trace from previous location where exception was thrown ---
    30.  
    31.   at Bee.BeeDriver.BeeDriver_RunBackend.ProcessRPCRequest (Bee.BinLog.RPCActionMessage msg, Bee.BeeDriver.BuildRequest+RPCCallback rpcCallback, IPCConnection ipcConnection, System.Threading.Tasks.Task writePipeConnectionTask, Bee.BeeDriver.InternalState state) [0x000c9] in /home/bokken/build/output/unity/unity/Tools/Bee/Bee.BeeDriver2/BeeDriver_RunBackend.cs:88
    32. UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    33. Unity.XR.PXR.Editor.PXR_SDKBuildCheck:OnBuild (UnityEditor.BuildPlayerOptions) (at ./PICO Unity Integration SDK_215/Editor/PXR_SDKBuildCheck.cs:59)
    34. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:190)
    35.