Search Unity

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

    shpark1

    Joined:
    Jun 30, 2019
    Posts:
    2

    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

    stdout:
    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|
    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(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)

    UnityEngine.Debug:LogError(Object)
    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

    MikeAtMultiware

    Joined:
    Feb 3, 2019
    Posts:
    1
    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.
     
unityunity