Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Dec 17, 2015 at 04:25 PM by jmonasterio for the following reason:

Reported as a bug to bug tracker.

avatar image
0
Question by jmonasterio · Dec 17, 2015 at 04:55 AM · webglil2cpp

build with IL2CPP error

I am building for WEBGL with 5.3.0f4 personal.

  • First Error: **

    Failed running "C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten_Win/python/2.7.5.3_64bit/python.exe" "C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten/emcc" -Oz -std=c++11 -Wno-unused-value -Wno-invalid-offsetof -I-I"C:/u/jst1/Assets/../Temp/StagingArea/Data\Libraries\bdwgc/include" -I"C:/u/jst1/Assets/../Temp/StagingArea/Data\Libraries\libil2cpp/include" -I"C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput" -nostdinc -c @"C:\Users\jorge\AppData\Local\Temp\tmp204cc609.tmp"

    WARNING root: -I or -L of an absolute path "-IC:/u/jst1/Assets/../Temp/StagingArea/Data\Libraries\libil2cpp/include" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass '-Wno-warn-absolute-paths' to emcc to hide this warning. C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:352:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:443:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:1048:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:2432:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:2663:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:2754:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:3359:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:4743:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:5905:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:6014:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:6369:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:6478:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:6999:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:7108:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:7463:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Generics_2.cpp:7572:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 16 warnings generated. C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:10337:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13181:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13217:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13232:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13247:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:13322:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:17798:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:25855:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:25870:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:28306:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:28321:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:28521:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:28572:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:31383:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:31398:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:31837:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:34430:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:35193:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:35520:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:35961:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:36714:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:38453:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:45621:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:45656:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:47526:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:47578:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:61973:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_0.cpp:67103:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 28 warnings generated. C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_4.cpp:4472:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_4.cpp:14157:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_4.cpp:14387:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_mscorlib_4.cpp:14694:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 4 warnings generated. C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Shared_0.cpp:1202:14: error: no matching function for call to 'm5_245' bool L_1 = m5_245(NULL, (((t5_65 )L_0)), (t5_5 )NULL, NULL); ^~~~~~ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput/t5_5MD.h:60:17: note: candidate function not viable: cannot convert argument of incomplete type 't5_65 ' to 't5_5 ' extern "C" bool m5_245 (t1_1 __this , t5_5 p0, t5_5 p1, const MethodInfo method) IL2CPP_METHOD_ATTR; ^ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput\Bulk_Shared_0.cpp:1212:17: error: no matching function for call to 'm5_248' t5_57 L_4 = m5_248((((t5_65 **)L_3)), NULL); ^~~~~~ C:/u/jst1/Assets/../Temp/StagingArea/Data\il2cppOutput/t5_15MD.h:30:20: note: candidate function not viable: cannot convert argument of incomplete type 't5_65 ' to 't5_15 ' extern "C" t5_57 m5_248 (t5_15 __this, const MethodInfo* method) IL2CPP_METHOD_ATTR; ^ 2 errors generated. ERROR root: compiler frontend failed to generate LLVM bitcode, halting

    Followed by Failed running "C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten_Win/python/2.7.5.3_64bit/python.exe" "C:\Program Files\Unity\Editor\Data\PlaybackEngines\webglsupport/BuildTools/Emscripten/emcc" -Oz -s NO_EXIT_RUNTIME=1 -o "C:/u/jst1/Assets/../Temp/StagingArea/Data\Native\UserAssembly.bc" @"C:\Users\jorge\AppData\Local\Temp\tmp416ada42.tmp"

    ERROR root: C:\u\jst1\Temp\EmscriptenWork\Bulk_Generics_2.o: No such file or directory ("C:\u\jst1\Temp\EmscriptenWork\Bulk_Generics_2.o" was expected to be an input file, based on the commandline arguments provided) 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.WebGL.Il2Cpp.EmscriptenCompiler:CompileDynamicLibrary(String, IEnumerable`1, IEnumerable`1, IEnumerable`1, IEnumerable`1) UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:135) UnityEditor.HostView:OnGUI()

Followed By

 Exception: IL2CPP compile failed.
 NativeCompiler.RunProgram (System.Diagnostics.ProcessStartInfo startInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:62)
 NativeCompiler.Execute (System.String arguments, System.String compilerPath) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26)
 UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.LinkObjects (IEnumerable`1 sources, System.String outfile) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/Il2Cpp/EmscriptenCompiler.cs:57)
 UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.MultiThreadedCompile (System.String outfile, IEnumerable`1 sources, IEnumerable`1 includePaths, Boolean exceptionSupport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/Il2Cpp/EmscriptenCompiler.cs:44)
 UnityEditor.WebGL.Il2Cpp.EmscriptenCompiler.CompileDynamicLibrary (System.String outFile, IEnumerable`1 sources, IEnumerable`1 includePaths, IEnumerable`1 libraries, IEnumerable`1 libraryPaths) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/Il2Cpp/EmscriptenCompiler.cs:21)
 UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218)
 UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:135)
 UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:301)
 UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
 UnityEditor.HostView:OnGUI()

  • Followed by **

    Error building Player: Exception: IL2CPP compile failed.

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
â–¼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jmonasterio · Dec 17, 2015 at 05:24 AM 0
Share

Project runs fine in Editor.

I had a DLL in the project (containing reusable scripts). I removed that DLL and copied all the scripts directly into the project. Seemed to resolve the issue.

I'll miss that DLL.

avatar image JoshPeterson jmonasterio · Dec 17, 2015 at 12:37 PM 1
Share

This error indicates that IL2CPP is generating C++ code which does not compile. This is certainly a bug in Unity then. Can you submit a bug report and include a project that causes this issue? You may just need to include that one problematic assembly in the project. We would like to understand and correct this issue. Thanks!

avatar image jmonasterio JoshPeterson · Dec 17, 2015 at 04:09 PM 0
Share

@JoshPeterson

Unfortunately, I tried putting that one suspect DLL in a new unity project all by itself. but WebGL built O$$anonymous$$! So I am not sure how to reproduce the problem simply.

I will go back in version control to the exact version where the problem happened (before I removed the DLL). If problem is still there, I will submit the whole project with the bug.

Thanks.

Show more comments
avatar image JoshPeterson · Dec 17, 2015 at 04:26 PM 0
Share

Thanks. Can you let me know the bug number?

avatar image jmonasterio JoshPeterson · Dec 17, 2015 at 05:00 PM 0
Share

@joshpeterson: This is the number: 755088

avatar image JoshPeterson jmonasterio · Dec 17, 2015 at 05:56 PM 0
Share

Thanks, we will investigate this!

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

36 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Error building WebGL project in CI 0 Answers

Failed to Build for WebGL.I am using unity 5.6.1f1. 0 Answers

Unity hangs when compiling the game on WebGL 1 Answer

Building to WebGL failing, failed running il2cpp.exe 1 Answer

Unity 5.6.4p3 WebGl "il2cpp did not run properly" 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges