Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Il2cpp error when building for android 64

Discussion in 'Editor & General Support' started by sananbintahir, Aug 30, 2020.

  1. sananbintahir

    sananbintahir

    Joined:
    Oct 15, 2019
    Posts:
    1
    When trying to compile my project on 64 bits, I get this error randomly. If I try enough times, the compilation is sometimes successful. But most of the time I get the following error, and I can't determine why that is.

    Code (csharp):
    1. Failed running C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARM64" --configuration="Release" --outputpath="C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a\libil2cpp.so" --cachedirectory="C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Assets\..\Library\il2cpp_android_arm64-v8a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.3.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.3.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.3.14f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.3.14f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --generatedcppdir=C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Temp/StagingArea/Il2Cpp/il2cppOutput --dotnetprofile="unityaot" --enable-debugger
    2.  
    3. stdout:
    4. Building libil2cpp.so with AndroidToolChain
    5.     Output directory: C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a
    6.     Cache directory: C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Library\il2cpp_android_arm64-v8a\il2cpp_cache
    7. ObjectFiles: 952 of which compiled: 0
    8. Total compilation time: 541 milliseconds.
    9. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\holospaces\AppData\Local\Temp\tmp60F.tmp" -o "C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_9AC8E7211C385A2378707A1D85924E53\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target aarch64-linux-android21 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=bfd.exe
    10.  
    11. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `IntegratedSubsystem_SetHandle_mB733DA594EA535C6BB5E3F79387C518EE24AF8A4':
    12. C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.SubsystemsModule.cpp:1539:(il2cpp+0x2c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp_codegen_resolve_icall(char const*)' defined in .text._Z28il2cpp_codegen_resolve_icallPKc section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC0C5B7FF378DCD7215A6C3C26C47F96.o
    13. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `IntegratedSubsystem_Start_m37CC4D2EEF19F87CC187680C29AADAB07B502786':
    14. C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.SubsystemsModule.cpp:1548:(il2cpp+0x74): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp_codegen_resolve_icall(char const*)' defined in .text._Z28il2cpp_codegen_resolve_icallPKc section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC0C5B7FF378DCD7215A6C3C26C47F96.o
    15. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `IntegratedSubsystem_Stop_m3A7F5B736EF2209500BE0A3EA463B77DAB2CECAF':
    16. C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.SubsystemsModule.cpp:1557:(il2cpp+0xb4): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp_codegen_resolve_icall(char const*)' defined in .text._Z28il2cpp_codegen_resolve_icallPKc section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC0C5B7FF378DCD7215A6C3C26C47F96.o
    17. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `IntegratedSubsystem_Destroy_mB7476F3A7D56311C9A05D428CE8D378A71BEFD5D':
    18. C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.SubsystemsModule.cpp:1566:(il2cpp+0x104): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp_codegen_initialize_method(unsigned int)' defined in .text._Z32il2cpp_codegen_initialize_methodj section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC0C5B7FF378DCD7215A6C3C26C47F96.o
    19. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `il2cpp::os::ThreadLocalValueImpl::GetValue(void**)':
    20. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\os/Posix/ThreadLocalValueImpl.h:50:(il2cpp+0x15c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `pthread_getspecific@@LIBC' defined in .text section in C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    21. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `il2cpp::utils::Debugger::IsSequencePointActiveEntry(Il2CppSequencePoint*)':
    22. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\vm-utils/Debugger.h:128:(il2cpp+0x18c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `unity_sequence_point_active_entry' defined in .text.unity_sequence_point_active_entry section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/53105BABE39863985D61956574257652.o
    23. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `il2cpp::utils::Debugger::CheckSequencePointEntry(Il2CppSequencePointExecutionContext*, Il2CppSequencePoint*)':
    24. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\vm-utils/Debugger.h:154:(il2cpp+0x1a0): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp::utils::Debugger::OnBreakPointHit(Il2CppSequencePoint*)' defined in .text._ZN6il2cpp5utils8Debugger15OnBreakPointHitEP19Il2CppSequencePoint section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC8CBA9961AC81F4B182794941AAA316.o
    25. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `il2cpp::utils::Debugger::CheckSequencePoint(Il2CppSequencePointExecutionContext*, Il2CppSequencePoint*)':
    26. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\vm-utils/Debugger.h:145:(il2cpp+0x208): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp::utils::Debugger::OnBreakPointHit(Il2CppSequencePoint*)' defined in .text._ZN6il2cpp5utils8Debugger15OnBreakPointHitEP19Il2CppSequencePoint section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC8CBA9961AC81F4B182794941AAA316.o
    27. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\vm-utils/Debugger.h:145:(il2cpp+0x258): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp::utils::Debugger::OnBreakPointHit(Il2CppSequencePoint*)' defined in .text._ZN6il2cpp5utils8Debugger15OnBreakPointHitEP19Il2CppSequencePoint section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC8CBA9961AC81F4B182794941AAA316.o
    28. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\vm-utils/Debugger.h:145:(il2cpp+0x2b4): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp::utils::Debugger::OnBreakPointHit(Il2CppSequencePoint*)' defined in .text._ZN6il2cpp5utils8Debugger15OnBreakPointHitEP19Il2CppSequencePoint section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC8CBA9961AC81F4B182794941AAA316.o
    29. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `IntegratedSubsystem_Destroy_mB7476F3A7D56311C9A05D428CE8D378A71BEFD5D':
    30. C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.SubsystemsModule.cpp:1584:(il2cpp+0x2e8): additional relocation overflows omitted from the output
    31. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    32.  
    33.  
    34.    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    35.    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    36.    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    37.    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    38.    at il2cpp.Program.Main(String[] args)
    39. stderr:
    40.  
    41. Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\holospaces\AppData\Local\Temp\tmp60F.tmp" -o "C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_9AC8E7211C385A2378707A1D85924E53\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target aarch64-linux-android21 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=bfd.exe
    42.  
    43. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `IntegratedSubsystem_SetHandle_mB733DA594EA535C6BB5E3F79387C518EE24AF8A4':
    44. C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.SubsystemsModule.cpp:1539:(il2cpp+0x2c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp_codegen_resolve_icall(char const*)' defined in .text._Z28il2cpp_codegen_resolve_icallPKc section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC0C5B7FF378DCD7215A6C3C26C47F96.o
    45. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `IntegratedSubsystem_Start_m37CC4D2EEF19F87CC187680C29AADAB07B502786':
    46. C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.SubsystemsModule.cpp:1548:(il2cpp+0x74): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp_codegen_resolve_icall(char const*)' defined in .text._Z28il2cpp_codegen_resolve_icallPKc section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC0C5B7FF378DCD7215A6C3C26C47F96.o
    47. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `IntegratedSubsystem_Stop_m3A7F5B736EF2209500BE0A3EA463B77DAB2CECAF':
    48. C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.SubsystemsModule.cpp:1557:(il2cpp+0xb4): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp_codegen_resolve_icall(char const*)' defined in .text._Z28il2cpp_codegen_resolve_icallPKc section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC0C5B7FF378DCD7215A6C3C26C47F96.o
    49. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `IntegratedSubsystem_Destroy_mB7476F3A7D56311C9A05D428CE8D378A71BEFD5D':
    50. C:\Users\holospaces\Documents\HoloSpaces\client-holospaces-unity\Temp\StagingArea\Il2Cpp\il2cppOutput/UnityEngine.SubsystemsModule.cpp:1566:(il2cpp+0x104): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp_codegen_initialize_method(unsigned int)' defined in .text._Z32il2cpp_codegen_initialize_methodj section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC0C5B7FF378DCD7215A6C3C26C47F96.o
    51. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `il2cpp::os::ThreadLocalValueImpl::GetValue(void**)':
    52. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\os/Posix/ThreadLocalValueImpl.h:50:(il2cpp+0x15c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `pthread_getspecific@@LIBC' defined in .text section in C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    53. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `il2cpp::utils::Debugger::IsSequencePointActiveEntry(Il2CppSequencePoint*)':
    54. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\vm-utils/Debugger.h:128:(il2cpp+0x18c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `unity_sequence_point_active_entry' defined in .text.unity_sequence_point_active_entry section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/53105BABE39863985D61956574257652.o
    55. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `il2cpp::utils::Debugger::CheckSequencePointEntry(Il2CppSequencePointExecutionContext*, Il2CppSequencePoint*)':
    56. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\vm-utils/Debugger.h:154:(il2cpp+0x1a0): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp::utils::Debugger::OnBreakPointHit(Il2CppSequencePoint*)' defined in .text._ZN6il2cpp5utils8Debugger15OnBreakPointHitEP19Il2CppSequencePoint section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC8CBA9961AC81F4B182794941AAA316.o
    57. C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/00D5D98D09A9AD6134A5471347A9A6D2.o: In function `il2cpp::utils::Debugger::CheckSequencePoint(Il2CppSequencePointExecutionContext*, Il2CppSequencePoint*)':
    58. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Data\il2cpp\libil2cpp\vm-utils/Debugger.h:145:(il2cpp+0x208): relocation truncated to fit: R_AARCH64_CALL26 against symbol `il2cpp::utils::Debugger::OnBreakPointHit(Il2CppSequencePoint*)' defined in .text._ZN6il2cpp5utils8Debugger15OnBreakPointHitEP19Il2CppSequencePoint section in C:/Users/holospaces/Documents/HoloSpaces/client-holospaces-unity/Library/il2cpp_android_arm64-v8a/il2cpp_cache/libil2cpp/DC8CBA9961AC81F4B182794941AAA316.o
    59. C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Dat<message truncated>
     
    morhun_EP likes this.