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

Build on external disk "Fatal error in Unity CIL Linker"

Discussion in 'iOS and tvOS' started by xidived, Oct 28, 2018.

  1. xidived

    xidived

    Joined:
    Aug 5, 2018
    Posts:
    3
    I am trying to build Unity project for IOS. Project is on the external ssd. When i build it every time i see error:

    Code (CSharp):
    1. Failed running /Volumes/XIDIDISK/Applications/Unity/Unity.app/Contents/il2cpp/build/UnityLinker.exe -out="/Volumes/XIDIDISK/Home/unity/TD/TD/Temp/StagingArea/Data/Managed/tempStrip" -x="/Volumes/XIDIDISK/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -x "/Volumes/XIDIDISK/Home/unity/TD/TD/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/var/folders/l9/n6sw14290m53xp7sqwb3hhtr0000gn/T/tmp2581709c.tmp" -x "/var/folders/l9/n6sw14290m53xp7sqwb3hhtr0000gn/T/tmp5c66cd98.tmp" -x "/var/folders/l9/n6sw14290m53xp7sqwb3hhtr0000gn/T/tmp23437938.tmp" -d "/Volumes/XIDIDISK/Home/unity/TD/TD/Temp/StagingArea/Data/Managed" -a  "/Volumes/XIDIDISK/Home/unity/TD/TD/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a  "/Volumes/XIDIDISK/Home/unity/TD/TD/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a  "/Volumes/XIDIDISK/Home/unity/TD/TD/Temp/StagingArea/Data/Managed/UnityEngine.Analytics.dll" --dotnetruntime=il2cpp --dotnetprofile=legacyunity --use-editor-options
    2.  
    3. stdout:
    4. Fatal error in Unity CIL Linker
    5. System.IO.IOException: Sharing violation on path /Volumes/XIDIDISK/Home/unity/TD/TD/Temp/StagingArea/Data/Managed/tempStrip/UnityEngine.CoreModule.dll.mdb
    6.   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <f2e6809acb14476a81f399aeb800f8f2>:0
    7.   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) [0x00000] in <f2e6809acb14476a81f399aeb800f8f2>:0
    8.   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) [0x00000] in <f2e6809acb14476a81f399aeb800f8f2>:0
    9.   at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess)
    10.   at Mono.CompilerServices.SymbolWriter.MonoSymbolWriter.WriteSymbolFile (System.Guid guid) [0x0004a] in <7b18762bd9a74ff8991aff8116d37959>:0
    11.   at Mono.Cecil.Mdb.MdbWriter.Dispose () [0x00000] in <7b18762bd9a74ff8991aff8116d37959>:0
    12.   at Mono.Cecil.ModuleWriter.Write (Mono.Cecil.ModuleDefinition module, Mono.Disposable`1[T] stream, Mono.Cecil.WriterParameters parameters) [0x00143] in <29def57cc34c477e8d7d610cf6b6865a>:0
    13.   at Mono.Cecil.ModuleWriter.WriteModule (Mono.Cecil.ModuleDefinition module, Mono.Disposable`1[T] stream, Mono.Cecil.WriterParameters parameters) [0x00002] in <29def57cc34c477e8d7d610cf6b6865a>:0
    14.   at Mono.Cecil.ModuleDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x00017] in <29def57cc34c477e8d7d610cf6b6865a>:0
    15.   at Mono.Cecil.AssemblyDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x00000] in <29def57cc34c477e8d7d610cf6b6865a>:0
    16.   at Mono.Linker.Steps.OutputStep.WriteAssembly (Mono.Cecil.AssemblyDefinition assembly, System.String directory, Mono.Cecil.WriterParameters writerParameters) [0x0007f] in <fdb4fc84d9e048eaa2de2ebaa14c8a30>:0
    17.   at Unity.Linker.Steps.UnityOutputStep.WriteAssembly (Mono.Cecil.AssemblyDefinition assembly, System.String directory, Mono.Cecil.WriterParameters writerParameters) [0x00001] in <04c78ac134f947649b7ee6e8097dfdc1>:0
    18.   at Mono.Linker.Steps.OutputStep.WriteAssembly (Mono.Cecil.AssemblyDefinition assembly, System.String directory) [0x0000b] in <fdb4fc84d9e048eaa2de2ebaa14c8a30>:0
    19.   at Mono.Linker.Steps.OutputStep.OutputAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x0007c] in <fdb4fc84d9e048eaa2de2ebaa14c8a30>:0
    20.   at Mono.Linker.Steps.OutputStep.ProcessAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x00001] in <fdb4fc84d9e048eaa2de2ebaa14c8a30>:0
    21.   at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) [0x00031] in <fdb4fc84d9e048eaa2de2ebaa14c8a30>:0
    22.   at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00021] in <fdb4fc84d9e048eaa2de2ebaa14c8a30>:0
    23.   at Unity.Linker.UnityDriver.Run () [0x00087] in <04c78ac134f947649b7ee6e8097dfdc1>:0
    24.   at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling () [0x00007] in <04c78ac134f947649b7ee6e8097dfdc1>:0
    25.   at Unity.Linker.UnityDriver.RunDriver () [0x00002] in <04c78ac134f947649b7ee6e8097dfdc1>:0
    26. stderr:
    27.  
    28. UnityEngine.Debug:LogError(Object)
    29. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    30. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    31. UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:91)
    32. UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1, BuildTargetGroup) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:84)
    33. UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:215)
    34. UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:115)
    35. UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:170)
    36. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    If I move project to my main hard disk it's building without errors. I've checked all permission of the folder, all of them is write and read. Is anyone known how to fix this problem?
     
  2. xidived

    xidived

    Joined:
    Aug 5, 2018
    Posts:
    3
    Problem have solved by changing format of external ssd to Mac OS Extended
     
    monark and julia83 like this.
  3. GCI

    GCI

    Joined:
    Oct 9, 2020
    Posts:
    8
  4. GCI

    GCI

    Joined:
    Oct 9, 2020
    Posts:
    8
    Exception: D:\2019.4.20f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe did not run properly!

    Failed running "D:\2019.4.20f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe" @"C:/Users/ghisl/Downloads/Run, Jump and Duck/Temp/StagingArea/assets/bin/Data/Managed/response.rsp"

    stdout:
    Fatal error in Unity CIL Linker
    System.UnauthorizedAccessException: Access to the path 'C:\Users\ghisl\Downloads\Run' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at 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)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
    at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
    at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
    at System.Xml.XmlTextReaderImpl.OpenUrl()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
    at System.Xml.XPath.XPathDocument..ctor(String uri, XmlSpace space)
    at Unity.Linker.UnityDriver.ParseArguments(Pipeline p, UnityLinkContext context, ArrayList custom_steps, I18nAssemblies& assemblies)
    at Unity.Linker.UnityDriver.Run()
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling()
    at Unity.Linker.UnityDriver.RunDriver()
    stderr:

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <d76da2c9a45b4b02b93f56ae560b1d44>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <8d21067e8d9c494db25a2b2485216e63>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  5. AdamSt

    AdamSt

    Joined:
    Jun 2, 2013
    Posts:
    18
    FYI: On windows, something was "holding" file "open" and it could not be overwritten when building (*.apk). Restarting windows fixed problem, I deleted old apk, run build and it created new apk succesfully.