Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Failed running com.unity.burst@0.2.4-preview.45\.Runtime\bcl.exe

Discussion in 'FPS.Sample Game' started by shpark1, Dec 5, 2019.

  1. shpark1


    Jun 30, 2019

    Failed running C:\Users\shpark\src\FPSSample\Library\PackageCache\com.unity.burst@0.2.4-preview.45\.Runtime\bcl.exe --debug=true @C:\Users\shpark\AppData\Local\Temp\tmp3e80982a.tmp

    Compiling for the platform `Windows` using the following toolchain : MsvcDesktopToolChain
    Msvc Install Version: 15.0
    Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
    Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe
    Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe

    System.Exception: Process C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe ended with exitcode 1181
    LINK : fatal error LNK1181: cannot open input file 'kernel32.lib'

    at Unity.IL2CPP.Shell.ExecuteAndCaptureOutput(ExecuteArgs executeArgs)
    at Burst.Compiler.IL.Aot.AotLinker.Link(IEnumerable`1 objFiles, String outPath)
    at Burst.Linker.Program.Main(String[] args)
    Usage: blink.exe [options] <input .o/.obj/.ll files...>
    --help Show Help
    --platform=VALUE Target Platform <Windows|macOS|Linux|Android|iOS|
    --target=VALUE Target CPU <Auto|X86_SSE2|X86_SSE4|X64_SSE2|X64_
    Plugin folder
    --output=VALUE Output shared library file

    An unexpected exception occurred:

    System.InvalidOperationException: The linker failed. Check previous exception in the log
    at Burst.Compiler.IL.Aot.AotCompiler.CallLinkerProcess(TargetPlatform platform, TargetCpu targetCpu, List`1 plugins, List`1 inputFiles, String outputFile)
    at Burst.Compiler.IL.Aot.AotCompiler.Link(Module module, AotCompilerOptions compilerOptions)
    at Burst.Bcl.Program.Main(String[] args)

    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLs(BuildReport) (at Library/PackageCache/com.unity.burst@0.2.4-preview.45/Editor/BurstAotCompiler.cs:247)
    UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
    BuildTools:BuildGame(String, String, BuildTarget, BuildOptions, String, Boolean) (at Assets/Scripts/EditorTools/Editor/BuildTools.cs:113)
    BuildWindow:DrawBuildTools() (at Assets/Scripts/EditorTools/Editor/BuildWindow.cs:353)
    BuildWindow:OnGUI() (at Assets/Scripts/EditorTools/Editor/BuildWindow.cs:145)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

    Hi, I am trying to run FPSSample on my Windows desktop, but the build fails due to this link error while running bcl.exe.

    I normally installed Unity 2018.3.8f1 and VS2017 with Windows Kits.

    I also followed your advice in README to reimport some shader files.

    Currently there are three versions of Windows Kits installed; 10.0.[10240/16299/17763].0.

    How can I avoid this link error while building FPSSample?

    I'd be happy to provide you with more information if it is necessary.
  2. MikeAtMultiware


    Feb 3, 2019
    I fixed this by going into the Visual Studio Installer (2019 for me) and selecting the "Desktop development with C++" in the workload tab... and installed that.