Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

Build - IL2CPP errors - Please, how fix it?

Discussion in 'Android' started by Nakaii, Sep 2, 2017.

  1. UzairHassan11

    UzairHassan11

    Joined:
    Sep 3, 2019
    Posts:
    3
    I can't see if they're same as above mentioned errors or different
    Can you please tell what is solution to this problem?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    My guidance is the same as I mentioned above. In your case, the extern methods seem to be in an assembly named RTVoice.dll. If this is not an assembly you build from source, you will need to contact the vendor of that assembly to see if they can correct the problem.
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    My guidance is the same as above. The only difference is the extern method in this case is named PostRender.
     
  4. Arther12

    Arther12

    Joined:
    Sep 20, 2017
    Posts:
    6
    Anyone help with this error.

    Failed running C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="F:\Fuse\dark - Copy\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="F:\Fuse\dark - Copy\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.2.8f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="F:/Fuse/dark - Copy/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="F:/Fuse/dark - Copy/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: F:\Fuse\dark - Copy\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: F:\Fuse\dark - Copy\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: Wrote crash dump file "C:\Users\PC\AppData\Local\Temp\clang++.exe-4127c8.dmp"
    0x00007FF87C013DEF (0x0000000000000028 0x0000000003B8D5A0 0x0000000000000003 0x000000003B34BCD0), memmove() + 0xAF bytes(s)
    0x0000000001DEC2B1 (0x000000002565EE28 0x0000000000000000 0x00000000A3821340 0x00000000A3821350)
    0x0000000001DEC907 (0x0000000000008000 0x000000003D968650 0x0000000000000028 0x0000000049249249)
    0x0000000001DECA3B (0x000079F41166B314 0x0000000000160000 0x0000000203B8D6C8 0x0000000000000012)
    0x0000000001D942FB (0x0000000000000000 0x000000002565EDC0 0x0000000000000000 0x000000002565CA20)
    0x0000000001DE81A2 (0x0000000003B8DD60 0x0000000000000005 0x0000000003B8DD90 0x00000000023E0834)
    0x00000000023E3214 (0x00000000043E81C0 0x00000000086CC720 0x0000000008AC1620 0x0000000000000001)
    0x00000000023E32E3 (0x00000000075226F8 0x00000000043E81C0 0x00000000043E81D8 0x0000000000000000)
    0x00000000023E3DE5 (0x0000000003B8DF40 0x0000000003B8DF48 0x000000002BB53190 0x0000000000B2038B)
    0x00000000006E3BF2 (0x0000000003B8E470 0x00000000009C7A6D 0x0000000004395080 0x00000000011E1C23)
    0x00000000028A8C02 (0x00000000044D0000 0x000000002BB53190 0x000000000000001B 0x0000000000000005)
    0x0000000000932867 (0x0000000003B8E6D0 0x000000000439B910 0x000000000439BA80 0x00007FF87E71CFB6)
    0x000000000087E221 (0x0000000002CCF4D8 0x000000000000000D 0x0000000002CCF4D8 0x00000000036BF7FF)
    0x000000000045C916 (0x000000000000000A 0x0000000002A91256 0x0000000000000008 0x0000000004387C80)
    0x0000000000438905 (0x0000000000000000 0x0000000003B80000 0x000000000265BDB0 0x0000000002A91256)
    0x00000000004093C4 (0x0000000004394A60 0x00000000044D8CC0 0x0000000000000002 0x0000000004394D00)
    0x0000000000402948 (0x0000000000000001 0x0000000000000000 0x0000000000000000 0x00007FF87E71A3D7)
    0x0000000002A93610 (0x0000000000000091 0x000000000000004E 0x0000000000000000 0x0000000000000000)
    0x00000000004013B5 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    0x00000000004014E8 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    0x00007FF87E5C8364 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
    0x00007FF87E7470D1 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
    clang++.exe: error: clang frontend command failed due to signal (use -v to see invocation)
    Android clang version 5.0.300080 (based on LLVM 5.0.300080)
    Target: armv7-none-linux-android
    Thread model: posix
    InstalledDir: C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin
    clang++.exe: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
    clang++.exe: note: diagnostic msg:
    ********************

    PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
    Preprocessed source(s) and associated run script(s) are located at:
    clang++.exe: note: diagnostic msg: C:\Users\PC\AppData\Local\Temp\Assembly-CSharp4-e94fa6.cpp
    clang++.exe: note: diagnostic msg: C:\Users\PC\AppData\Local\Temp\Assembly-CSharp4-e94fa6.sh
    clang++.exe: note: diagnostic msg:

    ********************

    Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp\external\xxHash" -I"F:\Fuse\dark - Copy\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\include" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\include\backward" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a\include" -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fPIC -Os --sysroot "C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot" -gcc-toolchain "C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -isystem "C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot\usr\include\arm-linux-androideabi" -D__ANDROID_API__=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "F:\Fuse\dark - Copy\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp4.cpp" -o "F:/Fuse/dark - Copy/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/85A86474284FA872F371C77EC441C685.o"

    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
    stderr:

    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: Wrote crash dump file "C:\Users\PC\AppData\Local\Temp\clang++.exe-4127c8.dmp"
    0x00007FF87C013DEF (0x0000000000000028 0x0000000003B8D5A0 0x0000000000000003 0x000000003B34BCD0), memmove() + 0xAF bytes(s)
    0x0000000001DEC2B1 (0x000000002565EE28 0x0000000000000000 0x00000000A3821340 0x00000000A3821350)
    0x0000000001DEC907 (0x0000000000008000 0x000000003D968650 0x0000000000000028 0x0000000049249249)
    0x0000000001DECA3B (0x000079F41166B314 0x0000000000160000 0x0000000203B8D6C8 0x0000000000000012)
    0x0000000001D942FB (0x0000000000000000 0x000000002565EDC0 0x0000000000000000 0x000000002565CA20)
    0x0000000001DE81A2 (0x0000000003B8DD60 0x0000000000000005 0x0000000003B8DD90 0x00000000023E0834)
    0x00000000023E3214 (0x00000000043E81C0 0x00000000086CC720 0x0000000008AC1620 0x0000000000000001)
    0x00000000023E32E3 (0x00000000075226F8 0x00000000043E81C0 0x00000000043E81D8 0x0000000000000000)
    0x00000000023E3DE5 (0x0000000003B8DF40 0x0000000003B8DF48 0x000000002BB53190 0x0000000000B2038B)
    0x00000000006E3BF2 (0x0000000003B8E470 0x00000000009C7A6D 0x0000000004395080 0x00000000011E1C23)
    0x00000000028A8C02 (0x00000000044D0000 0x000000002BB53190 0x000000000000001B 0x0000000000000005)
    0x0000000000932867 (0x0000000003B8E6D0 0x000000000439B910 0x000000000439BA80 0x00007FF87E71CFB6)
    0x000000000087E221 (0x0000000002CCF4D8 0x000000000000000D 0x0000000002CCF4D8 0x00000000036BF7FF)
    0x000000000045C916 (0x000000000000000A 0x0000000002A91256 0x0000000000000008 0x0000000004387C80)
    0x0000000000438905 (0x0000000000000000 0x0000000003B80000 0x000000000265BDB0 0x0000000002A91256)
    0x00000000004093C4 (0x0000000004394A60 0x00000000044D8CC0 0x0000000000000002 0x0000000004394D00)
    0x0000000000402948 (0x0000000000000001 0x0000000000000000 0x0000000000000000 0x00007FF87E71A3D7)
    0x0000000002A93610 (0x0000000000000091 0x000000000000004E 0x0000000000000000 0x0000000000000000)
    0x00000000004013B5 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    0x00000000004014E8 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    0x00007FF87E5C8364 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
    0x00007FF87E7470D1 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
    clang++.exe: error: clang frontend command failed due to signal (use -v to see invocation)
    Android clang version 5.0.300080 (based on LLVM 5.0.300080)
    Target: armv7-none-linux-android
    Thread model: posix
    InstalledDir: C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin
    clang++.exe: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
    clang++.exe: note: diagnostic msg:
    ********************

    PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
    Preprocessed source(s) and associated run script(s) are located at:
    clang++.exe: note: diagnostic msg: C:\Users\PC\AppData\Local\Temp\Assembly-CSharp4-e94fa6.cpp
    clang++.exe: note: diagnostic msg: C:\Users\PC\AppData\Local\Temp\Assembly-CSharp4-e94fa6.sh
    clang++.exe: note: diagnostic msg:

    ********************

    Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\il2cpp\external\xxHash" -I"F:\Fuse\dark - Copy\Temp\StagingArea\Il2Cpp\il2cppOutput" -I"." -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\include" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\include\backward" -I"C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a\include" -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fPIC -Os --sysroot "C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot" -gcc-toolchain "C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -isystem "C:\Program Files\Unity\Hub\Editor\2019.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot\usr\include\arm-linux-androideabi" -D__ANDROID_API__=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "F:\Fuse\dark - Copy\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp4.cpp" -o "F:/Fuse/dark - Copy/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/85A86474284FA872F371C77EC441C685.o"

    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.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:126)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:503)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:484)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    This looks like a crash in the C++ compiler from the Android NDK. You might want to try Unity 2019.3 if possible with this project, as it is using a newer version of the NDK.

    Otherwise, if you can send us a bug report with this project, we can investigate it.
     
  6. Arther12

    Arther12

    Joined:
    Sep 20, 2017
    Posts:
    6
    This problem comes in this project only, other projects works fine. Is it something in the project that is causing this issue?
     
  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    Yes, I suspect that is the case. Although it is not easy to determine what is causing it from this error message alone.
     
  8. Sohaib_techverx

    Sohaib_techverx

    Joined:
    Aug 15, 2019
    Posts:
    16
    Hi,

    I have tried everything that has been mentioned in this thread and I have given up. I am getting the following errors. Please let me know what can I do get rid of them.

    Error 1:
    Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="E:\Unity\Wordmaze\wordmaze-unity\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="E:\Unity\Wordmaze\wordmaze-unity\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="E:/setups/Android/android-ndk-r16b-windows-x86_64/android-ndk-r16b" --map-file-parser="C:\Program Files\Unity\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="E:\Unity\Wordmaze\wordmaze-unity\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="E:\Unity\Wordmaze\wordmaze-unity\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: E:\Unity\Wordmaze\wordmaze-unity\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 653 of which compiled: 0
    Total compilation time: 2795 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\TEch\AppData\Local\Temp\tmp5BC0.tmp" -o "E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_652D8EEA2088E3FE310208950957749D\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_652D8EEA2088E3FE310208950957749D\libil2cpp.map" -rdynamic -fuse-ld=gold.exe

    clang++.exe: error: linker command failed due to signal (use -v to see invocation)


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
    stderr:

    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\TEch\AppData\Local\Temp\tmp5BC0.tmp" -o "E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_652D8EEA2088E3FE310208950957749D\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_652D8EEA2088E3FE310208950957749D\libil2cpp.map" -rdynamic -fuse-ld=gold.exe

    clang++.exe: error: linker command failed due to signal (use -v to see invocation)


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.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)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:368)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:349)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Error 2:
    Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:368)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:349)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <492d67763d4d482e8616a9848b18ccab>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <492d67763d4d482e8616a9848b18ccab>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <492d67763d4d482e8616a9848b18ccab>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <492d67763d4d482e8616a9848b18ccab>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, 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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Update:
    Downloaded NDK r16b again, used Android Studio to download the latest Android SDK. Reinstalled Unity 2018.3.3f1, updated Visual Studio 2017 and I am still getting the same error.
     
    Last edited: Oct 28, 2019
  9. haidao0923

    haidao0923

    Joined:
    Jul 3, 2018
    Posts:
    2
    I have two errors but the build say succeed when I try to build http://prntscr.com/poaf7x

    Code (CSharp):
    1. Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\haixd\Desktop\Idle Count\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\haixd\Desktop\Idle Count\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/haixd/Desktop/android-ndk-r13b" --map-file-parser="C:\Program Files\Unity\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll" --assembly="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dll" --assembly="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --generatedcppdir="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput"
    2.  
    3. stdout:
    4. Building libil2cpp.so with AndroidToolChain
    5.     Output directory: C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    6.     Cache directory: C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    7. ObjectFiles: 520 of which compiled: 3
    8.     Time Compile: 1930 milliseconds Bulk_Assembly-CSharp_0.cpp
    9.     Time Compile: 1374 milliseconds Il2CppMethodPointerTable.cpp
    10.     Time Compile: 1370 milliseconds Il2CppCodeRegistration.cpp
    11. Total compilation time: 2436 milliseconds.
    12. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\haixd\Desktop\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\haixd\AppData\Local\Temp\tmpC647.tmp" -o "C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4DD58D54ECF34F58256F7CD87C3C3435\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\haixd\Desktop\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\haixd\Desktop\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\haixd\Desktop\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4DD58D54ECF34F58256F7CD87C3C3435\libil2cpp.map" -rdynamic -fuse-ld=bfd.exe
    13.  
    14. C:/Users/haixd/Desktop/Idle Count/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/49AE9099BADC8ABC9A2DB23BAB244422.o: In function `Link_openWindow_m4277498644':
    15. C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:7338: undefined reference to `openWindow'
    16. C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:7338: undefined reference to `openWindow'
    17. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    18.  
    19.  
    20.    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    21.    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    22.    at il2cpp.Program.DoRun(String[] args)
    23.    at il2cpp.Program.Run(String[] args)
    24.    at il2cpp.Program.Main(String[] args)
    25. stderr:
    26.  
    27. Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\haixd\Desktop\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\haixd\AppData\Local\Temp\tmpC647.tmp" -o "C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4DD58D54ECF34F58256F7CD87C3C3435\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\haixd\Desktop\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\haixd\Desktop\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\haixd\Desktop\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4DD58D54ECF34F58256F7CD87C3C3435\libil2cpp.map" -rdynamic -fuse-ld=bfd.exe
    28.  
    29. C:/Users/haixd/Desktop/Idle Count/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/49AE9099BADC8ABC9A2DB23BAB244422.o: In function `Link_openWindow_m4277498644':
    30. C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:7338: undefined reference to `openWindow'
    31. C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:7338: undefined reference to `openWindow'
    32. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    33.  
    34.  
    35.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    36.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    37.   at il2cpp.Program.DoRun(String[] args)
    38.   at il2cpp.Program.Run(String[] args)
    39.   at il2cpp.Program.Main(String[] args)
    40.  
    41. UnityEngine.Debug:LogError(Object)
    42. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    43. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    44. UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:380)
    45. UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:361)
    46. UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:178)
    47. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    48. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    49.  
    Code (CSharp):
    1. Failed running C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\haixd\Desktop\Idle Count\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\haixd\Desktop\Idle Count\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/haixd/Desktop/android-ndk-r13b" --map-file-parser="C:\Program Files\Unity\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll" --assembly="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dll" --assembly="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --generatedcppdir="C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput"
    2.  
    3. stdout:
    4. Building libil2cpp.so with AndroidToolChain
    5.     Output directory: C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    6.     Cache directory: C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    7. ObjectFiles: 520 of which compiled: 3
    8.     Time Compile: 1930 milliseconds Bulk_Assembly-CSharp_0.cpp
    9.     Time Compile: 1374 milliseconds Il2CppMethodPointerTable.cpp
    10.     Time Compile: 1370 milliseconds Il2CppCodeRegistration.cpp
    11. Total compilation time: 2436 milliseconds.
    12. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\haixd\Desktop\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\haixd\AppData\Local\Temp\tmpC647.tmp" -o "C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4DD58D54ECF34F58256F7CD87C3C3435\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\haixd\Desktop\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\haixd\Desktop\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\haixd\Desktop\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4DD58D54ECF34F58256F7CD87C3C3435\libil2cpp.map" -rdynamic -fuse-ld=bfd.exe
    13.  
    14. C:/Users/haixd/Desktop/Idle Count/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/49AE9099BADC8ABC9A2DB23BAB244422.o: In function `Link_openWindow_m4277498644':
    15. C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:7338: undefined reference to `openWindow'
    16. C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:7338: undefined reference to `openWindow'
    17. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    18.  
    19.  
    20.    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    21.    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    22.    at il2cpp.Program.DoRun(String[] args)
    23.    at il2cpp.Program.Run(String[] args)
    24.    at il2cpp.Program.Main(String[] args)
    25. stderr:
    26.  
    27. Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\haixd\Desktop\android-ndk-r13b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\haixd\AppData\Local\Temp\tmpC647.tmp" -o "C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4DD58D54ECF34F58256F7CD87C3C3435\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\haixd\Desktop\android-ndk-r13b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\haixd\Desktop\android-ndk-r13b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\haixd\Desktop\android-ndk-r13b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="C:\Users\haixd\Desktop\Idle Count\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_4DD58D54ECF34F58256F7CD87C3C3435\libil2cpp.map" -rdynamic -fuse-ld=bfd.exe
    28.  
    29. C:/Users/haixd/Desktop/Idle Count/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/49AE9099BADC8ABC9A2DB23BAB244422.o: In function `Link_openWindow_m4277498644':
    30. C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:7338: undefined reference to `openWindow'
    31. C:\Users\haixd\Desktop\Idle Count\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_0.cpp:7338: undefined reference to `openWindow'
    32. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    33.  
    34.  
    35.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    36.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    37.   at il2cpp.Program.DoRun(String[] args)
    38.   at il2cpp.Program.Run(String[] args)
    39.   at il2cpp.Program.Main(String[] args)
    40.  
    41. UnityEngine.Debug:LogError(Object)
    42. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    43. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    44. UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:380)
    45. UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:361)
    46. UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:178)
    47. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    48. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    49.  
    I would really appreciate if anyone can help me with this problem.
     
  10. flintcheeze

    flintcheeze

    Joined:
    Sep 10, 2015
    Posts:
    37
    Hi, Josh
    Please i am having this same exact issue
    I don't know how i will fix it being trying different method i am done witg my game only to wake up to this issue
    Please you have to help
    Or i am totally doomed
     
  11. haidao0923

    haidao0923

    Joined:
    Jul 3, 2018
    Posts:
    2
  12. zshan

    zshan

    Joined:
    Aug 25, 2018
    Posts:
    4
    @JoshPeterson i got the same error saying
    Native error= The requested operation requires elevation.

    same error as a person names ballistic had did. i m stuck on this stage can you help me what is wrong with the code

    complete error message:

    Win32Exception: ApplicationName='C:\Program Files\Unity\Hub\Editor\2019.1.10f1\Editor\Data\il2cpp/build/il2cpp.exe', CommandLine='--convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="F:\unity\Projects\GT Car Racing Stunts game\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="F:\unity\Projects\GT Car Racing Stunts game\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.1.10f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.1.10f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.1.10f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.1.10f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="F:/unity/Projects/GT Car Racing Stunts game/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="F:/unity/Projects/GT Car Racing Stunts game/Temp/StagingArea/Il2Cpp/il2cppOutput" ', CurrentDirectory='F:\unity\Projects\GT Car Racing Stunts game\Temp\StagingArea\assets\bin\Data\Managed', Native error= The requested operation requires elevation.
    System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <0079a30f96a047348857e1cecc6c638a>:0)
    System.Diagnostics.Process.Start () (at <0079a30f96a047348857e1cecc6c638a>:0)
    (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:44)
    UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:28)
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:106)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1a10f9035b6b403994c99e5b653643c6>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <1a10f9035b6b403994c99e5b653643c6>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <1a10f9035b6b403994c99e5b653643c6>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <1a10f9035b6b403994c99e5b653643c6>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, 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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  13. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    This error seems to indicate that the linker in the Android NDK is crashing. I think you can try a few things.

    First, you can grab the linker command line from the error message and try to run it from a command prompt - maybe there will be more information about what is failing.

    Second, try to build an empty project. This should tell us if the problem is with the NDK installation or something specific to this project.

    Third, you may want to try Unity 2019.3, as it is using a newer Android NDK version. If the problem is with the NDK version, that might correct the issue.
     
  14. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    The error here is:

    undefined reference to `openWindow'

    This error indicates there is a function named openWindow in the C# code in your project which is an extern method - meaning it must be defined in a native library. That native library is not present in the build, so this error occurs.

    Should this method exist in a native library? If so compile that native library for arm64 and include it in the Unity project. If it should not exist, you can prevent Unity from compiling it using #if statements. See https://docs.unity3d.com/Manual/PlatformDependentCompilation.html for details.
     
  15. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    Have you attempted the use #if statements to remove the extern methods in C# which should not compile for Android?
     
  16. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    Unfortunately, that error message does not indicate which plugins are duplicates. You should probably search your project to look for all .dll files and remove duplicate ones.
     
  17. Sohaib_techverx

    Sohaib_techverx

    Joined:
    Aug 15, 2019
    Posts:
    16
    @JoshPeterson Hi, thanks for the response. I will definitely try out the solutions you have provided. But I will need a little more help regarding the first solution. Actually I am clueless which is the linker command in the error message and at which point should I run it. If you could kindly direct me in the right direction I will be able to get some results out of it.

    Thanks again.
     
  18. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    Sure, the command you want to run is:

    E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\TEch\AppData\Local\Temp\tmp5BC0.tmp" -o "E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_652D8EEA2088E3FE310208950957749D\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_652D8EEA2088E3FE310208950957749D\libil2cpp.map" -rdynamic -fuse-ld=gold.exe

    Make sure to first try to build in the Unity editor. When the error happens, leave the editor open so that all of the temporary files needed for the build are not deleted. Then open a command prompt and run this command.
     
  19. Sohaib_techverx

    Sohaib_techverx

    Joined:
    Aug 15, 2019
    Posts:
    16
    @JoshPeterson I followed your instructions and ran the command in the command prompt while the editor was still open (editor is still open while I am posting this message) and got the following errors:

    Code (CSharp):
    1. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/124A4D49A9FEC9B73397208968C94D46.o'
    2.  
    3. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7597D624AB8859E22FD2A1CA8BEFB6FE.o'
    4.  
    5. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/14F58B5643885AAE3969976A38CF18A9.o'
    6.  
    7. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/DA25861C78415E649D539559291EC51F.o'
    8.  
    9. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/EEE4BCFAD13993CEFB2EE399802B016D.o'
    10.  
    11. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4F0FC3F671E9313E3B81DF2961BD5C9C.o'
    12.  
    13. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/65857B90043D5D68160679ACCA720829.o'
    14.  
    15. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/BC2BA64197DDDE58B62C31BC19A14D3E.o'
    16.  
    17. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/33FE53F1381ED99F9E7CC585332EDD7C.o'
    18.  
    19. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/BF4A0347336B0E1DFCE9F44DDF218621.o'
    20.  
    21. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/BE13032564E047433DEC5E5A7EA5AB8D.o'
    22.  
    23. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/0B8562ADE696BB676ECB3C732E4BEAD2.o'
    24.  
    25. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/3678A41AB11479510C783773359C6D98.o'
    26.  
    27. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/BB414987131AEC6F290A267CF71174AD.o'
    28.  
    29. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/2CC5509204893298C072AD6185F2867F.o'
    30.  
    31. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/503DD10105A7236DAF37A7A3ADD24ADB.o'
    32.  
    33. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/611C21F9F62713F0763307161B8C8243.o'
    34.  
    35. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/F0A3BF6CF7A9550CBF4FD79A3FB7CCDB.o'
    36.  
    37. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/8A238C89B1F78BA5F6E842DEEC86D4D3.o'
    38.  
    39. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/8ADAB426238015B014D67DE04FE410AC.o'
    40.  
    41. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4CD6DA463BB7EEC059257E121C6F7DEB.o'
    42.  
    43. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/447AF61D2C5DA7B3C5AD959D7F940C87.o'
    44.  
    45. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/28B5AD945F15098F848ABA7190D2E5B8.o'
    46.  
    47. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4F8E665D2984F01DC36528555320D8FE.o'
    48.  
    49. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/56500CFFFD030AB5EC3E001F1A3B710D.o'
    50.  
    51. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/55883A9137596E37393475391A69E73C.o'
    52.  
    53. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/9479EB891B9B9698266143A14C0257A0.o'
    54.  
    55. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6CE66479DD2BCE35840815147FC5D874.o'
    56.  
    57. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/2A235E818E707F8C1EBDF8DB4961B928.o'
    58.  
    59. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6AADBC14364EC768B3EC1F642EBE596D.o'
    60.  
    61. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/9631F9580D74D822D8EF071EE956E75B.o'
    62.  
    63. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/213281A27D090CB5F47FFF7766774648.o'
    64.  
    65. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/978707D92422197150941C882883D8E8.o'
    66.  
    67. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/A48418B8634FC35766E6A91A9ACA3976.o'
    68.  
    69. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/270D85772A7476F50FDE39A15D5A23D8.o'
    70.  
    71. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/905A3E647029F38B589CE4D9F13CF72B.o'
    72.  
    73. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/D7DD23F46F4B7C71FC6C5CF9AB3A8B85.o'
    74.  
    75. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B4049FFD7C9D01EAC3E95190879D21EB.o'
    76.  
    77. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7F80E954F99C507DB9B1F03C518A0A63.o'
    78.  
    79. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/8149680BD25236659C5DEAEB49FDAD54.o'
    80.  
    81. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/522BA1601943A498EB8501A6021667E8.o'
    82.  
    83. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/40F30F6623EEB36C5BEBA93DE4024A74.o'
    84.  
    85. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/36DCB410FBF10C6C2154F7523DD9AF72.o'
    86.  
    87. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/9B41F1D39BF3A8681787735105679EAB.o'
    88.  
    89. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C713458DDDA4EB0027F5290295B98FAC.o'
    90.  
    91. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C5E124BB8EAD4578F124187D9E8CF4E9.o'
    92.  
    93. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FBCE0D94B934468FD956EBEAF42F4025.o'
    94.  
    95. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/4B26CDDA6AB15C6BC6B13E056C5F926D.o'
    96.  
    97. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/C8356F3F92BB7AAC1F02FB542E93DC17.o'
    98.  
    99. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/AFC148A0D438A085958B0B928A575E5C.o'
    100.  
    101. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/89250083ADF4E8B19396F93493AD980E.o'
    102.  
    103. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/AA740AE08ECF74FA3B094CD44DE361FE.o'
    104.  
    105. clang++.exe: error: no such file or directory: 'E:/Unity/Wordmaze/wordmaze-unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/01A1BDA724CDEB848CC7195BFF9B18FA.o'
    Just a quick question: Is there any specific version of JDK I need to install with Unity 2018.3.3f1? I have checked the Use embedded JDK checkbox in the preferences.
     
  20. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    It looks like something that command expects is missing. Maybe try to copy the linker command line out of the editor log message directory (that is what I did to post the message). The hashes in those file names may have changed.

    Regarding the JDK, I would just go with the default version the editor recommends.
     
  21. Sohaib_techverx

    Sohaib_techverx

    Joined:
    Aug 15, 2019
    Posts:
    16
    @JoshPeterson Sorry my bad. Here is the error I got this time:


    Code (CSharp):
    1. error: cannot open map file E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_68A5BA0EA3E86F13C7B1029C7C4B8EEC\libil2cpp.map: No such file or directory
    2.  
    3. E:\setups\Android\android-ndk-r16b-windows-x86_64\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: fatal error: E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_68A5BA0EA3E86F13C7B1029C7C4B8EEC\libil2cpp.so: open: No such file or directory
    4. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    5.  
    So, the JDK part is fine?
     
  22. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    Yes, I suspect the JDK is unrelated to this issue, so it is probably correct.

    Does the directory E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_68A5BA0EA3E86F13C7B1029C7C4B8EEC exist? The libil2cpp.map file that the error message mentions should be an output from the native linker in the NDK, so I wonder if it cannot open that directory to create the file.
     
  23. Sohaib_techverx

    Sohaib_techverx

    Joined:
    Aug 15, 2019
    Posts:
    16
    @JoshPeterson the directories up to

    E:\Unity\Wordmaze\wordmaze-unity\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\

    exists,

    \linkresult_68A5BA0EA3E86F13C7B1029C7C4B8EEC and "libil2cpp.so" does not exist.
     
  24. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    Ok, so testing this outside of Unity is probably not going to work as I suspected. Something in Unity must be removing those directories when the error happens.

    Maybe try the other troubleshooting steps instead then.
     
  25. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    I'm not sure what causes this. Maybe try to re-install Unity, but not as an administrator. Something is wrong with permissions, such that the Unity editor cannot start the il2cpp.exe program.
     
  26. flintcheeze

    flintcheeze

    Joined:
    Sep 10, 2015
    Posts:
    37
    How
    will I do that?
     
  27. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    Please see the link to the Unity manual in the post you quoted. It shows how to do this.
     
  28. Sohaib_techverx

    Sohaib_techverx

    Joined:
    Aug 15, 2019
    Posts:
    16
    @JoshPeterson I created an empty project and the build successful. Though I did get the following warning:
    Failed getting Android API levels. Make sure your Android SDK tools version is 25 or higher and you have internet connection.

    I checked the SDK from the Android Studio and there were no updates available.

    Then I added Facebook SDK version 7.18.0 it asked me to update the API and I clicked yes. I got 2 warning
    1) Assets/facebook/SDK/uniyt.dll uses obsolete API
    2) Some conflicting dependencies were found. (Image attached)

    But the build was successful.

    Then I added firebase Auth unity package version 6.6.0, Google version handler asked me if I want to delete obsolete file, I clicked yes. Then Android dependency resolver popped up. After that I got 2 warnings:

    1) Overriding existing asset with new GUID from package ,this may break links within your project to package assets files mentioned were, google.versionHandler.dll and google.versionHandler.dll.mdb
    2) Conflicting libs same as attached image.

    but again the build was successful.

    Then I added FB SDK 7.17.2
    Google version handler deleted the obsolete files after which I got 27 errors regarding google play services and 10 warnings for the same.
    When I ran the Android resolver warnings and error were gone but I got the conflicting dependencies warning again same as attached image.

    But again the build was successful.

    So I am guessing there is something in my project that is causing the linker issue, unfortunately I can not figure out what it is.
     

    Attached Files:

    Last edited: Oct 29, 2019
  29. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    Yes, that seems to be the case. Can you try your project with Unity 2019.3? I wonder if the newer Android NDK will work with your project.
     
  30. Sohaib_techverx

    Sohaib_techverx

    Joined:
    Aug 15, 2019
    Posts:
    16
    @JoshPeterson I recently downloaded unity 2019.2.10f (couldn't find Unity 2019.3 installer), installed Android support checked preferences to use the Android NDK and SDK installed with unity and when I press build I got the error "Unable to locate Android NDK."
    Once I resolve this issue I will run the build again and update you. Also, if you could let me know how can I resolve this NDK issue I will be great full because it will save me some time.
    Thanks
     
  31. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    You can follow these instructions to update the NDK: https://docs.unity3d.com/Manual/android-sdksetup.html

    Unity 2019.3 is still in beta, you can find it here: https://unity3d.com/unity/beta/2019.3
     
  32. Sohaib_techverx

    Sohaib_techverx

    Joined:
    Aug 15, 2019
    Posts:
    16
    Last edited: Oct 29, 2019
  33. Sohaib_techverx

    Sohaib_techverx

    Joined:
    Aug 15, 2019
    Posts:
    16
    @JoshPeterson Thanks for all the help. The build was successful with the new version of Unity. Though I am having a different issue which is not exactly related to the thread here but if you could just direct me in the right direction I will be grateful.
    I have a 2D game with 2 cameras in it. The main camera is working fine but the second camera isn't showing anything because it uses different layers (which I created) and unfortunately all my layers are gone ever since I upgraded the project to the new unity version.

    Thanks again for the help.
     
    Last edited: Oct 30, 2019
  34. Arther12

    Arther12

    Joined:
    Sep 20, 2017
    Posts:
    6
    I finally got it working, after a few days of looking for the file that was causing it I did found it and deleted it, now it runs perfectly fine.
     
  35. zshan

    zshan

    Joined:
    Aug 25, 2018
    Posts:
    4
    @JoshPeterson hi josh i m here to report the debugging process i applied to correct the error i had which i related to another person hoping others might also had or have, so here is the things i did first.

    first i went through all my errors and understood that i had elevation of unity error which when i ran the editor some how my unity editor which is chose(2019.2.10f) was not actually getting the administration rights i went to the editor and added administration rights in the compatibility settings as well no solution for these things.
    Now i chose the editor and pinned to my taskbar and asked to run that editor as admin that somehow worked and that solved the error of native error elevation problem of the editor, however that didn't solve all of my errors apparently and i had new error which i didn't had prior to the elevation error.which was suggested download of ndk from unity wasn't working which i didn't know at that time so i visited multiple il2cpp errors threads and applied all those solutions people suggested which solved their error and thankfully one worked for me which is somehow fumbled upon on trial and error method which was i had to downgrage my ndk and go back to r16 version of the ndk which alhamdulillah worked...
    humble suggestion is armv7 build has many contraints for its successful build please try to correct the error and bugs as developers are made mandatory by the google play to submit armv7 version of build support for the new devices and aab support is forced upon us right fully but i had a lot of problems with those two and other s as you have known by answering the questions in these threads. i would love if basic necessities are fulfilled by unity!!
    all written with love and admiration for the team who have always helped the developers and in fear of not losing those privileges from the unity team
     
  36. kaliAJ

    kaliAJ

    Joined:
    Sep 29, 2018
    Posts:
    18
    @mattattack1000 @JoshPeterson
    hey, did r16b solved this 2 Errors?:

    Error 1:-

    Failed running C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="legacyunity" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\Acer\Desktop\programs\unity\Soccer cuby\Soccer Cuby\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\Acer\Desktop\programs\unity\Soccer cuby\Soccer Cuby\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.1.9f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.1.9f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="C:/Users/Acer/Desktop/programs/unity/Soccer cuby/Soccer Cuby/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="C:/Users/Acer/Desktop/programs/unity/Soccer cuby/Soccer Cuby/Temp/StagingArea/Il2Cpp/il2cppOutput"
    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: C:\Users\Acer\Desktop\programs\unity\Soccer cuby\Soccer Cuby\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: C:\Users\Acer\Desktop\programs\unity\Soccer cuby\Soccer Cuby\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: In file included from C:\Users\Acer\Desktop\programs\unity\Soccer cuby\Soccer Cuby\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp\Lump_libil2cpp_os.cpp:72:
    In file included from C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity\AtomicQueue.cpp:6:
    In file included from C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps.h:121:
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:622:17: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:653:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:690:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:724:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:755:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r0", "r1", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:793:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:833:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:875:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:917:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    9 errors generated.
    Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    Arguments: -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\external\bdwgc\include" -I"." -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\llvm-libc++\include" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\llvm-libc++abi\include" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\android\support\include" -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++98 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fPIC -Os --sysroot "C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot" -gcc-toolchain "C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -isystem "C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot\usr\include\arm-linux-androideabi" -D__ANDROID_API__=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "C:\Users\Acer\Desktop\programs\unity\Soccer cuby\Soccer Cuby\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp\Lump_libil2cpp_os.cpp" -o "C:/Users/Acer/Desktop/programs/unity/Soccer cuby/Soccer Cuby/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/6C9846D3D0CB22EC14F7940C1CBFCEC1.o"
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.Program.Main(String[] args)
    stderr:
    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: In file included from C:\Users\Acer\Desktop\programs\unity\Soccer cuby\Soccer Cuby\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp\Lump_libil2cpp_os.cpp:72:
    In file included from C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity\AtomicQueue.cpp:6:
    In file included from C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps.h:121:
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:622:17: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:653:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:690:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:724:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:755:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r0", "r1", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:793:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:833:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:875:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp\os\Unity/ExtendedAtomicOps-arm.h:917:27: error: asm-specifier for input or output variable conflicts with asm clobber list
    : "cc", "memory", "r2", "r3"
    ^
    9 errors generated.
    Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++"
    Arguments: -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp\external\bdwgc\include" -I"." -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\llvm-libc++\include" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\llvm-libc++abi\include" -I"C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\android\support\include" -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++98 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fPIC -Os --sysroot "C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot" -gcc-toolchain "C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -isystem "C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sysroot\usr\include\arm-linux-androideabi" -D__ANDROID_API__=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "C:\Users\Acer\Desktop\programs\unity\Soccer cuby\Soccer Cuby\Temp\StagingArea\Il2Cpp\il2cppOutput\lumpedcpp\Lump_libil2cpp_os.cpp" -o "C:/Users/Acer/Desktop/programs/unity/Soccer cuby/Soccer Cuby/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/libil2cpp/6C9846D3D0CB22EC14F7940C1CBFCEC1.o"
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args)
    at il2cpp.Program.Run(String[] args)
    at il2cpp.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)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)


    Error 2:-

    Exception: C:\Program Files\Unity\Hub\Editor\2019.1.9f1\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1 setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1 arguments, System.Action`1 setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
    Last edited: Oct 31, 2019
  37. kaliAJ

    kaliAJ

    Joined:
    Sep 29, 2018
    Posts:
    18
    @mattattack1000 @JoshPeterson
    I also have the same unity and hub version as that of you.
    is this the same files you replaced by the files you got from NDK r16b?
    screenshot is attached for your reference.
     

    Attached Files:

  38. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    Yes, getting the correct NDK for your Unity version should solve this. I would recommend installing it manually. Some versions of the Hub installed the wrong version of the NDK.
     
  39. kaliAJ

    kaliAJ

    Joined:
    Sep 29, 2018
    Posts:
    18
    @JoshPeterson @mattattack1000
    Thanks, that really worked. I just downloaded the NDK version r16b and extracted it into the recommended NDK folder.
    Restarted Unity and boom all the errors were gone. also, it is now compliant to 64-bit architecture Google policy
     
  40. flintcheeze

    flintcheeze

    Joined:
    Sep 10, 2015
    Posts:
    37
    How did you go about it
    Help me out here
    I have the same version as yours
     
  41. jamshaidalam

    jamshaidalam

    Joined:
    Aug 1, 2019
    Posts:
    2
    Solved: Exception: Il2cpp.exe Did Not Run Properly! with long error descriptions.

    I was getting same error and i fixed it. As pointed out by @JoshPeterson
    My project path had some non-ASCII character something like "Mission_5_0.1" so I changed it to "Mission501" and same thing for Unity Editor path folder name was like "/Hub/Unity_2019.2.4f1" so i changed it to "/Hub/Unity2019" and it worked :)
     
  42. kaliAJ

    kaliAJ

    Joined:
    Sep 29, 2018
    Posts:
    18
    @flintcheeze

    just download the r16b version of NDK from this website:- https://developer.android.com/ndk/downloads/older_releases.html

    then extract it and copy the content of the extracted folder into the folder in which your current NDK is sitting. OR copy-paste the location of r16b NDK folder into the NDK preference slot inside Unity.
     
  43. flintcheeze

    flintcheeze

    Joined:
    Sep 10, 2015
    Posts:
    37
    Thank you
    I fixed it already
    Thanks a lot
     
    kaliAJ likes this.
  44. flintcheeze

    flintcheeze

    Joined:
    Sep 10, 2015
    Posts:
    37
    Let me drop this one quickly
    For those of you with gradle failed issue in your project and then you created a new project and still the same thing
    Lol lol lol
    Just go to your date settings it should be before October 16 2019
    Just set it to October 17 2019 or the present date and thank me later
    We we we wooooo!!!
    I am on the ride to the millionaire train ‍♂️‍♂️‍♂️‍♂️‍♂️‍♂️
     
  45. FarrukhAmiir

    FarrukhAmiir

    Joined:
    Sep 13, 2017
    Posts:
    2
    Failed running C:\Program Files\Unity\Hub\Editor\2019.1.10f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="F:\Treasure Survival Mystery\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="F:\Treasure Survival Mystery\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.1.10f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.1.10f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/wasiq/Documents/EGDownloads/android-ndk-r16b" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.1.10f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="F:/Treasure Survival Mystery/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="F:/Treasure Survival Mystery/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:

    Building libil2cpp.so with AndroidToolChain

    Output directory: F:\Treasure Survival Mystery\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a

    Cache directory: F:\Treasure Survival Mystery\Library\il2cpp_android_armeabi-v7a\il2cpp_cache

    ObjectFiles: 159 of which compiled: 4

    Time Compile: 34533 milliseconds Assembly-CSharp1.cpp

    Time Compile: 34483 milliseconds Assembly-CSharp.cpp

    Time Compile: 26417 milliseconds Il2CppMetadataUsage.c

    Time Compile: 26362 milliseconds Il2CppMetadataRegistration.c

    Total compilation time: 44143 milliseconds.

    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\wasiq\Documents\EGDownloads\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\wasiq\AppData\Local\Temp\tmp3DDA.tmp" -o "F:\Treasure Survival Mystery\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_AE9DEE610A6E39BA8ED32F3F0BFBD42F\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\wasiq\Documents\EGDownloads\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\wasiq\Documents\EGDownloads\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\wasiq\Documents\EGDownloads\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe



    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26936: error: undefined reference to 'IOSInit'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26964: error: undefined reference to 'IOSLogInWithReadPermissions'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26964: error: undefined reference to 'IOSLogInWithReadPermissions'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26984: error: undefined reference to 'IOSLogInWithPublishPermissions'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26984: error: undefined reference to 'IOSLogInWithPublishPermissions'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27000: error: undefined reference to 'IOSLogOut'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27000: error: undefined reference to 'IOSLogOut'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27012: error: undefined reference to 'IOSSetShareDialogMode'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27012: error: undefined reference to 'IOSSetShareDialogMode'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27040: error: undefined reference to 'IOSShareLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27096: error: undefined reference to 'IOSFeedShare'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27194: error: undefined reference to 'IOSAppRequest'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27264: error: undefined reference to 'IOSAppInvite'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27296: error: undefined reference to 'IOSCreateGameGroup'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27324: error: undefined reference to 'IOSJoinGameGroup'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27324: error: undefined reference to 'IOSJoinGameGroup'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27344: error: undefined reference to 'IOSFBSettingsActivateApp'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27344: error: undefined reference to 'IOSFBSettingsActivateApp'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27398: error: undefined reference to 'IOSFBAppEventsLogEvent'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27478: error: undefined reference to 'IOSFBAppEventsLogPurchase'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27520: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27520: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27532: error: undefined reference to 'IOSGetAppLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27532: error: undefined reference to 'IOSGetAppLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27544: error: undefined reference to 'IOSFBSdkVersion'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27544: error: undefined reference to 'IOSFBSdkVersion'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27565: error: undefined reference to 'IOSFetchDeferredAppLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27565: error: undefined reference to 'IOSFetchDeferredAppLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27577: error: undefined reference to 'IOSRefreshCurrentAccessToken'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27577: error: undefined reference to 'IOSRefreshCurrentAccessToken'

    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)





    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)

    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)

    at il2cpp.Program.DoRun(String[] args)

    at il2cpp.Program.Run(String[] args)

    at il2cpp.Program.Main(String[] args)

    stderr:



    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Users\wasiq\Documents\EGDownloads\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\wasiq\AppData\Local\Temp\tmp3DDA.tmp" -o "F:\Treasure Survival Mystery\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_AE9DEE610A6E39BA8ED32F3F0BFBD42F\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Users\wasiq\Documents\EGDownloads\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Users\wasiq\Documents\EGDownloads\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Users\wasiq\Documents\EGDownloads\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe



    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26936: error: undefined reference to 'IOSInit'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26964: error: undefined reference to 'IOSLogInWithReadPermissions'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26964: error: undefined reference to 'IOSLogInWithReadPermissions'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26984: error: undefined reference to 'IOSLogInWithPublishPermissions'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:26984: error: undefined reference to 'IOSLogInWithPublishPermissions'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27000: error: undefined reference to 'IOSLogOut'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27000: error: undefined reference to 'IOSLogOut'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27012: error: undefined reference to 'IOSSetShareDialogMode'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27012: error: undefined reference to 'IOSSetShareDialogMode'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27040: error: undefined reference to 'IOSShareLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27096: error: undefined reference to 'IOSFeedShare'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27194: error: undefined reference to 'IOSAppRequest'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27264: error: undefined reference to 'IOSAppInvite'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27296: error: undefined reference to 'IOSCreateGameGroup'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27324: error: undefined reference to 'IOSJoinGameGroup'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27324: error: undefined reference to 'IOSJoinGameGroup'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27344: error: undefined reference to 'IOSFBSettingsActivateApp'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27344: error: undefined reference to 'IOSFBSettingsActivateApp'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27398: error: undefined reference to 'IOSFBAppEventsLogEvent'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27478: error: undefined reference to 'IOSFBAppEventsLogPurchase'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27520: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27520: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27532: error: undefined reference to 'IOSGetAppLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27532: error: undefined reference to 'IOSGetAppLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27544: error: undefined reference to 'IOSFBSdkVersion'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27544: error: undefined reference to 'IOSFBSdkVersion'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27565: error: undefined reference to 'IOSFetchDeferredAppLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27565: error: undefined reference to 'IOSFetchDeferredAppLink'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27577: error: undefined reference to 'IOSRefreshCurrentAccessToken'

    F:\Treasure Survival Mystery\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27577: error: undefined reference to 'IOSRefreshCurrentAccessToken'

    clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)





    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)

    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)

    at il2cpp.Program.DoRun(String[] args)

    at il2cpp.Program.Run(String[] args)

    at il2cpp.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)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  46. FarrukhAmiir

    FarrukhAmiir

    Joined:
    Sep 13, 2017
    Posts:
    2
  47. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    5,507
    This failure occurs because the code in the project has extern methods in C#. Methods marked as extern with a the [Dllimport("__Internal")] attribute must be present in a native library that is linked with the Unity player when building with the IL2CPP scripting backend.

    For example, this in this project one function which causes this issue is named: IOSInit

    You have two options:

    1. Build a native library with all of the methods marked as extern with the [Dllimport("__Internal")] attribute for the target platform and architecture of the player. See this documentation for details about native plugins: https://docs.unity3d.com/Manual/NativePlugins.html

    2. Remove the C# code which defines this extern method. You can do that with platform dependent compilation: https://docs.unity3d.com/Manual/PlatformDependentCompilation.html

    I think in this case you can also consider updating the Facebook SDK, which I believe has been corrected to fix this issue.
     
  48. Baraiyashaktivan

    Baraiyashaktivan

    Joined:
    Apr 8, 2017
    Posts:
    4
    old sdk remove and add new sdk with full update it working for me.
     
  49. Ballistic_GMD

    Ballistic_GMD

    Joined:
    Feb 5, 2019
    Posts:
    20
    Hi josh,please help me out with this. Build worked fine a week ago,now it just pops this issue from nowhere .

    Failed running C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\OKPALA MOSES\Documents\ballistic admob\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\OKPALA MOSES\Documents\ballistic admob\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.1.0f2/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.1.0f2/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="C:/Users/OKPALA MOSES/Documents/ballistic admob/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="C:/Users/OKPALA MOSES/Documents/ballistic admob/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:

    Building libil2cpp.so with AndroidToolChain

    Output directory: C:\Users\OKPALA MOSES\Documents\ballistic admob\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a

    Cache directory: C:\Users\OKPALA MOSES\Documents\ballistic admob\Library\il2cpp_android_armeabi-v7a\il2cpp_cache

    ObjectFiles: 195 of which compiled: 2

    Time Compile: 117854 milliseconds Il2CppAttributes.cpp

    Time Compile: 31686 milliseconds Il2CppMetadataUsage.c

    Total compilation time: 144153 milliseconds.

    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\OKPALA MOSES\AppData\Local\Temp\tmpE924.tmp" -o "C:\Users\OKPALA MOSES\Documents\ballistic admob\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_BC10311A30AE3EFF4BAEDBDB4C2D2152\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\platforms\android-16\arch-arm" -gcc-toolchain "C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe





    This application has requested the Runtime to terminate it in an unusual way.

    Please contact the application's support team for more information.

    terminate called after throwing an instance of 'std::bad_alloc'

    what(): std::bad_alloc

    clang++.exe: error: linker command failed with exit code 3 (use -v to see invocation)





    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)

    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)

    at il2cpp.Program.DoRun(String[] args)

    at il2cpp.Program.Run(String[] args)

    at il2cpp.Program.Main(String[] args)

    stderr:



    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\OKPALA MOSES\AppData\Local\Temp\tmpE924.tmp" -o "C:\Users\OKPALA MOSES\Documents\ballistic admob\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_BC10311A30AE3EFF4BAEDBDB4C2D2152\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\platforms\android-16\arch-arm" -gcc-toolchain "C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Program Files\Unity\Hub\Editor\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe





    This application has requested the Runtime to terminate it in an unusual way.

    Please contact the application's support team for more information.

    terminate called after throwing an instance of 'std::bad_alloc'

    what(): std::bad_alloc

    clang++.exe: error: linker command failed with exit code 3 (use -v to see invocation)





    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)

    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)

    at il2cpp.Program.DoRun(String[] args)

    at il2cpp.Program.Run(String[] args)

    at il2cpp.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)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  50. gamer2300

    gamer2300

    Joined:
    Jan 16, 2013
    Posts:
    23
    i have always problem
    Failed running C:\Program Files\Unity\Hub\Editor\2018.4.14f1\Editor\Data\il2cpp/build/il2cpp.exe
     
unityunity