Build fails with Burst

Hello,

I have the following problem. When I install burst (1.3.3 and older versions) in building process I get build errors. If I uninstall Burst Unity build without problems.

Android (5058415 based on r339409) clang version 8.0.2 (toolchain/clang - Git at Google 40173bab62ec746213857d083c0e8b0abb568790) (toolchain/llvm - Git at Google 7a6618d69e7e8111e1d49dc9e7813767c5ca756a) (based on LLVM 8.0.2svn)

System.UnauthorizedAccessException: �⪠���� � ����㯥 �� ��� “C:\Users\GN\Documents\Unity\Small Heroes\Temp\StagingArea\libs\arm64-v8a\lib_burst_generated.txt”.

BuildFailedException: Burst compiler (1.3.3) failed running

stdout:
Compiled 1 library, containing 2 methods, in 3107ms using 3 threads: C:\Users\GN\Documents\Unity\Small Heroes\Temp\StagingArea\libs\arm64-v8a\lib_burst_generated.so
An unexpected exception occurred:
stderr:
Android (5058415 based on r339409) clang version 8.0.2 (toolchain/clang - Git at Google 40173bab62ec746213857d083c0e8b0abb568790) (toolchain/llvm - Git at Google 7a6618d69e7e8111e1d49dc9e7813767c5ca756a) (based on LLVM 8.0.2svn)
Target: aarch64-unknown-linux-android
Thread model: posix
InstalledDir: C:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\toolchains\llvm\prebuilt\windows-x86_64\bin
Found candidate GCC installation: C:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64/lib/gcc/aarch64-linux-android\4.9.x
Selected GCC installation: C:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x
Candidate multilib: .;@m64
Selected multilib: .;@m64
“C:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-ld” “–sysroot=C:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\platforms\android-21\arch-arm64” --fix-cortex-a53-843419 --enable-new-dtags --eh-frame-hdr -m aarch64linux -shared -o “C:\Users\GN\Documents\Unity\Small Heroes\Temp\Burst\burst-aott4rbq04e.ygr\lib_burst_generated.so” “C:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\platforms\android-21\arch-arm64/usr/lib\crtbegin_so.o” “-LC:\Program Files\Unity\Hub\Editor\2019.4.5f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\lib64\clang\8.0.2\lib\linux\aarch64” “-LC:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x” “-LC:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/…/…/…/…/aarch64-linux-android/lib/…/lib64” “-LC:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/…/…/…/…/aarch64-linux-android/lib” “-LC:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\platforms\android-21\arch-arm64/usr/lib” --no-undefined --gc-sections --build-id “C:\Users\GN\Documents\Unity\Small Heroes\Temp\Burst\burst-aott4rbq04e.ygr\lib_burst_generated_part_0.o” “C:\Users\GN\Documents\Unity\Small Heroes\Temp\Burst\burst-aott4rbq04e.ygr\lib_burst_generated_part_0_merged.o” -lm -latomic -lgcc -ldl -lc -lgcc -ldl “C:/Program Files/Unity/Hub/Editor/2019.4.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK\platforms\android-21\arch-arm64/usr/lib\crtend_so.o”
System.UnauthorizedAccessException: �⪠���� � ����㯥 �� ��� “C:\Users\GN\Documents\Unity\Small Heroes\Temp\StagingArea\libs\arm64-v8a\lib_burst_generated.txt”.
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
� System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
� System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
� System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
� System.IO.StreamWriter…ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
� System.IO.StreamWriter…ctor(String path)
� Burst.Bcl.Program.BuildTheThing(BclOptions options, Stopwatch& individualTimer)
� Burst.Bcl.Program.Main(String[ ] args)

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.3/Editor/BurstAotCompiler.cs:841)
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.3/Editor/BurstAotCompiler.cs:779)
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.3/Editor/BurstAotCompiler.cs:753)
Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.3/Editor/BurstAotCompiler.cs:426)
Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.3/Editor/BurstAotCompiler.cs:163)
UnityEditor.Build.BuildPipelineInterfaces.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at <73d57cefcd7c4fd1b35d52187ecfc010>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I have in Unity 2019.4.5f1 but the problem

Hi, did you find any solution to this? i’m having the exact same issue

1 Like

Hello, did you found any solution ? I’m in the same situation.

@ukaszordon which version of Burst are you using? The original post mentions 1.3.3 which is fairly old at this point. Please could you try with the latest version (1.6.1 at the time of writing).

Exact same problem here. I’m using Burst Version 1.4.11 on Unity 2020.3.2f1

Android (5058415 based on r339409) clang version 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec746213857d083c0e8b0abb568790) (https://android.googlesource.com/toolchain/llvm 7a6618d69e7e8111e1d49dc9e7813767c5ca756a) (based on LLVM 8.0.2svn)

Hi @Matiasbru - please could you try updating Burst to 1.6.1 and see if you still get the error? Also, does it happen every time or only sometimes?