Search Unity

Bug Build Issue: BuilderFailedException: Il2CppCCalculateTypeValues.cpp

Discussion in 'Editor & General Support' started by jeffweber, May 19, 2021.

  1. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616
    Does anyone have any idea how to fix the following. I'm running 2021.1.7 and this happens when I try to build my project on Windows.

    Exception: Unity.IL2CPP.Building.BuilderFailedException: Il2CppCCalculateTypeValues.cpp
    C:\Users\jeffw\FarseerGames\Games\JustFlip\justfliprepo\JustFlipUnity\Library\Il2cppBuildCache\Windows\x64\il2cppOutput\Il2CppCCalculateTypeValues.cpp(1): fatal error C1853: 'C:\Users\jeffw\FarseerGames\Games\JustFlip\justfliprepo\JustFlipUnity\Library\il2cpp_cache\E13E29922BAA6E0D907D8109461E5FBF.pch' precompiled header file is from a different version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
     
  2. jeffweber

    jeffweber

    Joined:
    Dec 17, 2009
    Posts:
    616

    Anyone?
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    My suspicion is that a new version of the C++ compiler was installed since the last time the build cache was updated. Please try to manually delete the C:\Users\jeffw\FarseerGames\Games\JustFlip\justfliprepo\JustFlipUnity\Library\il2cpp_cache\ directory, and the cache should be created again.