Search Issue Tracker

Fixed in 5.3.2

Votes

0

Found in

5.3.1f1

Issue ID

750266

Regression

No

[UWP][IL2CPP] UnusedBytecodeStripper2 did not run properly

Windows Store Apps

-

When building to UWP platform with IL2CPP backend, editor throws errors in the console:

Exception: D:\Unity 5.3.1p1\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory.....
[ ... ]

Repro steps:
1. open users project;
2. build to Universal 10 platform with set il2cpp backend;
3. observe the console for errors;

Workaround: Use .NET backend;

Comments (1)

  1. a6522583

    Dec 20, 2017 10:54

    Failed running D:\Unity5.5.0f3\Unity\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="F:\FishTest\TestProject\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="F:\FishTest\TestProject\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="D:\Unity5.5.0f3\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="D:\Unity5.5.0f3\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/AndroidNDK" --extra-types.file="D:\Unity5.5.0f3\Unity\Editor\Data\il2cpp\il2cpp_default_extra_types.txt" --assembly="F:\FishTest\TestProject\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp-firstpass.dll" --assembly="F:\FishTest\TestProject\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="F:\FishTest\TestProject\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --generatedcppdir="F:\FishTest\TestProject\Temp\StagingArea\Il2Cpp\il2cppOutput"

    stdout:
    Building libil2cpp.so with AndroidToolChain.
    Output directory: F:\FishTest\TestProject\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    Cache directory: F:\FishTest\TestProject\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    ObjectFiles: 489 of which compiled: 122
    Time Compile: 107992 milliseconds Il2CppAttributes.cpp
    Time Compile: 81980 milliseconds Bulk_Assembly-CSharp_12.cpp
    Time Compile: 67860 milliseconds Bulk_mscorlib_6.cpp
    Time Compile: 65358 milliseconds Il2CppInvokerTable.cpp
    Time Compile: 62014 milliseconds Bulk_Generics_5.cpp
    Time Compile: 54185 milliseconds Bulk_Assembly-CSharp_4.cpp
    Time Compile: 49536 milliseconds Bulk_mscorlib_1.cpp
    Time Compile: 47843 milliseconds Bulk_System.Xml_1.cpp
    Time Compile: 44449 milliseconds Bulk_Assembly-CSharp_5.cpp
    Time Compile: 43120 milliseconds Bulk_Generics_13.cpp
    Total compilation time: 452745 milliseconds.
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: @"C:\Users\Administrator\AppData\Local\Temp\tmpAACB.tmp" -o "F:\FishTest\TestProject\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_95211B9E886391C7A2329802975BE778\libil2cpp.so" -Wl,-soname,libil2cpp.so -shared -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "D:\AndroidNDK\platforms\android-9\arch-arm" -gcc-toolchain "D:\AndroidNDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -L "D:\AndroidNDK\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -fuse-ld=gold

    �� Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
    �� Unity.IL2CPP.Building.CppProgramBuilder.Build()
    �� il2cpp.Program.DoRun(String[] args)
    �� il2cpp.Program.Run(String[] args)
    �� il2cpp.Program.Main(String[] args)
    stderr:

    δ���������쳣: Unity.IL2CPP.Building.BuilderFailedException: @"C:\Users\Administrator\AppData\Local\Temp\tmpAACB.tmp" -o "F:\FishTest\TestProject\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_95211B9E886391C7A2329802975BE778\libil2cpp.so" -Wl,-soname,libil2cpp.so -shared -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "D:\AndroidNDK\platforms\android-9\arch-arm" -gcc-toolchain "D:\AndroidNDK\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -L "D:\AndroidNDK\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -fuse-ld=gold

    �� Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
    �� Unity.IL2CPP.Building.CppProgramBuilder.Build()
    �� il2cpp.Program.DoRun(String[] args)
    �� il2cpp.Program.Run(String[] args)
    �� il2cpp.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:281)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:272)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:126)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:32)
    UnityEditor.HostView:OnGUI()

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.