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. Dismiss Notice

[IL2CPP] 5.4 build error

Discussion in 'Android' started by GilFerraz, Jul 23, 2016.

  1. GilFerraz

    GilFerraz

    Joined:
    Jul 4, 2016
    Posts:
    7
    Hi :)
    When building my project with IL2CPP I'm having the following error.
    I don't understand what's going on. Please have a look:

    2 errors generated.

    struct GameObjectU5BU5D_t3057952154;
    Temp/StagingArea\Il2Cpp\il2cppOutput\Bulk_Generics_0.cpp:35:8: note: forward declaration of 'GameObjectU5BU5D_t3057952154' ^ GameObject_t1756533147 * L_18 = ((*((GameObjectU5BU5D_t3057952154**)L_15)))->GetAt(static_cast<il2cpp_array_size_t>(L_17));

    Temp/StagingArea\Il2Cpp\il2cppOutput\Bulk_Generics_0.cpp:2015:78: error: member access into incomplete type 'GameObjectU5BU5D_t3057952154'

    struct GameObjectU5BU5D_t3057952154;
    Temp/StagingArea\Il2Cpp\il2cppOutput\Bulk_Generics_0.cpp:35:8: note: forward declaration of 'GameObjectU5BU5D_t3057952154' ^ if (((uint32_t)(index)) >= ((uint32_t)(a)->max_length)) il2cpp::vm::Exception::Raise (il2cpp::vm::Exception::GetIndexOutOfRangeException());

    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' ^ IL2CPP_ARRAY_BOUNDS_CHECK((*((GameObjectU5BU5D_t3057952154**)L_15)), L_16);

    Temp/StagingArea\Il2Cpp\il2cppOutput\Bulk_Generics_0.cpp:2013:3: error: member access into incomplete type 'GameObjectU5BU5D_t3057952154'

    Failed running C:/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:/android-ndk-r10e/platforms/android-9/arch-arm" -gcc-toolchain "C:/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:/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include" -I "C:/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I "C:/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include"
    Thanks for your help! :)

     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,741
    @GilFerraz

    This is a bug in IL2CPP. It should never generate C++ code that does not compile. If you have not done so, can you please try the latest version of 5.4? If the problem still occurs, please submit a bug report.

    I don't recall seeing an issue like this yet, but it may have been already corrected. Thanks!
     
  3. GilFerraz

    GilFerraz

    Joined:
    Jul 4, 2016
    Posts:
    7
    Hi, thanks for the quick answer.

    Yes, I also got this error from 5.4. Prehaps it's best if I submit a bug report.
     
    Yury-Habets likes this.
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,741
    @GilFerraz

    Yes, please submit a bug report if you can. We would really appreciate that.