I’m trying to deploy to android and can’t get past these burst errors even though I’ve set it to disabled.
I’m on 2019.2.0a6 with android ndk installed via hub and set to “Installed with Unity (recommended)” in External Tools prefs.
It was complaining about ANDROID_NDK_ROOT but I solved that by adding this to environment
ANDROID_NDK_ROOT=“/mnt/data/programs/unity/2019.2.0a6/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b”
Why do have to specify ANDROID_NDK_ROOT when it’s set in Preferences->External Tools?
Here’s the full error and I assume it has to do with the ‘Access denied’ part but I don’t know how to resolve that. I noticed that clang++ in Unity ndk is not executable but it is in the android studio ndk. Do I have to batch change permissions on the ndk or something?
Failed running /home/joolean/Documents/Projects/Unity/TransporterECS_2019/Library/PackageCache/[email protected]/.Runtime/bcl.exe --debug=true @/tmp/tmp5e0bede6.tmp
stdout:
Compiling for the platform
Android
using the following toolchain : AndroidToolChain
System.ComponentModel.Win32Exception (0x80004005): ApplicationName=‘/mnt/data/programs/unity/2019.2.0a6/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++’, CommandLine=‘@“/tmp/tmp6900a70e.tmp” -o “/tmp/burst-aotyjan76y8.7w7/lib_burst_generated.so” -shared -Wl,-soname,lib_burst_generated.so -Wl,–no-undefined -Wl,-z,noexecstack -Wl,–gc-sections -Wl,–build-id --sysroot “/mnt/data/programs/unity/2019.2.0a6/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/platforms/android-16/arch-arm” -gcc-toolchain “/mnt/data/programs/unity/2019.2.0a6/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64” -target armv7-none-linux-androideabi -Wl,–wrap,sigaction -L “/mnt/data/programs/unity/2019.2.0a6/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a” -lgnustl_static -llog -Xlinker -Map=“/tmp/burst-aotyjan76y8.7w7/lib_burst_generated.map” -rdynamic -fuse-ld=gold’, CurrentDirectory=‘’, Native error= Access denied
at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <737e286a503343ac975dc21dd1c8b4fa>:0
at System.Diagnostics.Process.Start () [0x0003a] in <737e286a503343ac975dc21dd1c8b4fa>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
at Unity.IL2CPP.Shell.Execute (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller) [0x000cd] in :0
at Unity.IL2CPP.Shell.ExecuteAndCaptureOutput (Unity.IL2CPP.Shell+ExecuteArgs executeArgs) [0x00000] in :0
at Burst.Compiler.IL.Aot.AotLinker.Link (System.Collections.Generic.IEnumerable`1[T] objFiles, System.String outPath) [0x00133] in :0
at Burst.Linker.Program.Main (System.String[ ] args) [0x0017b] in :0
Usage: blink.exe [options] <input .o/.obj/.ll files…>
–help Show Help
–platform=VALUE Target Platform <Windows|macOS|Linux|Android|iOS|
PS4|XboxOne|Wasm|UWP>
–target=VALUE Target CPU <Auto|X86_SSE2|X86_SSE4|X64_SSE2|X64_
SSE4|AVX|AVX2|AVX512|WASM32|ARMV7A_NEON32|ARMV8A_
AARCH64|THUMB2_NEON32>
–il2cpp-plugin-folder=VALUE
Plugin folder
–output=VALUE Output shared library file
An unexpected exception occurred:
stderr:
System.InvalidOperationException: The linker failed. Check previous exception in the log
at Burst.Compiler.IL.Aot.AotCompiler.CallLinkerProcess (Burst.Backend.TargetPlatform platform, Burst.Backend.TargetCpu targetCpu, System.Collections.Generic.List
1[T] plugins, System.Collections.Generic.List
1[T] inputFiles, System.String outputFile) [0x00154] in :0
at Burst.Compiler.IL.Aot.AotCompiler.Link (Burst.Backend.Module module, Burst.Compiler.IL.Aot.AotCompilerOptions compilerOptions) [0x00142] in :0
at Burst.Bcl.BclApp.CompileAndLink (System.Collections.Generic.List`1[T] methodsToCompile) [0x00033] in <5d22e99221f445cd86a71b32622b8334>:0
at Burst.Bcl.Program.Main (System.String[ ] args) [0x000d7] in <5d22e99221f445cd86a71b32622b8334>:0
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:127)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:72)
Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLs(BuildReport) (at /home/joolean/Documents/Projects/Unity/TransporterECS_2019/Library/PackageCache/[email protected]/Editor/BurstAotCompiler.cs:325)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Ok, I managed to get a full (Android SDK+NDK) 2019.2.0a9 install done via the hub (all External Tools set to recommended), but when I go to build for Android I get the following sequence of errors.
Access Denied error on adb because it does not have the execute bit set.
Win32Exception because it didn’t install the Android SDK tools folder (the same install on Win10 did install tools folder)
NDK issue because it’s installed to ‘android-ndk-r16b’ instead of just ‘NDK’
Access Denied error on clang which doesn’t have execute bit set.
Are these problems in the install script or did my install perhaps not finish properly? I didn’t get any errors during the install.
After manually fixing the above issues, I can now build an apk successfully, but if I try Build and Run, it won’t complete building an apk and I get the three errors below.
I’m on the latest everything including [email protected]. It doesn’t matter that I’ve disabled burst from the Jobs menu either.
The basis of the first two errors seems to be this
unrecognised emulation mode: armelf_linux_eabi
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe
clang: error: linker command failed with exit code 1 (use -v to see invocation)
All folders in the errors below exist and are correct
Android clang version 5.0.300080 (based on LLVM 5.0.300080)
Target: armv7a–linux-android
Thread model: posix
InstalledDir: /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/bin
Found candidate GCC installation: /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x
Selected GCC installation: /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x
Candidate multilib: thumb;
@thumb
Candidate multilib: armv7-a;
@armv7
Candidate multilib: armv7-a/thumb;
@armv7
@thumb
Candidate multilib: .;
Selected multilib: armv7-a;
@armv7
“/usr/bin/ld” --sysroot=/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm -X --eh-frame-hdr -m armelf_linux_eabi -shared -o /tmp/burst-aotu89got8f.9ar/lib_burst_generated.so /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm/usr/lib/…/lib/crtbegin_so.o -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/5.0.300080/lib/linux/arm -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/armv7-a -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/lib/…/lib/armv7-a -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm/usr/lib/…/lib -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/lib/armv7-a -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm/usr/lib --no-undefined --gc-sections --build-id /tmp/burst-aotu89got8f.9ar/lib_burst_generated_part_0.o -lm -lgcc -ldl -lc -lgcc -ldl /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm/usr/lib/…/lib/crtend_so.o
/usr/bin/ld: unrecognised emulation mode: armelf_linux_eabi
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Failed running /home/joolean/Documents/Projects/Unity/TransporterECS_2019/Library/PackageCache/[email protected]/.Runtime/bcl.exe @/tmp/tmp2ab3413e.tmp
stdout:
The native link step failed. Check previous exception in the log - linker command line : “/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -v --sysroot “/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm” -gcc-toolchain “/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64” -target armv7a-linux-androideabi --shared -Wl,–no-undefined -Wl,–gc-sections -Wl,–build-id -o “/tmp/burst-aotu89got8f.9ar/lib_burst_generated.so” “/tmp/burst-aotu89got8f.9ar/lib_burst_generated_part_0.o” -lm”
stderr:
Android clang version 5.0.300080 (based on LLVM 5.0.300080)
Target: armv7a–linux-android
Thread model: posix
InstalledDir: /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/bin
Found candidate GCC installation: /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x
Selected GCC installation: /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x
Candidate multilib: thumb;
@thumb
Candidate multilib: armv7-a;
@armv7
Candidate multilib: armv7-a/thumb;
@armv7
@thumb
Candidate multilib: .;
Selected multilib: armv7-a;
@armv7
“/usr/bin/ld” --sysroot=/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm -X --eh-frame-hdr -m armelf_linux_eabi -shared -o /tmp/burst-aotu89got8f.9ar/lib_burst_generated.so /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm/usr/lib/…/lib/crtbegin_so.o -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/5.0.300080/lib/linux/arm -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/armv7-a -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/lib/…/lib/armv7-a -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm/usr/lib/…/lib -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/…/…/…/…/arm-linux-androideabi/lib/armv7-a -L/mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm/usr/lib --no-undefined --gc-sections --build-id /tmp/burst-aotu89got8f.9ar/lib_burst_generated_part_0.o -lm -lgcc -ldl -lc -lgcc -ldl /mnt/data/programs/unity/2019.2.0a9/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/platforms/android-16/arch-arm/usr/lib/…/lib/crtend_so.o
/usr/bin/ld: unrecognised emulation mode: armelf_linux_eabi
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe
clang: error: linker command failed with exit code 1 (use -v to see invocation)
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:126)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71)
Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLs(BuildReport) (at /home/joolean/Documents/Projects/Unity/TransporterECS_2019/Library/PackageCache/[email protected]/Editor/BurstAotCompiler.cs:400)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
System.Exception: /home/joolean/Documents/Projects/Unity/TransporterECS_2019/Library/PackageCache/[email protected]/.Runtime/bcl.exe did not run properly!
at UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0011f] in /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128
at UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) [0x00063] in /home/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71
at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) [0x0079b] in /home/joolean/Documents/Projects/Unity/TransporterECS_2019/Library/PackageCache/[email protected]/Editor/BurstAotCompiler.cs:400
UnityEngine.Debug:LogError(Object)
Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLs(BuildReport) (at /home/joolean/Documents/Projects/Unity/TransporterECS_2019/Library/PackageCache/[email protected]/Editor/BurstAotCompiler.cs:404)
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
Thanks for response xoofx.
I’m not trying to use Burst but how do I disable it? I’ve already turned it off in the Jobs menu.
Even on a new blank project with nothing but Entities package installed, burst is still preventing me from deploying to Android.
JooleanLogic:
Even on a new blank project with nothing but Entities package installed, burst is still preventing me from deploying to Android.
Oh right, sorry, so you should have dedicated player settings of burst where you can disable it. Check this
https://docs.unity3d.com/Packages/[email protected]/manual/index.html#burst-aot-settings
let us know if it is not working
Oof, hurts that that’s been there all this time and I never knew about it.
That worked, thanks heaps xoofx.
Now to work out why I’m getting 2 fps.