Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Exception: Il2cpp.exe Did Not Run Properly!

Discussion in 'Android' started by Serkode, Apr 10, 2019.

  1. Oberheim

    Oberheim

    Joined:
    Jun 4, 2020
    Posts:
    17
    Hi All !
    I am having the same issue on my mac, unity version 2020.1.8f1 building for android.
    The ndk 19 solution did not did the trick...
    PLEASE HELP :(


    Exception: /Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/build/deploy/net471/il2cpp.exe did not run properly!

    Failed running "/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/build/deploy/net471/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="/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --baselib-directory="/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Variations/il2cpp/Release/StaticLibs/armeabi-v7a" --avoid-dynamic-library-copy --tool-chain-path="/Users/oberheim/Documents/android-ndk-r19" --incremental-g-c-time-slice=3 --profiler-report --map-file-parser="/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/Il2Cpp/il2cppOutput"

    stdout:
    Running il2cpp.exe in workstation GC mode.
    Building libil2cpp.so with AndroidToolChain
    Output directory: /Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a
    Cache directory: /Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Library/il2cpp_android_armeabi-v7a/il2cpp_cache
    il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: ApplicationName='/Users/oberheim/Documents/android-ndk-r19/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++', CommandLine='-DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/Android/Include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -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 -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppInvokerTable.cpp" -o "/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/EA80BEAE9F0190F1D36421E43F8D0D81.o"', CurrentDirectory='', Native error= mono-io-layer-error (2)
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <c8c8707b2adc41b09ae682df75fe1fd0>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <c8c8707b2adc41b09ae682df75fe1fd0>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart (Unity.IL2CPP.Shell+ExecuteContext context, System.Boolean asyncMode) [0x00079] in <bcb8a363e68d49ea986291ba903f296b>:0
    at Unity.IL2CPP.Shell.ExecuteAsync (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller, System.Boolean asyncMode) [0x0000d] in <bcb8a363e68d49ea986291ba903f296b>:0
    at Unity.IL2CPP.Shell.Execute (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller) [0x00000] in <bcb8a363e68d49ea986291ba903f296b>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x0001e] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00006] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00052] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.ParallelFor+<>c__DisplayClass1_0`2[D,T].<RunWithResult>b__0 (System.Object o) [0x00028] in <487645b859ae4548bf20319add7310e1>:0
    --- End of inner exception stack trace ---
    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T] (D[] data, System.Func`2[T,TResult] action) [0x00104] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x0019d] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x001ed] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <487645b859ae4548bf20319add7310e1>:0
    at il2cpp.Compilation.CompilationDriver.Run (Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x001fd] in <3be9f628f5fa469389bd6a91a579ba8a>:0
    at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <3be9f628f5fa469389bd6a91a579ba8a>:0
    at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <3be9f628f5fa469389bd6a91a579ba8a>:0
    at il2cpp.Program.Main (System.String[] args) [0x00000] in <3be9f628f5fa469389bd6a91a579ba8a>:0
    ---> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/oberheim/Documents/android-ndk-r19/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++', CommandLine='-DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/Android/Include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -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 -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppInvokerTable.cpp" -o "/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/EA80BEAE9F0190F1D36421E43F8D0D81.o"', CurrentDirectory='', Native error= mono-io-layer-error (2)
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <c8c8707b2adc41b09ae682df75fe1fd0>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <c8c8707b2adc41b09ae682df75fe1fd0>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart (Unity.IL2CPP.Shell+ExecuteContext context, System.Boolean asyncMode) [0x00079] in <bcb8a363e68d49ea986291ba903f296b>:0
    at Unity.IL2CPP.Shell.ExecuteAsync (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller, System.Boolean asyncMode) [0x0000d] in <bcb8a363e68d49ea986291ba903f296b>:0
    at Unity.IL2CPP.Shell.Execute (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller) [0x00000] in <bcb8a363e68d49ea986291ba903f296b>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x0001e] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00006] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00052] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.ParallelFor+<>c__DisplayClass1_0`2[D,T].<RunWithResult>b__0 (System.Object o) [0x00028] in <487645b859ae4548bf20319add7310e1>:0 <---

    ---> (Inner Exception #1) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/oberheim/Documents/android-ndk-r19/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++', CommandLine='-DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/Android/Include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -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 -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppAttributes.cpp" -o "/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/10D0AF9C252FB5E02DD5F753E5398D31.o"', CurrentDirectory='', Native error= mono-io-layer-error (2)
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <c8c8707b2adc41b09ae682df75fe1fd0>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <c8c8707b2adc41b09ae682df75fe1fd0>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.SetupAndStart (Unity.IL2CPP.Shell+ExecuteContext context, System.Boolean asyncMode) [0x00079] in <bcb8a363e68d49ea986291ba903f296b>:0
    at Unity.IL2CPP.Shell.ExecuteAsync (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller, System.Boolean asyncMode) [0x0000d] in <bcb8a363e68d49ea986291ba903f296b>:0
    at Unity.IL2CPP.Shell.Execute (Unity.IL2CPP.Shell+ExecuteArgs executeArgs, Unity.IL2CPP.Shell+IExecuteController controller) [0x00000] in <bcb8a363e68d49ea986291ba903f296b>:0
    at Unity.IL2CPP.Building.BuildShell.Execute (Unity.IL2CPP.Shell+ExecuteArgs args) [0x0001e] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.CompilationInvocation.Execute () [0x00006] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile (Unity.IL2CPP.Building.IntermediateObjectFileCompilationData data) [0x00052] in <487645b859ae4548bf20319add7310e1>:0
    at Unity.IL2CPP.Building.ParallelFor+<>c__DisplayClass1_0`2[D,T].<RunWithResult>b__0 (System.Object o) [0x00028] in <487645b859ae4548bf20319add7310e1>:0 <---

    ---> (Inner Exception #2) System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/oberheim/Documents/android-ndk-r19/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang', CommandLine='-DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/Android/Include" -I"/Applications/Unity/Hub/Editor/2020.1.8f1/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (original)/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/oberheim/Desktop/GAMING/PROJETS/Chanoirs/Chanoirs_game (<message truncated>
     
  2. sjl2

    sjl2

    Joined:
    Nov 6, 2021
    Posts:
    2
    hi,everyone! I get a similar problem with 2019.4.32f1c1.I can build android il2cpp but can not build PC il2cpp.I tried a lot but it not works.please help me!
    error log:
    Failed running "C:\Program Files\Unity\Hub\Editor\2019.4.32f1c1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe" --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WindowsDesktop" --architecture="x64" --configuration="Release" --outputpath="E:\WorkSpace\TestProject\TestProject\Temp/StagingArea/Data\Native\GameAssembly.dll" --cachedirectory="E:\WorkSpace\TestProject\TestProject\Assets\..\Library/il2cpp_cache" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.4.32f1c1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=E:/WorkSpace/TestProject/TestProject/Temp/StagingArea/Data/Managed --generatedcppdir=E:/WorkSpace/TestProject/TestProject/Temp/StagingArea/Data/il2cppOutput

    stdout:
    il2cpp.exe didn't catch exception: System.InvalidOperationException: C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
    Visual Studio 2015 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
    Visual Studio 2015 installation is found by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir" in the registry
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry

    Visual Studio 2017 (or newer) with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
    Visual Studio 2017 (or newer) installation is found using Microsoft.VisualStudio.Setup.Configuration COM APIs
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry


    �� Unity.IL2CPP.Building.CppProgramBuilder.ThrowIfCannotBuildInCurrentEnvironment()
    �� Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    �� il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    �� il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    �� il2cpp.Program.Main(String[] args)
    stderr:

    δ��������쳣: System.InvalidOperationException: C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
    Visual Studio 2015 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
    Visual Studio 2015 installation is found by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir" in the registry
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry

    Visual Studio 2017 (or newer) with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
    Visual Studio 2017 (or newer) installation is found using Microsoft.VisualStudio.Setup.Configuration COM APIs
    Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry


    �� Unity.IL2CPP.Building.CppProgramBuilder.ThrowIfCannotBuildInCurrentEnvironment()
    �� Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    �� il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    �� il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    �� il2cpp.Program.Main(String[] args)

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <fda25095124a4836a75cbff5797265b5>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <fda25095124a4836a75cbff5797265b5>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <fda25095124a4836a75cbff5797265b5>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <fda25095124a4836a75cbff5797265b5>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <fda25095124a4836a75cbff5797265b5>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <fda25095124a4836a75cbff5797265b5>:0)
    DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <fda25095124a4836a75cbff5797265b5>:0)
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <fda25095124a4836a75cbff5797265b5>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <fda25095124a4836a75cbff5797265b5>:0)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <fda25095124a4836a75cbff5797265b5>: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 <fda25095124a4836a75cbff5797265b5>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    You need to install Visual Studio with the C++ workload. I would recommend using Visual Studio 2019.
     
  4. meharu641

    meharu641

    Joined:
    Nov 5, 2021
    Posts:
    1
    ANY SOLUTIONS?
    Having an issue in BUILD.



    Exception: E:\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 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:336)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection`1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:317)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:160)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    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.BuildReporting.BuildReport report)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
    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.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:272)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  5. sjl2

    sjl2

    Joined:
    Nov 6, 2021
    Posts:
    2
    Thanks a lot.I have fixed it.
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,244
    This item doesn't contain information about the failure, try looking at different rows
     
  7. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    472
    hi - i am getting this error as well:
    Exception: C:\Program Files\Unity\Hub\Editor\2019.4.31f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!

    I am not using ascii characters in my path and have over 20GB of space on my C:\ - do you have any other suggestions?

    This worked fine 3 weeks ago and I have only been playing around with User Interface of my app since then

    Unity 2019.4.31f1
    building for Android VR for google cardboard

    thanks
     
  8. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,244
    Can you attach Editor.log?
     
  9. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    472
    sure - here it is
     

    Attached Files:

  10. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,244
    Thank you, check out the errors with 'undefined reference to', they mention function names which you don't have implementation for, either provide the implementation or don't call those function by #if !UNITY_ANDROID .. #endif
     
  11. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    472
    ok thanks for helping me out. I wasn't sure what to do with that info so I took a guess and installed WebGL plugin under Build Settings but that didn't fix it. I don't know where I should I use #if !UNITY_ANDROID .. #endif - can you help me find which script I will find those functions, since I don't ever remember seeing them before.

    thanks
     
  12. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,244
    I don't have your scripts thus I cannot know which one is calling those functions. But it looks like it's coming from something called WebView
     
  13. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    472
    so I commented out everything in that script since I only need to build for Android and iOS but made no difference. This must be a system file since I have never seen it before. Is there a way to turn off WebView or do i need it for mobile VR? If I can just remove at source then it will save time trying to find the path that is causing it to be called
     
  14. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    472
    it looks like there is a plugin called "Webview" under assets\plugins\webview
    There are references between a number of scripts
    Is that a Unity thing? I looked in the plugins window but it doesn't appear. I am wondering if I can just delete the folder? I have attached some of the scripts involved
    thanks
     

    Attached Files:

  15. kylebjaynes

    kylebjaynes

    Joined:
    Dec 8, 2014
    Posts:
    8
    hi there @JoshPeterson I'm running into this error as I try to build my iOS project. I'm running on Unity 2020.3.24f1 and have also had the same error with Unity 2020.3.12f1. Tried updating my Visual Studio and numerous other solutions listed for others but to no avail. Thank you in advance if you may take a look please; Here's the errors:

    Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.3.24f1\Editor\Data\il2cpp\build/deploy/netcoreapp3.1/UnityLinker.exe @"C:/Users/Kyle/GAME/Temp/StagingArea/Data/Managed/response.rsp"
    stdout:
    Fatal error in Unity CIL Linker
    Mono.Linker.MarkException: Error processing method: 'System.Void ProtoBuf.ProtoContractAttribute::.ctor()' in assembly: 'protobuf-net.dll'
    ---> System.InvalidOperationException: No action for the assembly protobuf-net, Version=2.0.0.668, Culture=neutral, PublicKeyToken=257b51d87d2e4d67 defined
    at Mono.Linker.AnnotationStore.GetAction(AssemblyDefinition assembly)
    at Mono.Linker.Steps.MarkStep.IsFullyPreserved(TypeDefinition type)
    at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
    at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
    at Unity.Linker.Steps.UnityMarkStep.ProcessMethod(MethodDefinition method)
    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    --- End of inner exception stack trace ---
    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
    at Mono.Linker.Steps.MarkStep.Process()
    at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
    at Unity.Linker.Steps.UnityMarkStep.Process(LinkContext context)
    at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
    at Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)
    at Mono.Linker.Pipeline.Process(LinkContext context)
    at Unity.Linker.UnityDriver.UnityRun(ILogger customLogger)
    at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling(ILogger customLogger)
    at Unity.Linker.UnityDriver.RunDriver()
    stderr:
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEditorInternal.Runner.RunNetCoreProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEditor.iOS.PostProcessiPhonePlayer.CrossCompileManagedDlls (UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs, UnityEditor.iOS.PostProcessiPhonePlayer+ProjectPaths paths, UnityEditor.AssemblyReferenceChecker checker, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport buildReport) (at C:/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:908)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs, UnityEditor.iOS.PostProcessiPhonePlayer+ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport buildReport) (at C:/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:718)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.PostProcessorSettings postProcessorSettings, UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:663)
    UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:45)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:49)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <bbfbd5a71eea45d1a1354233c800516b>: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 <bbfbd5a71eea45d1a1354233c800516b>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

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

    Build completed with a result of 'Failed' in 56 seconds (55675 ms)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)


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

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <bbfbd5a71eea45d1a1354233c800516b>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <bbfbd5a71eea45d1a1354233c800516b>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  16. lz7cjc

    lz7cjc

    Joined:
    Sep 10, 2019
    Posts:
    472
    I deleted the folder I referenced above and that seemed to work
     
  17. mike-voorhees

    mike-voorhees

    Unity Technologies

    Joined:
    Aug 9, 2016
    Posts:
    42
    The linker has to build up some data before it starts marking the assemblies. This means that if the marking process sees an assembly that wasn't processed prior to marking then it has to error out with this message.

    This is a fragile situation in the linker and I've hit this error before when making changes. I looked around a bit and nothing is jumping out. All that is to say, there could be a bug.

    Another possible explanation is that the assembly contains invalid IL.

    You can probably work around the issue by adding a link.xml file to your project that contains the following

    <linker>
    <assembly fullname="protobuf-net" preserve="none">
    </assembly>
    </linker>

    That will force the linker to process the assembly being going into the mark step.

    If you could file a bug it would be appreciated. I wouldn't mind checking to make sure there isn't a bug in the linker that is leading to this error. Without looking at the project it's hard to determine if the culprit is a bug or invalid IL in the assembly

    Thanks,
    -Mike
     
  18. kylebjaynes

    kylebjaynes

    Joined:
    Dec 8, 2014
    Posts:
    8
    Thank you Mike, for the reply. I tried the workaround of adding a link.xml file, containing what you suggested to the Library folder, and got the same errors. I did notice that in searching my project, there were already 3 other link.xml files. Not sure if that's problematic or normal but thought it would be worth mentioning. I even tried adding the code you suggested to those to see if it would help and still the same errors. In case it helps, those link.xml files are located in:

    Assets\Photon\PhotonUnityNetworking

    Assets\Photon\PhotonBolt

    Library\PackageCache\com.unity.nuget.newtonsoft-json@2.0.0

    The bug report has been filed, case 1385751

    Thank you again Mike for taking the time. I'll proceed how you think best.

    -Kyle
     
  19. nir_unity1

    nir_unity1

    Joined:
    Nov 26, 2020
    Posts:
    18
    Yet again, this time in Unity 2020.1.11f1 for WebGL build
    Can anyone help please?

    Exception: D:\Unity\Hub\Editor\2020.1.11f1\Editor\Data\il2cpp/build/deploy/netcoreapp3.0/il2cpp.exe did not run properly!

    Failed running "D:\Unity\Hub\Editor\2020.1.11f1\Editor\Data\il2cpp/build/deploy/netcoreapp3.0/il2cpp.exe" --convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="D:\Projects\UnityProjects\CyberSecurityTraining\WEBGL cyber security training - Hebrew (multilanguage prepared)\Assets /../Temp/StagingArea/Data\Native\build.bc" --cachedirectory="D:\Projects\UnityProjects\CyberSecurityTraining\WEBGL cyber security training - Hebrew (multilanguage prepared)\Assets\..\Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --baselib-directory="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\Variations\nondevelopment" --avoid-dynamic-library-copy --emit-method-map --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AndroidJNIModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DSPGraphModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GridModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputLegacyModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SharedInternalsModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubsystemsModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsNativeModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_XRModule_Dynamic.bc" --profiler-report --map-file-parser=D:/Unity/Hub/Editor/2020.1.11f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe --directory="D:/Projects/UnityProjects/CyberSecurityTraining/WEBGL cyber security training - Hebrew (multilanguage prepared)/Temp/StagingArea/Data/Managed" --generatedcppdir="D:/Projects/UnityProjects/CyberSecurityTraining/WEBGL cyber security training - Hebrew (multilanguage prepared)/Temp/StagingArea/Data/il2cppOutput"

    stdout:
    Running il2cpp.exe in server GC mode.
    Building build.bc with EmscriptenToolChain
    Output directory: D:\Projects\UnityProjects\CyberSecurityTraining\WEBGL cyber security training - Hebrew (multilanguage prepared)\Temp\StagingArea\Data\Native
    Cache directory: D:\Projects\UnityProjects\CyberSecurityTraining\WEBGL cyber security training - Hebrew (multilanguage prepared)\Library\il2cpp_cache
    ObjectFiles: 220 of which compiled: 0
    Total compilation time: 1913 milliseconds.
    Response file: C:\Users\User\AppData\Local\Temp\_1821754628\response.rsp
    il2cpp.exe didn't catch exception: System.IO.IOException: Access to the path '\\?\D:\Projects\UnityProjects\CyberSecurityTraining\WEBGL cyber security training - Hebrew (multilanguage prepared)\Library\il2cpp_cache\linkresult_0E288F4EB80DA83C1D43D68C22AE6F77' is denied.
    at System.IO.FileSystem.RemoveDirectoryInternal(String fullPath, Boolean topLevel, Boolean allowDirectoryNotEmpty)
    at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
    at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
    at NiceIO.NPath.Delete(DeleteMode deleteMode)
    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions)
    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    stderr:
    Unhandled exception. System.IO.IOException: Access to the path '\\?\D:\Projects\UnityProjects\CyberSecurityTraining\WEBGL cyber security training - Hebrew (multilanguage prepared)\Library\il2cpp_cache\linkresult_0E288F4EB80DA83C1D43D68C22AE6F77' is denied.
    at System.IO.FileSystem.RemoveDirectoryInternal(String fullPath, Boolean topLevel, Boolean allowDirectoryNotEmpty)
    at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel)
    at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
    at NiceIO.NPath.Delete(DeleteMode deleteMode)
    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions)
    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditorInternal.Runner.RunNetCoreProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:373)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:911)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <282860f440ac4f48a82a3a8aaaec3082>: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 <282860f440ac4f48a82a3a8aaaec3082>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  20. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    It looks like something is wrong with the path `\\?\D:\Projects\UnityProjects\CyberSecurityTraining\WEBGL cyber security training - Hebrew (multilanguage prepared)\Library\il2cpp_cache\linkresult_0E288F4EB80DA83C1D43D68C22AE6F77'

    I'm not sure what the leading `\\?\` part means, or where that came from. Maybe there is some virus scanner utility that is locking those that directory though?
     
  21. perfectplay_studio

    perfectplay_studio

    Joined:
    Jul 15, 2016
    Posts:
    4
    We can build project with BuildOptions.EnableDeepProfilingSupport in 2020.3.20.f1 Unity, but can't build it in 2021.2.8.f1 Unity, because its fail with error: (build without profiling is successful)

    Building Library\Bee\artifacts\Android\d8kzr\libil2cpp.so failed with output:
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `il2cpp::icalls::mscorlib::System::Reflection::AssemblyName::get_public_token(unsigned char*, unsigned char*, int)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\il2cpp\libil2cpp\icalls\mscorlib\System.Reflection/AssemblyName.cpp:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName16get_public_tokenEPhS5_i+0x5c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `__stack_chk_fail@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `std::__ndk1::char_traits<char>::length(char const*)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\..\sysroot\usr\include\c++\v1/__string:217:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x3c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `strlen@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `std::__ndk1::__libcpp_allocate(unsigned long, unsigned long)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\..\sysroot\usr\include\c++\v1/new:253:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x78): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator new(unsigned long)' defined in .text._Znwm section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android\libc++_static.a(new.o)
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `std::__ndk1::char_traits<char>::copy(char*, char const*, unsigned long)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\..\sysroot\usr\include\c++\v1/__string:225:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x98): relocation truncated to fit: R_AARCH64_CALL26 against symbol `memcpy@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `std::__ndk1::char_traits<char>::find(char const*, unsigned long, char const&)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\..\sysroot\usr\include\c++\v1/__string:271:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x114): relocation truncated to fit: R_AARCH64_CALL26 against symbol `memchr@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `std::__ndk1::char_traits<char>::compare(char const*, char const*, unsigned long)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\..\sysroot\usr\include\c++\v1/__string:249:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x128): relocation truncated to fit: R_AARCH64_CALL26 against symbol `memcmp@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `std::__ndk1::char_traits<char>::find(char const*, unsigned long, char const&)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\..\sysroot\usr\include\c++\v1/__string:271:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x1b4): relocation truncated to fit: R_AARCH64_CALL26 against symbol `memchr@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `std::__ndk1::char_traits<char>::compare(char const*, char const*, unsigned long)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\..\sysroot\usr\include\c++\v1/__string:249:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x1c8): relocation truncated to fit: R_AARCH64_CALL26 against symbol `memcmp@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `std::__ndk1::_DeallocateCaller::__do_call(void*)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\..\sysroot\usr\include\c++\v1/new:334:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x2c8): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator delete(void*)' defined in .text._ZdlPv section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android\libc++_static.a(new.o)
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `il2cpp::icalls::mscorlib::System::Reflection::AssemblyName::parseAssemblyName(long, Il2CppMonoAssemblyName*, bool*, bool*)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\il2cpp\libil2cpp\icalls\mscorlib\System.Reflection/AssemblyName.cpp:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x304): relocation truncated to fit: R_AARCH64_CALL26 against symbol `__stack_chk_fail@@LIBC' defined in .text section in C:/Program Files/Unity/Hub/Editor/2021.2.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android/21/libc.so
    Library/Bee/artifacts/Android/87lik/0ing_stem1.lump.o: In function `std::__ndk1::_DeallocateCaller::__do_call(void*)':
    C:/Program Files\Unity\Hub\Editor\2021.2.8f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\..\sysroot\usr\include\c++\v1/new:334:(.text._ZN6il2cpp6icalls8mscorlib6System10Reflection12AssemblyName17ParseAssemblyNameElP22Il2CppMonoAssemblyNamePbS7_+0x32c): additional relocation overflows omitted from the output
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
     
  22. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    This error means that the executable code is large enough to trigger a bug in the Android NDK linker that happens when the code grows to be big. When deep profiling is enabled, IL2CPP emits some extra code to communicate with the profiler, which is probably what is pushing this project over the edge.

    Is there anything you can do to try to remove unused code from this project? That might help.
     
  23. iliasM

    iliasM

    Joined:
    Dec 15, 2017
    Posts:
    15
    Hi all!
    I have a similar issue. I am trying one week to fix this issue.
    Some important info:
    Unity 2019.4.15
    The project located on D:
    I use the gradle 5.6.4 because I use ARCORE
    The build is succed when I build it with Mono option instead of IL2CPP
    The project is too big!

    What I have tried so far:

    Install Unity 2019.415 in drive D: ( I have it also in C: drive.)
    Install and upgrade the project in unity 2019.4.35 (Drive D)
    Install individually the NDK 19.
    run IL2CPP.exe as administrator ( I turn it back as non administrator)
    Erase any character like(-,_,/)
    @JoshPeterson can you please help me?


    Exception: C:\Program Files\Unity\2019.4.15f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!

    Failed running "C:\Program Files\Unity\2019.4.15f1\Editor\Data\il2cpp/build/deploy/net471/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="D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/2019.4.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/2019.4.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/2019.4.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/2019.4.15f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=D:/Unity/ecotimemachinemaster/ecotimemachinemaster/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=D:/Unity/ecotimemachinemaster/ecotimemachinemaster/Temp/StagingArea/Il2Cpp/il2cppOutput

    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 422 of which compiled: 0
    Total compilation time: 291 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\2019.4.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\iliasmourtos\AppData\Local\Temp\tmp156B.tmp" -o "D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_6E76351D1E42BBB1D61C758D3ED27695\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe

    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41079: error: undefined reference to 'StartWorldTrackingSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41273: error: undefined reference to 'SetCameraNearFar'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37239: error: undefined reference to 'IsARKitWorldTrackingSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37239: error: undefined reference to 'IsARKitWorldTrackingSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41098: error: undefined reference to 'StartWorldTrackingSessionWithOptions'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41187: error: undefined reference to 'PauseSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41283: error: undefined reference to 'CapturePixelData'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41229: error: undefined reference to 'GetVideoTextureHandles'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41293: error: undefined reference to 'SessionAddUserAnchor'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41308: error: undefined reference to 'SessionRemoveUserAnchor'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:36334: error: undefined reference to 'GetBlendShapesInfo'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:36334: error: undefined reference to 'GetBlendShapesInfo'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37007: error: undefined reference to 'IsARKitFaceTrackingConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37007: error: undefined reference to 'IsARKitFaceTrackingConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37118: error: undefined reference to 'IsARKitSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37118: error: undefined reference to 'IsARKitSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37239: error: undefined reference to 'IsARKitWorldTrackingSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41197: error: undefined reference to 'HitTest'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41210: error: undefined reference to 'GetLastHitTestResult'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41117: error: undefined reference to 'StartSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:40966: error: undefined reference to 'unity_CreateNativeARSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:40997: error: undefined reference to 'session_SetSessionCallbacks'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41019: error: undefined reference to 'session_SetPlaneAnchorCallbacks'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41041: error: undefined reference to 'session_SetUserAnchorCallbacks'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41063: error: undefined reference to 'session_SetFaceAnchorCallbacks'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41079: error: undefined reference to 'StartWorldTrackingSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41098: error: undefined reference to 'StartWorldTrackingSessionWithOptions'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41117: error: undefined reference to 'StartSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41136: error: undefined reference to 'StartSessionWithOptions'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41155: error: undefined reference to 'StartFaceTrackingSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41174: error: undefined reference to 'StartFaceTrackingSessionWithOptions'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41187: error: undefined reference to 'PauseSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41197: error: undefined reference to 'HitTest'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41210: error: undefined reference to 'GetLastHitTestResult'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41229: error: undefined reference to 'GetVideoTextureHandles'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41240: error: undefined reference to 'GetAmbientIntensity'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41251: error: undefined reference to 'GetTrackingQuality'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41262: error: undefined reference to 'GetARPointCloud'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41273: error: undefined reference to 'SetCameraNearFar'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41283: error: undefined reference to 'CapturePixelData'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41293: error: undefined reference to 'SessionAddUserAnchor'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41308: error: undefined reference to 'SessionRemoveUserAnchor'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:40966: error: undefined reference to 'unity_CreateNativeARSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41262: error: undefined reference to 'GetARPointCloud'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41136: error: undefined reference to 'StartSessionWithOptions'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41174: error: undefined reference to 'StartFaceTrackingSessionWithOptions'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41155: error: undefined reference to 'StartFaceTrackingSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41240: error: undefined reference to 'GetAmbientIntensity'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41251: error: undefined reference to 'GetTrackingQuality'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37007: error: undefined reference to 'IsARKitFaceTrackingConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37118: error: undefined reference to 'IsARKitSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37239: error: undefined reference to 'IsARKitWorldTrackingSessionConfigurationSupported'
    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, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    stderr:

    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\2019.4.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\iliasmourtos\AppData\Local\Temp\tmp156B.tmp" -o "D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_6E76351D1E42BBB1D61C758D3ED27695\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold.exe

    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41079: error: undefined reference to 'StartWorldTrackingSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41273: error: undefined reference to 'SetCameraNearFar'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37239: error: undefined reference to 'IsARKitWorldTrackingSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37239: error: undefined reference to 'IsARKitWorldTrackingSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41098: error: undefined reference to 'StartWorldTrackingSessionWithOptions'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41187: error: undefined reference to 'PauseSession'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41283: error: undefined reference to 'CapturePixelData'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41229: error: undefined reference to 'GetVideoTextureHandles'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41293: error: undefined reference to 'SessionAddUserAnchor'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41308: error: undefined reference to 'SessionRemoveUserAnchor'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:36334: error: undefined reference to 'GetBlendShapesInfo'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:36334: error: undefined reference to 'GetBlendShapesInfo'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37007: error: undefined reference to 'IsARKitFaceTrackingConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37007: error: undefined reference to 'IsARKitFaceTrackingConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37118: error: undefined reference to 'IsARKitSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37118: error: undefined reference to 'IsARKitSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:37239: error: undefined reference to 'IsARKitWorldTrackingSessionConfigurationSupported'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41197: error: undefined reference to 'HitTest'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41210: error: undefined reference to 'GetLastHitTestResult'
    D:\Unity\ecotimemachinemaster\ecotimemachinemaster\Temp\StagingArea\Il2Cpp\il2cppOutput/Assembly-CSharp17.cpp:41117: error: undefined reference to 'StartSession'
    D:\U<message truncated>
     
  24. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    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: StartWorldTrackingSession

    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
     
  25. iliasM

    iliasM

    Joined:
    Dec 15, 2017
    Posts:
    15

    Thank you for you quick response!
    I will try to do it. But I want to mention that except this error, the first time that I try to build (first time after opening the Unity project) I get these errors too. If I try again to build the project these errors go.

    ERROR 1:
    'Preferences > External Tools > Android > JDK installed with Unity' is checked, but JAVA_HOME is unset or empty. Try unchecking this setting and configuring a valid JDK path under 'Preferences > External Tools > Android > JDK'.
    UnityEngine.Debug:LogError(Object)
    GoogleARCoreInternal.AndroidDependenciesHelper:GetJdkPath() (at D:/Unity/eco-time-machine-master/eco-time-machine-master/Assets/GoogleARCore/SDK/Scripts/Editor/AndroidDependenciesHelper.cs:56)
    GoogleARCoreInternal.ManifestModificationPreprocessBuild:preprocessAndroidBuild() (at D:/Unity/eco-time-machine-master/eco-time-machine-master/Assets/GoogleARCore/SDK/Scripts/Editor/ManifestModificationPreprocessBuild.cs:195)
    GoogleARCoreInternal.ManifestModificationPreprocessBuild:OnPreprocessBuild(BuildTarget, String) (at D:/Unity/eco-time-machine-master/eco-time-machine-master/Assets/GoogleARCore/SDK/Scripts/Editor/ManifestModificationPreprocessBuild.cs:72)
    GoogleARCoreInternal.PreprocessBuildBase:OnPreprocessBuild(BuildReport) (at D:/Unity/eco-time-machine-master/eco-time-machine-master/Assets/GoogleARCore/SDK/Scripts/Editor/PreprocessBuildBase.cs:52)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
    ERROR 2:
    ArgumentNullException: Value cannot be null.
    Parameter name: path1
    System.IO.Path.Combine (System.String path1, System.String path2) (at <9577ac7a62ef43179789031239ba8798>:0)
    GoogleARCoreInternal.ManifestModificationPreprocessBuild.PreprocessAndroidBuild () (at D:/Unity/eco-time-machine-master/eco-time-machine-master/Assets/GoogleARCore/SDK/Scripts/Editor/ManifestModificationPreprocessBuild.cs:195)
    GoogleARCoreInternal.ManifestModificationPreprocessBuild.OnPreprocessBuild (UnityEditor.BuildTarget target, System.String path) (at D:/Unity/eco-time-machine-master/eco-time-machine-master/Assets/GoogleARCore/SDK/Scripts/Editor/ManifestModificationPreprocessBuild.cs:72)
    GoogleARCoreInternal.PreprocessBuildBase.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at D:/Unity/eco-time-machine-master/eco-time-machine-master/Assets/GoogleARCore/SDK/Scripts/Editor/PreprocessBuildBase.cs:52)
    UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass15_0.<OnBuildPreProcess>b__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at <a8e33794c0064f2aa201ade069162226>:0)
    UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at <a8e33794c0064f2aa201ade069162226>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  26. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
  27. iliasM

    iliasM

    Joined:
    Dec 15, 2017
    Posts:
    15
    Hello again @JoshPeterson. I Managed to find where those functions are and I think that they are already marked as extern with a the [Dllimport("__Internal")] .
    I use UnityARKitPlugin and I found that the script "UnityARSessionNativeInterface" includes many of these function (script below).
    Is anything that I don't understand or maybe the problem is somewhere else?
     

    Attached Files:

  28. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    Right, so because they are marked with that [Dllimport("__Internal")] attribute, that means they must have a corresponding representation in native code. That native code library which implements them is missing. That is what causes the error message.
     
  29. iliasM

    iliasM

    Joined:
    Dec 15, 2017
    Posts:
    15
    I ll follow your advice and I will try to solve it, but I want to mention that I didn't have any problem at all before switching to IL2CPP from Mono.
     
  30. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    This makes sense. Mono will not require that the native library exists until these methods are actually called at run time. IL2CPP requires that they exist at build time, so that is a difference in behavior.
     
  31. iliasM

    iliasM

    Joined:
    Dec 15, 2017
    Posts:
    15
    Ok I found it. Unity ARKit creates the bug because doesn't support IL2CPP. Is there any official solution for that from your site?
    I tried to delete ARkit and some other scripts and folders of UnityARInterface which were related. After that ARController creates blackscreen error on the smartphone.
     
  32. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,244
    Regarding ARKit questions, try asking here - https://forum.unity.com/forums/ar.161/

    I think a lot of people are you using ARKit for their Android apps, I would be surprised if it would be unsupported.
     
  33. iliasM

    iliasM

    Joined:
    Dec 15, 2017
    Posts:
    15
    Hi @Tomas1856 I couldn't find nothing else related to this issue.
    I have to use Mapbox SDK, But Mapbox can't support ARFoundation which resolves these kind of issues. So I want to know if there is any version of ARkit which has resolved these issues.
     
  34. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,244
    Try asking in https://forum.unity.com/forums/ar.161/
     
  35. Faheem9

    Faheem9

    Joined:
    Jul 5, 2021
    Posts:
    3
    I faced a similar issue while trying to Integrate Sentry.

    Error 1 :
    Code (CSharp):
    1. Failed running /Applications/Unity/Hub/Editor/2019.2.21f1/Unity.app/Contents/il2cpp/build/UnityLinker.exe -out="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Temp/StagingArea/Data/Managed/tempStrip" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Core.xml" -x="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x="/var/folders/tc/77_0ynl92dj_p2wdnky705yc0000gp/T/tmp3d61f69d.tmp" -x="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Temp/StagingArea/Data/Managed/TypesInScenes.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/AI.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/AR.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Accessibility.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/AndroidJNI.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Animation.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/AssetBundle.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Audio.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Cloth.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Core.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/CrashReporting.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/DSPGraph.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Director.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/FileSystemHttp.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/GameCenter.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Grid.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/HotReload.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/IMGUI.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/ImageConversion.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Input.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/InputLegacy.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/JSONSerialize.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Localization.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/ParticleSystem.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/PerformanceReporting.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Physics.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Physics2D.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Profiler.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/ScreenCapture.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/SharedInternals.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/SpriteMask.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/SpriteShape.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Streaming.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Substance.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/TLS.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Terrain.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/TerrainPhysics.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/TextCore.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/TextRendering.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Tilemap.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UI.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UIElements.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UNET.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Umbra.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UnityAnalytics.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UnityConnect.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UnityTestProtocol.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UnityWebRequest.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UnityWebRequestAssetBundle.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UnityWebRequestAudio.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UnityWebRequestTexture.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/UnityWebRequestWWW.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/VFX.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/VR.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Vehicles.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Video.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/Wind.xml" -x="/Applications/Unity/Hub/Editor/2019.2.21f1/PlaybackEngines/AndroidPlayer/Whitelists/XR.xml" -x="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Assets/Plugins/Sentry/link.xml" -d="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Temp/StagingArea/Data/Managed" --include-unity-root-assembly="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" --include-unity-root-assembly="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" --include-unity-root-assembly="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Temp/StagingArea/Data/Managed/Sentry.Unity.dll" --dotnetruntime=mono --dotnetprofile=unityaot --use-editor-options --include-directory="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Temp/StagingArea/Data/Managed" --rule-set=Conservative --editor-data-file="/Users/faheemkhan/POC-projects/Sentry/Sentry Integration/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json" --disable-engine-module-support
    2.  
    Error 2:

    Code (CSharp):
    1. Exception: /Applications/Unity/Hub/Editor/2019.2.21f1/Unity.app/Contents/il2cpp/build/UnityLinker.exe did not run properly!
    2. UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    3. UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71)
    4. UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:222)
    5. UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Collections.Generic.IEnumerable`1[T] additionalBlacklist, UnityEditor.BuildTargetGroup buildTargetGroup, UnityEditor.ManagedStrippingLevel managedStrippingLevel, System.Boolean stripEngineCode, System.String editorToLinkerDataPath) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:158)
    6. UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.Collections.IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:358)
    7. UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:246)
    8. UnityEditorInternal.AssemblyStripper.StripForMonoBackend (UnityEditor.BuildTarget buildTarget, UnityEditor.RuntimeClassRegistry usedClasses, UnityEditor.ManagedStrippingLevel managedStrippingLevel, UnityEditor.Build.Reporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:640)
    9. UnityEditor.Android.PostProcessor.Tasks.RunAssemblyStripperForMono.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <502f1b7df2d7430696af84c6f02852ed>:0)
    10. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <502f1b7df2d7430696af84c6f02852ed>:0)
    11. 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 <502f1b7df2d7430696af84c6f02852ed>:0)
    12. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <502f1b7df2d7430696af84c6f02852ed>:0)
    13. 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 /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
    14. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    15.  
    These issues come up when I try to build an APK. However, when I change this setting 'Managed Stripping Level' to Disabled, it builds successfully.
    Is there a way to circumvent this issue without having to change my settings? Cause without that setting my build size is much higher.
    Unity version : 2019.2.21f1

    I have tried all the NDK related solutions out here and also followed the required naming conventions for the path. Any help would be much appreciated.
    Thanks already.
     

    Attached Files:

  36. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,244
    2019.2 is unsupported version, please update to latest LTS, for ex. 2020 LTS (Since 2019 LTS will soon be unsupported)
     
  37. gtlogy

    gtlogy

    Joined:
    May 24, 2022
    Posts:
    6
    Please help me. I got this error when switched from mono to IL2CCP.

    Exception: C:\Program Files\Unity\Hub\Editor\2017.4.21f1\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:336)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection`1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:317)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:160)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    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.BuildReporting.BuildReport report)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
    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.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:272)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  38. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    Can to provide any additional error messages you see? This is a general one which does not provide any specific information about the cause of the issue.

    Additionally, Unity 2017.4 is no longer a supported version of Unity, so you may want to try this project with a newer version of Unity.
     
  39. gtlogy

    gtlogy

    Joined:
    May 24, 2022
    Posts:
    6
    Hi Josh, thank for your help. I have upgraded from Unity 2017.4.21f1 to 2019.2.9f1. Below are the errors:

    Failed running C:\Program Files\Unity\Hub\Editor\2019.2.9f1\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="D:\GT\Happy Juice\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\GT\Happy Juice\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.9f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.2.9f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.2.9f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.2.9f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="D:/GT/Happy Juice/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="D:/GT/Happy Juice/Temp/StagingArea/Il2Cpp/il2cppOutput"
    stdout:
    Building libil2cpp.so with AndroidToolChain
    Output directory: D:\GT\Happy Juice\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: D:\GT\Happy Juice\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 192 of which compiled: 110
    Time Compile: 8948 milliseconds Il2CppAttributes.cpp
    Time Compile: 8688 milliseconds Generics17.cpp
    Time Compile: 8662 milliseconds Il2CppInvokerTable.cpp
    Time Compile: 7846 milliseconds Generics18.cpp
    Time Compile: 7764 milliseconds mscorlib15.cpp
    Time Compile: 7668 milliseconds Assembly-CSharp-firstpass4.cpp
    Time Compile: 7491 milliseconds mscorlib11.cpp
    Time Compile: 7479 milliseconds Assembly-CSharp7.cpp
    Time Compile: 7301 milliseconds Generics19.cpp
    Time Compile: 7246 milliseconds Generics15.cpp
    Total compilation time: 57802 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Unity\Hub\Editor\2019.2.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\GT\AppData\Local\Temp\tmpCDE.tmp" -o "D:\GT\Happy Juice\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_5494C6A47BF85C35B916685C4991215E\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.2.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\platforms\android-16\arch-arm" -gcc-toolchain "C:\Program Files\Unity\Hub\Editor\2019.2.9f1\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.2.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -latomic -llog -rdynamic -fuse-ld=gold.exe
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27075: error: undefined reference to 'IOSInit'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27101: error: undefined reference to 'IOSLogInWithReadPermissions'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27101: error: undefined reference to 'IOSLogInWithReadPermissions'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27119: error: undefined reference to 'IOSLogInWithPublishPermissions'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27119: error: undefined reference to 'IOSLogInWithPublishPermissions'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27133: error: undefined reference to 'IOSLogOut'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27133: error: undefined reference to 'IOSLogOut'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27143: error: undefined reference to 'IOSSetShareDialogMode'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27143: error: undefined reference to 'IOSSetShareDialogMode'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27169: error: undefined reference to 'IOSShareLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27223: error: undefined reference to 'IOSFeedShare'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27319: error: undefined reference to 'IOSAppRequest'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27387: error: undefined reference to 'IOSAppInvite'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27417: error: undefined reference to 'IOSCreateGameGroup'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27443: error: undefined reference to 'IOSJoinGameGroup'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27443: error: undefined reference to 'IOSJoinGameGroup'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27461: error: undefined reference to 'IOSFBSettingsActivateApp'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27461: error: undefined reference to 'IOSFBSettingsActivateApp'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27513: error: undefined reference to 'IOSFBAppEventsLogEvent'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27591: error: undefined reference to 'IOSFBAppEventsLogPurchase'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27631: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27631: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27641: error: undefined reference to 'IOSGetAppLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27641: error: undefined reference to 'IOSGetAppLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27651: error: undefined reference to 'IOSFBSdkVersion'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27651: error: undefined reference to 'IOSFBSdkVersion'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27670: error: undefined reference to 'IOSFetchDeferredAppLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27670: error: undefined reference to 'IOSFetchDeferredAppLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27680: error: undefined reference to 'IOSRefreshCurrentAccessToken'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27680: 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:\Program Files\Unity\Hub\Editor\2019.2.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\GT\AppData\Local\Temp\tmpCDE.tmp" -o "D:\GT\Happy Juice\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_5494C6A47BF85C35B916685C4991215E\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.2.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\platforms\android-16\arch-arm" -gcc-toolchain "C:\Program Files\Unity\Hub\Editor\2019.2.9f1\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.2.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -latomic -llog -rdynamic -fuse-ld=gold.exe
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27075: error: undefined reference to 'IOSInit'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27101: error: undefined reference to 'IOSLogInWithReadPermissions'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27101: error: undefined reference to 'IOSLogInWithReadPermissions'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27119: error: undefined reference to 'IOSLogInWithPublishPermissions'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27119: error: undefined reference to 'IOSLogInWithPublishPermissions'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27133: error: undefined reference to 'IOSLogOut'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27133: error: undefined reference to 'IOSLogOut'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27143: error: undefined reference to 'IOSSetShareDialogMode'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27143: error: undefined reference to 'IOSSetShareDialogMode'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27169: error: undefined reference to 'IOSShareLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27223: error: undefined reference to 'IOSFeedShare'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27319: error: undefined reference to 'IOSAppRequest'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27387: error: undefined reference to 'IOSAppInvite'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27417: error: undefined reference to 'IOSCreateGameGroup'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27443: error: undefined reference to 'IOSJoinGameGroup'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27443: error: undefined reference to 'IOSJoinGameGroup'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27461: error: undefined reference to 'IOSFBSettingsActivateApp'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27461: error: undefined reference to 'IOSFBSettingsActivateApp'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27513: error: undefined reference to 'IOSFBAppEventsLogEvent'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27591: error: undefined reference to 'IOSFBAppEventsLogPurchase'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27631: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27631: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27641: error: undefined reference to 'IOSGetAppLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27641: error: undefined reference to 'IOSGetAppLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27651: error: undefined reference to 'IOSFBSdkVersion'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27651: error: undefined reference to 'IOSFBSdkVersion'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27670: error: undefined reference to 'IOSFetchDeferredAppLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27670: error: undefined reference to 'IOSFetchDeferredAppLink'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27680: error: undefined reference to 'IOSRefreshCurrentAccessToken'
    D:\GT\Happy Juice\Temp\StagingArea\Il2Cpp\il2cppOutput/Facebook.Unity.cpp:27680: 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: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)


    Exception: C:\Program Files\Unity\Hub\Editor\2019.2.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:128)
    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:71)
    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:503)
    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:484)
    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 <24d9b022aa584914af833273ea899103>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <24d9b022aa584914af833273ea899103>: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 <24d9b022aa584914af833273ea899103>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <24d9b022aa584914af833273ea899103>: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) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

    Build completed with a result of 'Failed'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
  40. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    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
     
  41. gtlogy

    gtlogy

    Joined:
    May 24, 2022
    Posts:
    6
    Thanks for your reply. It's actually more complex than I thought, as a unity newbie. Do you mean for option 2, I have to remove [Dllimport("__Internal")] attribute from all the code?
     
  42. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    That is one option, yes. But I don't think that is quite what you want in this case. It looks like this is coming from a Facebook.Unity.dll managed plugin, which is probably built for iOS, but the Unity project build happening in your case is for Android.

    I'm not familiar with that specific plugin, but it seems like something there is configured incorrectly.
     
  43. alexlinares

    alexlinares

    Joined:
    Mar 3, 2014
    Posts:
    1
    any help with this?
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
    Failed running "C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe" --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --platform="Switch" --architecture="ARM64" --configuration="Release" --outputpath="D:\PiEXE\Killing-Project\Temp\StagingArea\Native\SwitchPlayer.nss" --cachedirectory="D:/PiEXE/Killing-Project/Assets/../SwitchIL2CPPCache/il2cpp_cache" --linker-flags="-lD:\PiEXE\Killing-Project\Temp\StagingArea\NativePlugins\NintendoSDKPlugin.a" --plugin="C:/Program Files/Unity/Hub/Editor/2019.4.19f1/Editor/Data/PlaybackEngines/Switch/Tools\Il2CppPlugin.dll" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools/il2cpp\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools/il2cpp\libil2cpp/include" --verbose --enable-stats --stats-output-dir="D:/PiEXE/Killing-Project/Assets/../SwitchIL2CPPStats" --libil2cpp-static --additional-defines="DEBUGMODE=0,UNITY_RELEASE=1,IL2CPP_USE_SOCKET_MULTIPLEX_IO=1" --additional-cpp="D:\PiEXE\Killing-Project\Temp\StagingArea\SourcePlugins\UnityAdsLoadListener.h" --additional-cpp="D:\PiEXE\Killing-Project\Temp\StagingArea\SourcePlugins\UnityAdsShowListener.h" --additional-cpp="D:\PiEXE\Killing-Project\Temp\StagingArea\SourcePlugins\UnityAdsInitializationListener.h" --configuration="ReleasePlus" --incremental-g-c-time-slice=3 --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.4.19f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=D:/PiEXE/Killing-Project/Temp/StagingArea/Managed --generatedcppdir=D:/PiEXE/Killing-Project/Temp/StagingArea/il2cppOutput
    stdout:
    Building SwitchPlayer.nss with SwitchToolChain
    Output directory: D:\PiEXE\Killing-Project\Temp\StagingArea\Native
    Cache directory: D:\PiEXE\Killing-Project\SwitchIL2CPPCache\il2cpp_cache
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: clang: warning: argument unused during compilation: '-stdlib=libc++' [-Wunused-command-line-argument]
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(10,61): error: unknown type name 'socklen_t'; did you mean 'locale_t'?
    int accept(int socketDescriptor, sockaddr* pOutAddress, socklen_t* pOutAddressLength);
    ^~~~~~~~~
    locale_t
    D:\Nintendo\piexe-v14\NintendoSDK\Compilers\NX\nx\aarch64/include/aarch64-nintendo-nx-elf\bits/alltypes.h(396,34): note: 'locale_t' declared here
    typedef struct __locale_struct * locale_t;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(11,95): error: unknown type name 'socklen_t'; did you mean 'locale_t'?
    int setsockopt(int socketDescriptor, int level, int optionName, const void* pOptionValue, socklen_t optionLength);
    ^~~~~~~~~
    locale_t
    D:\Nintendo\piexe-v14\NintendoSDK\Compilers\NX\nx\aarch64/include/aarch64-nintendo-nx-elf\bits/alltypes.h(396,34): note: 'locale_t' declared here
    typedef struct __locale_struct * locale_t;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(14,66): error: unknown type name 'socklen_t'; did you mean 'locale_t'?
    int getsockname(int socketDescriptor, sockaddr* pOutAddress, socklen_t* pOutAddressLength);
    ^~~~~~~~~
    locale_t
    D:\Nintendo\piexe-v14\NintendoSDK\Compilers\NX\nx\aarch64/include/aarch64-nintendo-nx-elf\bits/alltypes.h(396,34): note: 'locale_t' declared here
    typedef struct __locale_struct * locale_t;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(17,62): error: unknown type name 'socklen_t'; did you mean 'locale_t'?
    int bind(int socketDescriptor, const sockaddr* pAddress, socklen_t addressLength);
    ^~~~~~~~~
    locale_t
    D:\Nintendo\piexe-v14\NintendoSDK\Compilers\NX\nx\aarch64/include/aarch64-nintendo-nx-elf\bits/alltypes.h(396,34): note: 'locale_t' declared here
    typedef struct __locale_struct * locale_t;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(18,65): error: unknown type name 'socklen_t'; did you mean 'locale_t'?
    int connect(int socketDescriptor, const sockaddr* pAddress, socklen_t addressLength);
    ^~~~~~~~~
    locale_t
    D:\Nintendo\piexe-v14\NintendoSDK\Compilers\NX\nx\aarch64/include/aarch64-nintendo-nx-elf\bits/alltypes.h(396,34): note: 'locale_t' declared here
    typedef struct __locale_struct * locale_t;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(27,122): error: unknown type name 'socklen_t'; did you mean 'locale_t'?
    inline ssize_t recvfrom(int socketDescriptor, void* outBuffer, size_t outBufferLength, int flags, sockaddr* pOutAddress, socklen_t* pOutAddressLength)
    ^~~~~~~~~
    locale_t
    D:\Nintendo\piexe-v14\NintendoSDK\Compilers\NX\nx\aarch64/include/aarch64-nintendo-nx-elf\bits/alltypes.h(396,34): note: 'locale_t' declared here
    typedef struct __locale_struct * locale_t;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(29,79): error: cannot initialize a parameter of type 'nn::socket::MsgFlag' with an lvalue of type 'int'
    return nn::socket::RecvFrom(socketDescriptor, outBuffer, outBufferLength, flags, pOutAddress, pOutAddressLength);
    ^~~~~
    D:\Nintendo\piexe-v14\NintendoSDK\Include\nn/socket/socket_Api.h(314,86): note: passing argument to parameter 'flags' here
    nn::SignedSize RecvFrom(int socket, void* outBuffer, size_t outBufferLength, MsgFlag flags, SockAddr* pOutAddress, SockLenT* pOutAddressLength) NN_NOEXCEPT;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(32,123): error: unknown type name 'socklen_t'; did you mean 'locale_t'?
    inline ssize_t sendto(int socketDescriptor, const void* buffer, size_t bufferLength, int flags, const sockaddr* pAddress, socklen_t addressLength)
    ^~~~~~~~~
    locale_t
    D:\Nintendo\piexe-v14\NintendoSDK\Compilers\NX\nx\aarch64/include/aarch64-nintendo-nx-elf\bits/alltypes.h(396,34): note: 'locale_t' declared here
    typedef struct __locale_struct * locale_t;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(34,71): error: cannot initialize a parameter of type 'nn::socket::MsgFlag' with an lvalue of type 'int'
    return nn::socket::SendTo(socketDescriptor, buffer, bufferLength, flags, pAddress, addressLength);
    ^~~~~
    D:\Nintendo\piexe-v14\NintendoSDK\Include\nn/socket/socket_Api.h(406,84): note: passing argument to parameter 'flags' here
    nn::SignedSize SendTo(int socket, const void* buffer, size_t bufferLength, MsgFlag flags, const SockAddr* pAddress, SockLenT addressLength) NN_NOEXCEPT;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(37,69): error: unknown type name 'socklen_t'; did you mean 'locale_t'?
    inline int getpeername(int socketDescriptor, sockaddr* pOutAddress, socklen_t* pOutAddressLength)
    ^~~~~~~~~
    locale_t
    D:\Nintendo\piexe-v14\NintendoSDK\Compilers\NX\nx\aarch64/include/aarch64-nintendo-nx-elf\bits/alltypes.h(396,34): note: 'locale_t' declared here
    typedef struct __locale_struct * locale_t;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(39,54): error: cannot initialize a parameter of type 'nn::socket::SockAddr *' with an lvalue of type 'sockaddr *'
    return nn::socket::GetPeerName(socketDescriptor, pOutAddress, pOutAddressLength);
    ^~~~~~~~~~~
    D:\Nintendo\piexe-v14\NintendoSDK\Include\nn/socket/socket_Api.h(622,39): note: passing argument to parameter 'pOutAddress' here
    int GetPeerName(int socket, SockAddr* pOutAddress, SockLenT* pOutAddressLength) NN_NOEXCEPT;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(42,95): error: unknown type name 'socklen_t'; did you mean 'locale_t'?
    inline int getsockopt(int socketDescriptor, int level, int optionName, void* pOutOptionValue, socklen_t* pOutOptionLength)
    ^~~~~~~~~
    locale_t
    D:\Nintendo\piexe-v14\NintendoSDK\Compilers\NX\nx\aarch64/include/aarch64-nintendo-nx-elf\bits/alltypes.h(396,34): note: 'locale_t' declared here
    typedef struct __locale_struct * locale_t;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(44,53): error: cannot initialize a parameter of type 'nn::socket::Level' with an lvalue of type 'int'
    return nn::socket::GetSockOpt(socketDescriptor, level, optionName, pOutOptionValue, pOutOptionLength);
    ^~~~~
    D:\Nintendo\piexe-v14\NintendoSDK\Include\nn/socket/socket_Api.h(865,34): note: passing argument to parameter 'level' here
    int GetSockOpt(int socket, Level level, Option optionName, void* pOutOptionValue, SockLenT* pOutOptionLength) NN_NOEXCEPT;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(67,17): error: unknown type name 'pollfd'
    inline int poll(pollfd* pSocketDescriptors, nfds_t numberOfDescriptors, int timeoutMilliseconds)
    ^
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(67,45): error: unknown type name 'nfds_t'
    inline int poll(pollfd* pSocketDescriptors, nfds_t numberOfDescriptors, int timeoutMilliseconds)
    ^
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(74,48): error: cannot initialize a parameter of type 'nn::socket::FcntlCommand' with an lvalue of type 'int'
    return nn::socket::Fcntl(socketDescriptor, command, value);
    ^~~~~~~
    D:\Nintendo\piexe-v14\NintendoSDK\Include\nn/socket/socket_Api.h(1324,36): note: passing argument to parameter 'command' here
    int Fcntl(int socket, FcntlCommand command, ...) NN_NOEXCEPT;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(79,48): error: cannot initialize a parameter of type 'nn::socket::FcntlCommand' with an lvalue of type 'int'
    return nn::socket::Fcntl(socketDescriptor, command, pointer);
    ^~~~~~~
    D:\Nintendo\piexe-v14\NintendoSDK\Include\nn/socket/socket_Api.h(1324,36): note: passing argument to parameter 'command' here
    int Fcntl(int socket, FcntlCommand command, ...) NN_NOEXCEPT;
    ^
    In file included from C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os\SocketImpl.cpp:10:
    C:\Program Files\Unity\Hub\Editor\2019.4.19f1\Editor\Data\PlaybackEngines\Switch\Tools\il2cpp\libil2cpp\os/PlatformSocketConsts.h(84,33): error: cannot initialize a parameter of type 'nn::socket::Family' with an lvalue of type 'int'
    return nn::socket::InetPton(family, pAddressString, pOutAddressBuffer);
    <message truncated>
     
  44. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    It seems like there might be some problem with the Switch NDK installation. I'm not sure what though.
     
  45. NirmalGhadiya

    NirmalGhadiya

    Joined:
    Jan 24, 2018
    Posts:
    9
    Anyone idea. Gives error while making Webgl build with unity 2019.2.17

    Win32Exception: ApplicationName='C:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\il2cpp/build/il2cpp.exe', CommandLine='--convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="C:\Users\musabhai\Downloads\Front-End (Unity)\Front-End (Unity)\Macau Poker Frontend Source Code\Assets /../Temp/StagingArea/Data\Native\build.bc" --cachedirectory="C:\Users\musabhai\Downloads\Front-End (Unity)\Front-End (Unity)\Macau Poker Frontend Source Code\Assets\..\Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --emit-method-map --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AndroidJNIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ARModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DSPGraphModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_FileSystemHttpModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GridModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputLegacyModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SharedInternalsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_XRModule_Dynamic.bc" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="C:/Users/musabhai/Downloads/Front-End (Unity)/Front-End (Unity)/Macau Poker Frontend Source Code/Temp/StagingArea/Data/Managed" --generatedcppdir="C:/Users/musabhai/Downloads/Front-End (Unity)/Front-End (Unity)/Macau Poker Frontend Source Code/Temp/StagingArea/Data/il2cppOutput" ', CurrentDirectory='C:\Users\musabhai\Downloads\Front-End (Unity)\Front-End (Unity)\Macau Poker Frontend Source Code\Temp\StagingArea\Data\Managed', Native error= The requested operation requires elevation.
    System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <ae22a4e8f83c41d69684ae7f557133d9>:0)
    System.Diagnostics.Process.Start () (at <ae22a4e8f83c41d69684ae7f557133d9>: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:104)
    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:71)
    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:503)
    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:484)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (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:70)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:387)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:930)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)
    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) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
  46. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    Is there another error in the log message? This one is pretty general, but there should be another, more specific error as well.
     
  47. NirmalGhadiya

    NirmalGhadiya

    Joined:
    Jan 24, 2018
    Posts:
    9
  48. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
  49. NirmalGhadiya

    NirmalGhadiya

    Joined:
    Jan 24, 2018
    Posts:
    9
    @JoshPeterson

    1st.-------------------------------

    Failed running C:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="C:\Users\musabhai\Downloads\MacouPokerFrontCopy\MacouPokerFrontCopy\Assets /../Temp/StagingArea/Data\Native\build.bc" --cachedirectory="C:\Users\musabhai\Downloads\MacouPokerFrontCopy\MacouPokerFrontCopy\Assets\..\Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --emit-method-map --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AndroidJNIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ARModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DSPGraphModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_FileSystemHttpModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GridModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputLegacyModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SharedInternalsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_XRModule_Dynamic.bc" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.2.17f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=C:/Users/musabhai/Downloads/MacouPokerFrontCopy/MacouPokerFrontCopy/Temp/StagingArea/Data/Managed --generatedcppdir=C:/Users/musabhai/Downloads/MacouPokerFrontCopy/MacouPokerFrontCopy/Temp/StagingArea/Data/il2cppOutput
    stdout:
    Building build.bc with EmscriptenToolChain
    Output directory: C:\Users\musabhai\Downloads\MacouPokerFrontCopy\MacouPokerFrontCopy\Temp\StagingArea\Data\Native
    Cache directory: C:\Users\musabhai\Downloads\MacouPokerFrontCopy\MacouPokerFrontCopy\Library\il2cpp_cache
    il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
    --- End of inner exception stack trace ---
    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
    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)
    ---> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #1) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #2) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #3) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #4) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #5) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #6) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #7) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Bui<message truncated>

    2nd.-------------------------------

    Exception: C:\Program Files\Unity\Hub\Editor\2019.2.17f1\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:128)
    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:71)
    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:503)
    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:484)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (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:70)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:387)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:930)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)
    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) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
  50. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,289
    Thanks, it looks like the relevant error message is:

    System.ComponentModel.Win32Exception: The system cannot find the file specified

    This usually happens when the C++ compiler (Emscripten, for the WebGL build). It not installed properly. It should be installed along with Unity. So if you have not done so, you might want to try to install Unity again.