I’m using the Unity Physics package (preview 0.3.2). The application runs in the editor, but fails to build a player (UWP) with an error from the burst compiler. I’ve upgraded the burst package to version ( preview 9 - 1.3.0). I’m not otherwise using Burst.
Can anyone help me out? I’ve included a portion of the log below.
Thanks.
Log
C:\Users\mew9\Desktop\Kraken\Kraken\Library\PackageCache\com.unity.burst@1.3.0-preview.9.Runtime\bcl.exe exited after 16267 ms.
stdout:
Creating library C:\Users\mew9\Desktop\Kraken\Kraken\Temp\Burst\burst-aotfgpu5gh2.iuf\lib_burst_generated.lib and object C:\Users\mew9\Desktop\Kraken\Kraken\Temp\Burst\burst-aotfgpu5gh2.iuf\lib_burst_generated.exp
Compiled 1 library, containing 157 methods, in 16130ms using 10 threads: C:\Users\mew9\Desktop\Kraken\Kraken\Temp\StagingArea\Plugins\x64\lib_burst_generated.dll
stderr:
C:\Users\mew9\Desktop\Kraken\Kraken\Library\PackageCache\com.unity.burst@1.3.0-preview.9.Runtime\bcl.exe exited after 16993 ms.
stdout:
Creating library C:\Users\mew9\Desktop\Kraken\Kraken\Temp\Burst\burst-aoteeeemg4c.0si\lib_burst_generated.lib and object C:\Users\mew9\Desktop\Kraken\Kraken\Temp\Burst\burst-aoteeeemg4c.0si\lib_burst_generated.exp
Compiled 1 library, containing 157 methods, in 16858ms using 10 threads: C:\Users\mew9\Desktop\Kraken\Kraken\Temp\StagingArea\Plugins\x86\lib_burst_generated.dll
stderr:
C:\Users\mew9\Desktop\Kraken\Kraken\Library\PackageCache\com.unity.burst@1.3.0-preview.9.Runtime\bcl.exe exited after 17007 ms.
Unhandled Exception: Burst.Compiler.IL.Aot.AotLinkerException: The native link step failed. Check previous exception in the log - linker command line : “C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\bin\Hostx64\arm\link.exe “@C:\Users\mew9\AppData\Local\Temp\tmp16D1.tmp””
at Burst.Compiler.IL.Aot.AotNativeLinkBase.RunNativeLinkerTool(String command, String arguments, String errorMessage, String commandType, String workingDirectory)
at Burst.Compiler.IL.Aot.AotNativeLinkMSVCBase.Link(TargetCpu targetCpu, List1 inputFiles, String outputFile, Boolean enableDebugInfo) at Burst.Compiler.IL.Aot.AotCompiler.Link(List1 groups, String nameSuffix, AotCompilerOptions compilerOptions, TextWriter consoleOut, TextWriter consoleError)
at Burst.Bcl.BclApp.LibraryThread.Process(LibraryCompilationRequest libraryRequest)
at Burst.Bcl.BclApp.LibraryThread.Run()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
(Filename: unknown Line: 0)
BuildFailedException: Burst compiler (1.3.0-preview.9) failed running
stdout:
lib_burst_generated_part_0.obj : error LNK2005: .Lburst.memset.inline already defined in lib_burst_generated_part_1.obj
lib_burst_generated_part_0.obj : error LNK2005: .Lburst.memcpy.inline already defined in lib_burst_generated_part_1.obj
lib_burst_generated_part_2.obj : error LNK2005: .Lburst.memcpy.inline already defined in lib_burst_generated_part_1.obj
lib_burst_generated_part_2.obj : error LNK2005: .Lburst.memset.inline already defined in lib_burst_generated_part_1.obj
lib_burst_generated_part_2.obj : error LNK2005: .LUnity.Physics.Collider.CalculateAabb(Unity.Physics.Collider* this, Unity.Mathematics.RigidTransform transform)_E3F8261043063414 already defined in lib_burst_generated_part_0.obj
lib_burst_generated_part_2.obj : error LNK2005: .LUnity.Physics.BoundingVolumeHierarchy.Builder.ProcessLargeRange(Unity.Physics.BoundingVolumeHierarchy.Builder* this, Unity.Physics.BoundingVolumeHierarchy.Builder.Range range, Unity.Physics.BoundingVolumeHierarchy.Builder.Range* subRanges)_181920C4C390D1DC already defined in lib_burst_generated_part_0.obj
lib_burst_generated_part_2.obj : error LNK2005: .LUnity.Physics.BoundingVolumeHierarchy.Builder.SegregateSah3(Unity.Physics.BoundingVolumeHierarchy.Builder* this, Unity.Physics.BoundingVolumeHierarchy.Builder.Range range, int minItems, ref Unity.Physics.BoundingVolumeHierarchy.Builder.Range lRange, ref Unity.Physics.BoundingVolumeHierarchy.Builder.Range rRange)_B04E44E551B415A3 already defined in lib_burst_generated_part_0.obj
lib_burst_generated_part_2.obj : error LNK2005: .LUnity.Physics.BoundingVolumeHierarchy.Builder.ProcessSmallRange(Unity.Physics.BoundingVolumeHierarchy.Builder* this, Unity.Physics.BoundingVolumeHierarchy.Builder.Range baseRange, ref int freeNodeIndex)_1A602D27B3CEEC24 already defined in lib_burst_generated_part_0.obj
lib_burst_generated_part_2.obj : error LNK2005: .LUnity.Collections.NativeSortExtension.IntroSort<Unity.Mathematics.float4,Unity.Physics.BoundingVolumeHierarchy.Builder.CompareVertices>(void* array, int lo, int hi, int depth, Unity.Physics.BoundingVolumeHierarchy.Builder.CompareVertices comp)_C71C0D8412AE5CF0 already defined in lib_burst_generated_part_0.obj
lib_burst_generated_part_2.obj : error LNK2005: .Lburst.Sleef_atan2f_u35 already defined in lib_burst_generated_part_0.obj
lib_burst_generated_part_2.obj : error LNK2005: .LUnity.Physics.ConvexHullBuilder.AddPoint(Unity.Physics.ConvexHullBuilder* this, Unity.Mathematics.float3 point, uint userData, bool force2D)_40EBA74D2877F367 already defined in lib_burst_generated_part_0.obj
lib_burst_generated_part_2.obj : error LNK2005: .Lburst.memmove.inline already defined in lib_burst_generated_part_1.obj
lib_burst_generated_part_2.obj : error LNK2005: .Lburst.Sleef_asinf_u35 already defined in lib_burst_generated_part_0.obj
Creating library C:\Users\mew9\Desktop\Kraken\Kraken\Temp\Burst\burst-aotvulrnhsd.wv3\lib_burst_generated.lib and object C:\Users\mew9\Desktop\Kraken\Kraken\Temp\Burst\burst-aotvulrnhsd.wv3\lib_burst_generated.exp
C:\Users\mew9\Desktop\Kraken\Kraken\Temp\Burst\burst-aotvulrnhsd.wv3\lib_burst_generated.dll : fatal error LNK1169: one or more multiply defined symbols found
stderr:
Unhandled Exception: Burst.Compiler.IL.Aot.AotLinkerException: The native link step failed. Check previous exception in the log - linker command line : “C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.25.28610\bin\Hostx64\arm\link.exe “@C:\Users\mew9\AppData\Local\Temp\tmp16D1.tmp””
at Burst.Compiler.IL.Aot.AotNativeLinkBase.RunNativeLinkerTool(String command, String arguments, String errorMessage, String commandType, String workingDirectory)
at Burst.Compiler.IL.Aot.AotNativeLinkMSVCBase.Link(TargetCpu targetCpu, List1 inputFiles, String outputFile, Boolean enableDebugInfo) at Burst.Compiler.IL.Aot.AotCompiler.Link(List1 groups, String nameSuffix, AotCompilerOptions compilerOptions, TextWriter consoleOut, TextWriter consoleError)
at Burst.Bcl.BclApp.LibraryThread.Process(LibraryCompilationRequest libraryRequest)
at Burst.Bcl.BclApp.LibraryThread.Run()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
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, UnityEditor.Build.Reporting.BuildReport report) [0x001f4] in C:\Users\mew9\Desktop\Kraken\Kraken\Library\PackageCache\com.unity.burst@1.3.0-preview.9\Editor\BurstAotCompiler.cs:789
at 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) [0x0004d] in C:\Users\mew9\Desktop\Kraken\Kraken\Library\PackageCache\com.unity.burst@1.3.0-preview.9\Editor\BurstAotCompiler.cs:727
at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) [0x00001] in C:\Users\mew9\Desktop\Kraken\Kraken\Library\PackageCache\com.unity.burst@1.3.0-preview.9\Editor\BurstAotCompiler.cs:701
at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport report) [0x00776] in C:\Users\mew9\Desktop\Kraken\Kraken\Library\PackageCache\com.unity.burst@1.3.0-preview.9\Editor\BurstAotCompiler.cs:363
at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) [0x0000e] in C:\Users\mew9\Desktop\Kraken\Kraken\Library\PackageCache\com.unity.burst@1.3.0-preview.9\Editor\BurstAotCompiler.cs:107
at UnityEditor.Build.BuildPipelineInterfaces.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) [0x00033] in :0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEditor.Build.BuildPipelineInterfaces:OnPostBuildPlayerScriptDLLs(BuildReport)
UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[ ], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions)
UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform)
UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings()
UnityEditor.BuildPlayerWindow:OnGUI()
System.Reflection.MonoMethod:InternalInvoke(Object, Object[ ], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[ ], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[ ])
UnityEditor.HostView:Invoke(String, Object)
UnityEditor.HostView:Invoke(String)
UnityEditor.HostView:OldOnGUI()
UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI(Event, Matrix4x4, Rect, Boolean, Rect, Boolean)
UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect, Boolean)
UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Boolean)
UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI(EventBase, Boolean)
UnityEngine.UIElements.IMGUIContainer:HandleEvent(EventBase)
UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase(EventBase)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy:smile:ispatchEvent(EventBase, IPanel)
UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
UnityEngine.UIElements.EventDispatcher:ProcessEventQueue()
UnityEngine.UIElements.EventDispatcher:OpenGate()
UnityEngine.UIElements.EventDispatcherGate:smile:ispose()
UnityEngine.UIElements.EventDispatcher:ProcessEvent(EventBase, IPanel)
UnityEngine.UIElements.EventDispatcher:smile:ispatch(EventBase, IPanel, DispatchMode)
UnityEngine.UIElements.BaseVisualElementPanel:SendEvent(EventBase, DispatchMode)
UnityEngine.UIElements.UIElementsUtility:smile:oDispatch(BaseVisualElementPanel)
UnityEngine.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
(Filename: Library/PackageCache/com.unity.burst@1.3.0-preview.9/Editor/BurstAotCompiler.cs Line: 789)
DisplayProgressNotification: Build Failed
Error building Player: 2 errors
Unloading 32 Unused Serialized files (Serialized files now loaded: 0)
System memory in use before: 132.0 MB.
System memory in use after: 129.5 MB.