Search Unity

  1. Click here to receive a gift with your purchase of Unity Pro or Unity Enterprise.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[RESOLVED] Android Master C++ config for IL2CPP doesn't work on Windows in 2018.3.0b10

Discussion in '2018.3 Beta' started by Dmitry-Pyalov, Nov 26, 2018.

  1. Dmitry-Pyalov

    Dmitry-Pyalov

    Joined:
    Dec 13, 2011
    Posts:
    111
    Code (CSharp):
    1. Failed running C:\Program Files\Unity\Hub\Editor\2018.3.0b10\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="ReleasePlus" --outputpath="D:\Projects\_unity\Plain Android\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Projects\_unity\Plain Android\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.3.0b10\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.3.0b10\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Programs/android-ndk-r16b" --map-file-parser="C:\Program Files\Unity\Hub\Editor\2018.3.0b10\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="D:\Projects\_unity\Plain Android\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="D:\Projects\_unity\Plain Android\Temp\StagingArea\Il2Cpp\il2cppOutput"
    2.  
    3. stdout:
    4. Building libil2cpp.so with AndroidToolChain
    5.     Output directory: D:\Projects\_unity\Plain Android\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    6.     Cache directory: D:\Projects\_unity\Plain Android\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    7. ObjectFiles: 484 of which compiled: 484
    8.     Time Compile: 13086 milliseconds Bulk_mscorlib_7.cpp
    9.     Time Compile: 12071 milliseconds Bulk_mscorlib_1.cpp
    10.     Time Compile: 11757 milliseconds Bulk_mscorlib_8.cpp
    11.     Time Compile: 11448 milliseconds Bulk_mscorlib_6.cpp
    12.     Time Compile: 10980 milliseconds Bulk_mscorlib_12.cpp
    13.     Time Compile: 10930 milliseconds Bulk_mscorlib_2.cpp
    14.     Time Compile: 10881 milliseconds Bulk_mscorlib_0.cpp
    15.     Time Compile: 9462 milliseconds Bulk_Generics_2.cpp
    16.     Time Compile: 9452 milliseconds Bulk_mscorlib_4.cpp
    17.     Time Compile: 9417 milliseconds Bulk_mscorlib_3.cpp
    18. Total compilation time: 79489 milliseconds.
    19. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Programs\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\dipya\AppData\Local\Temp\tmp2FBA.tmp" -o "D:\Projects\_unity\Plain Android\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_291D131C32FE069D43B6762F593A1AE1\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\Programs\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\Programs\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -Xlinker -Map="D:\Projects\_unity\Plain Android\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_291D131C32FE069D43B6762F593A1AE1\libil2cpp.map" -rdynamic -flto -fuse-ld=gold.exe
    20.  
    21. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:\Programs\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib64/LLVMgold.so: could not load plugin library:
    22. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FF3C78CAA7E2D0AC32CAFE3AFA770316.o:1:3: invalid character
    23. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FF3C78CAA7E2D0AC32CAFE3AFA770316.o:1:3: syntax error, unexpected $end
    24. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FF3C78CAA7E2D0AC32CAFE3AFA770316.o: not an object or archive
    25. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7D17F973CF4E8D93036EA77D8768613F.o:1:3: invalid character
    26. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7D17F973CF4E8D93036EA77D8768613F.o:1:3: syntax error, unexpected $end
    27. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7D17F973CF4E8D93036EA77D8768613F.o: not an object or archive
    28. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CB64890715B6FFFE93CC5C0E745CEB8A.o:1:3: invalid character
    29. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CB64890715B6FFFE93CC5C0E745CEB8A.o:1:3: syntax error, unexpected $end
    30. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/CB64890715B6FFFE93CC5C0E745CEB8A.o: not an object or archive
    31. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/37EAEC536B68766D1F02EB241C60944A.o:1:3: invalid character
    32. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/37EAEC536B68766D1F02EB241C60944A.o:1:3: syntax error, unexpected $end
    33. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/37EAEC536B68766D1F02EB241C60944A.o: not an object or archive
    34. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FC5BEA5523129340FAE2760091FF69D8.o:1:3: invalid character
    35. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FC5BEA5523129340FAE2760091FF69D8.o:1:3: syntax error, unexpected $end
    36. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FC5BEA5523129340FAE2760091FF69D8.o: not an object or archive
    37. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6CF9C100F88749E07B3E6A4135CCB48D.o:1:3: invalid character
    38. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6CF9C100F88749E07B3E6A4135CCB48D.o:1:3: syntax error, unexpected $end
    39. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6CF9C100F88749E07B3E6A4135CCB48D.o: not an object or archive
    40. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7514A91E59959535CA5C05C49AE79988.o:1:3: invalid character
    41. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7514A91E59959535CA5C05C49AE79988.o:1:3: syntax error, unexpected $end
    42. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/7514A91E59959535CA5C05C49AE79988.o: not an object or archive
    43. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FE63A744363E3A2F25302898D626F3AC.o:1:3: invalid character
    44. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FE63A744363E3A2F25302898D626F3AC.o:1:3: syntax error, unexpected $end
    45. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/FE63A744363E3A2F25302898D626F3AC.o: not an object or archive
    46. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/D674BD978723F0979DDCD321F43BADCC.o:1:3: invalid character
    47. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/D674BD978723F0979DDCD321F43BADCC.o:1:3: syntax error, unexpected $end
    48. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/D674BD978723F0979DDCD321F43BADCC.o: not an object or archive
    49. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/897843E294E4563789DCBDEAD2D4F768.o:1:3: invalid character
    50. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/897843E294E4563789DCBDEAD2D4F768.o:1:3: syntax error, unexpected $end
    51. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/897843E294E4563789DCBDEAD2D4F768.o: not an object or archive
    52. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/2988A012B4FF3CADA8F1F5B3958A40E1.o:1:3: invalid character
    53. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/2988A012B4FF3CADA8F1F5B3958A40E1.o:1:3: syntax error, unexpected $end
    54. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/2988A012B4FF3CADA8F1F5B3958A40E1.o: not an object or archive
    55. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/80AB2859CEC86C459B888F22160CAD38.o:1:3: invalid character
    56. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/80AB2859CEC86C459B888F22160CAD38.o:1:3: syntax error, unexpected $end
    57. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/80AB2859CEC86C459B888F22160CAD38.o: not an object or archive
    58. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/8E264E7DF0447D010EFE6FBD48649117.o:1:3: invalid character
    59. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/8E264E7DF0447D010EFE6FBD48649117.o:1:3: syntax error, unexpected $end
    60. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: D:/Projects/_unity/Plain Android/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/8E264E7DF0447D010EFE6FBD48649117.o: not an object or archive
    61. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideab<message truncated>
    I think, the reason is
    Code (CSharp):
    1. C:\Programs\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin\ld.gold.exe: error: C:\Programs\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib64/LLVMgold.so: could not load plugin library:
    Library LLVMgold.so doesn't exist in Windows distribution of NDK, but does in Mac and Linux. Putting this library from Mac/Linux distribution doesn't help - only the nature of the error changes from "file missing" to "could not load"

    Debug and Release C++ configurations work fine.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    7,887
    Which beta are you on? This was broken and then fixed later.
     
  3. Dmitry-Pyalov

    Dmitry-Pyalov

    Joined:
    Dec 13, 2011
    Posts:
    111
  4. Dmitry-Pyalov

    Dmitry-Pyalov

    Joined:
    Dec 13, 2011
    Posts:
    111
    Yep, Beta 11 fixes this.
     
unityunity