Internal build system error. BuildProgram exited with code 87

It has been working stable for the last two months and I’ve got this strange error and no mention about it anywhere on the internet.

I’ve got Unity-2021-1.16f and I am building for Android from macOS 13.1

First error:

    Internal build system error. BuildProgram exited with code 87.
     Old commandline for Library/Bee/artifacts/Android/d8kzr/pc3z_le_CodeGen.o:
      -march=armv8-a -D__ANDROID_API__=22 -DANDROID -DHAVE_INTTYPES_H -no-canonical-prefixes -funwind-tables -fstack-protector -fdiagnostics-format=msvc
      -fomit-frame-pointer -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow
      -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value
      -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -g -Os -fPIC -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe
      -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DTARGET_ARM64 -DIL2CPP_ENABLE_WRITE_BARRIERS=1
      -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DHAVE_BDWGC_GC -DNDEBUG -I"."
      -I"/Users/username/GitHub/HeliRaid2_SRP/HeliRaid2_SRP/Library/Bee/artifacts/Android/il2cppOutput/cpp"
      -I"/Applications/Unity/Hub/Editor/2021.3.16f1/Unity.app/Contents/il2cpp/libil2cpp/pch"
      -I"/Applications/Unity/Hub/Editor/2021.3.16f1/Unity.app/Contents/il2cpp/libil2cpp"
      -I"/Applications/Unity/Hub/Editor/2021.3.16f1/Unity.app/Contents/il2cpp/external/baselib/Include"
      -I"/Applications/Unity/Hub/Editor/2021.3.16f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/Android/Include" -o
      "Library/Bee/artifacts/Android/d8kzr/pc3z_le_CodeGen.o" -fcolor-diagnostics -target aarch64-linux-android22 -fstrict-aliasing -fdiagnostics-format=msvc -c -x c
      "/Users/username/GitHub/HeliRaid2_SRP/HeliRaid2_SRP/Library/Bee/artifacts/Android/il2cppOutput/cpp/UnityEngine.ParticleSystemModule_CodeGen.c"
    
     New commandline for Library/Bee/artifacts/Android/d8kzr/pc3z_le_CodeGen.o:
      -march=armv8-a -D__ANDROID_API__=22 -DANDROID -DHAVE_INTTYPES_H -no-canonical-prefixes -funwind-tables -fstack-protector -fdiagnostics-format=msvc
      -fomit-frame-pointer -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow
      -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value
      -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -g -Os -fPIC -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe
      -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DTARGET_ARM64 -DIL2CPP_ENABLE_WRITE_BARRIERS=1
      -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DHAVE_BDWGC_GC -DNDEBUG -I"."
      -I"/Users/username/GitHub/HeliRaid2_SRP/HeliRaid2_SRP/Library/Bee/artifacts/Android/il2cppOutput/cpp"
      -I"/Applications/Unity/Hub/Editor/2021.3.16f1/Unity.app/Contents/il2cpp/libil2cpp/pch"
      -I"/Applications/Unity/Hub/Editor/2021.3.16f1/Unity.app/Contents/il2cpp/libil2cpp"
      -I"/Applications/Unity/Hub/Editor/2021.3.16f1/Unity.app/Contents/il2cpp/external/baselib/Include"
      -I"/Applications/Unity/Hub/Editor/2021.3.16f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/Android/Include" -o
      "Library/Bee/artifacts/Android/d8kzr/pc3z_le_CodeGen.o" -fcolor-diagnostics -target aarch64-linux-android22 -fstrict-aliasing -fdiagnostics-format=msvc -c -x c
      "/Users/username/GitHub/HeliRaid2_SRP/HeliRaid2_SRP/Library/Bee/artifacts/Android/il2cppOutput/cpp/UnityEngine.TextRenderingModule_CodeGen.c"
    System.ArgumentException: AddAction invocation conflicts with earlier invocation for "Library/Bee/artifacts/Android/d8kzr/pc3z_le_CodeGen.o": commandLineArguments differ
    Previous AddAction was here:
    <stack trace disabled - set BEE_DEBUG to '1' to trace the source of a conflict>
    
       at Bee.Core.Backend.<>c__DisplayClass36_0.<AddAction>b__2(String msg)
       at Bee.Core.Backend.AddAction(String actionName, NPath[] targetFiles, NPath[] inputs, String executableStringFor, String[] commandLineArguments, Boolean supportResponseFile, Dictionary`2 environmentVariables, NPath[] rspAndBatchFiles, Boolean allowUnexpectedOutput, Boolean allowUnwrittenOutputFiles, Boolean banContentDigestForInputs, String[] allowedOutputSubstrings, NPath[] unavoidableOutputs, NPath[] targetDirectories, String[] sharedResources, Nullable`1 deleteOutputsBeforeRun, NPath[] filesThatMightBeIncluded, CachingMode cachingMode, NPath[] cachingInputIgnoreList, NPath profilerOutput, String responseFileSeparator)
       at Bee.NativeProgramSupport.CLikeCompiler.SetupInvocation(NPath objectFile, CLikeCompilationUnitInstruction cLikeCompilationUnitInstruction)
       at Bee.NativeProgramSupport.CLikeCompilationUnitInstruction.AddActionFor(NPath objectFile)
       at Bee.NativeProgramSupport.NativeProgram.SetupObjectFilesAndSetupBuiltNativeProgram(String outputFilenameWithoutExtension, NativeProgramConfiguration config, NativeProgramFormat format, ArtifactLocationPolicy artifactLocationPolicy, ObjectFileProductionInstructions[] allUnits, NPath[] additionalObjectFiles, ILibrary[] libraries, NPath[] knownHeaders)
       at Bee.NativeProgramSupport.NativeProgram.SetupSpecificConfigurationImpl(NativeProgramConfiguration config, NativeProgramFormat format, ObjectFileProducer[] objectFileProducers)
       at Bee.NativeProgramSupport.NativeProgram.SetupSpecificConfiguration(NativeProgramConfiguration config, NativeProgramFormat format, ObjectFileProducer[] objectFileProducers)
       at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupIl2CppBuild() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 369
       at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupPlayerBuild() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 171
       at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupPlayerBuild()
       at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram() in /Users/bokken/build/output/unity/unity/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/PlayerBuildProgramBase.cs:line 165
       at PlayerBuildProgramTypeWrapper.Run(String[] args)
       at Program.Main(String[] args)
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

Second Error:

    BuildFailedException: Incremental Player build failed!
    UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Modules/BeeBuildPostprocessor.cs:604)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:28)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <62de111f18d242d586f9a078a33b1ba2>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, 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 /Users/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:370)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

What could it possibly be?

I appreciate any help


What I’ve tried so far:

  • building empty project created from template - WORKS
  • Building same project with empty scene - FAIL
  • Moving the project to other version of Unity - FAIL
  • I’ve tried to give full access to the disk to Unity. Build result - FAIL
  • I totally deleted the Library folder. Build result - FAIL
  • I’ve asked my partner to build on Windows - Works

(We are pretty far from each other, and I need to build my own builds to test our game)

If someone will find this page once, Deleting of underscore “_” in project path solved a problem

@Rustamovich Delete the bee folder from the Library folder and try again

look into this thread for more solutions:

https://forum.unity.com/threads/internal-build-system-error-backend-exited-with-code-after-upgrade-to-2021-1-4f1-stable.1098451/

The file is too big for the destination file system. Probably a file bigger than 4 gigs and a FAT32 file system.