IL2CPP compilation failed
Hi :) I recently compiled my project in IL2CPP and it gave me this compilation error. Is this my fault, am I doing something wrong, or is it a bug?
Thank you :)
Failed running C:/Users/gilfe/AppData/Local/Android/android-ndk-r10e/toolchains/llvm-3.6/prebuilt/windows-x86_64/bin/clang++ -c "Temp/StagingArea\Il2Cpp\il2cppOutput\Bulk_Generics_0.cpp" -o "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_0.o" --sysroot "C:/Users/gilfe/AppData/Local/Android/android-ndk-r10e/platforms/android-9/arch-arm" -gcc-toolchain "C:/Users/gilfe/AppData/Local/Android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64" -target armv7-none-linux-androideabi -Os -g -DNDEBUG -fno-limit-debug-info -fPIC -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -mfpu=neon -I "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" -I "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" -I "Temp/StagingArea\Il2Cpp\il2cppOutput" -I "C:/Users/gilfe/AppData/Local/Android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include" -I "C:/Users/gilfe/AppData/Local/Android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I "C:/Users/gilfe/AppData/Local/Android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include"
Temp/StagingArea\Il2Cpp\il2cppOutput\Bulk_Generics_0.cpp:2412:3: error: member access into incomplete type 'GameObjectU5BU5D_t3057952154' IL2CPP_ARRAY_BOUNDS_CHECK((((GameObjectU5BU5D_t3057952154)L_15)), L_16); ^ C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include\codegen/il2cpp-codegen.h:447:44: note: expanded from macro 'IL2CPP_ARRAY_BOUNDS_CHECK' if (((uint32_t)(index)) >= ((uint32_t)(a)->max_length)) il2cpp::vm::Exception::Raise (il2cpp::vm::Exception::GetIndexOutOfRangeException()); \ ^ Temp/StagingArea\Il2Cpp\il2cppOutput\Bulk_Generics_0.cpp:43:8: note: forward declaration of 'GameObjectU5BU5D_t3057952154' struct GameObjectU5BU5D_t3057952154; ^ Temp/StagingArea\Il2Cpp\il2cppOutput\Bulk_Generics_0.cpp:2414:78: error: member access into incomplete type 'GameObjectU5BU5D_t3057952154' GameObject_t1756533147 L_18 = ((((GameObjectU5BU5D_t3057952154*)L_15)))->GetAt(static_cast(L_17)); ^ Temp/StagingArea\Il2Cpp\il2cppOutput\Bulk_Generics_0.cpp:43:8: note: forward declaration of 'GameObjectU5BU5D_t3057952154' struct GameObjectU5BU5D_t3057952154; ^ 2 errors generated. UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.Android.c_AnonStorey2:<>m7(String) cAnonStorey70`1:<>m_F6(Object) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:89)
Your answer
Follow this Question
Related Questions
CommandInvokationFailure: Failed to re-package resources 0 Answers
Help me with error CS1525: Unexpected symbol `the' 1 Answer
When using preprocessors, Unity throws errors 1 Answer
Unity 5 batch mode - CS0246 'UnityEditor' could not be found. 0 Answers
Cloud Build 20 errors, some connected with Unity Testing Tool 0 Answers