Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  5. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

WebGL fails to build under 2018.3b12

Discussion in '2018.3 Beta' started by btristan, Dec 6, 2018 at 6:55 PM.

  1. btristan

    btristan

    Joined:
    Oct 15, 2018
    Posts:
    6
    Hello,

    I was just trying to build my Unity project using WebGL but I keep running into this error:
    Code (csharp):
    1. OSError: [Errno 2] No such file or directory
    Here is the full error message:
    Code (csharp):
    1.  
    2. Failed running /Applications/Unity/Hub/Editor/2018.3.0b12/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="/workplace/btristan/harlow/src/HarlowEngine/Assets /../Temp/StagingArea/Data/Native/build.bc" --cachedirectory="/workplace/btristan/harlow/src/HarlowEngine/Assets/../Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --emit-method-map --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ARModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_BaselibModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_FileSystemHttpModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_GridModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SharedInternalsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SpatialTrackingModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_StyleSheetsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TimelineModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_XRModule_Dynamic.bc" --map-file-parser="/Applications/Unity/Hub/Editor/2018.3.0b12/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/workplace/btristan/harlow/src/HarlowEngine/Temp/StagingArea/Data/Managed" --generatedcppdir="/workplace/btristan/harlow/src/HarlowEngine/Temp/StagingArea/Data/il2cppOutput" --extra-types-file="/workplace/btristan/harlow/src/HarlowEngine/Temp/StagingArea/Data/extra-types.txt"
    3.  
    4. stdout:
    5. Building build.bc with EmscriptenToolChain
    6.     Output directory: /workplace/btristan/harlow/src/HarlowEngine/Temp/StagingArea/Data/Native
    7.     Cache directory: /workplace/btristan/harlow/src/HarlowEngine/Library/il2cpp_cache
    8. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: ERROR:root:Invoking Process failed: <<< /Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/clang++ -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=37 -D__EMSCRIPTEN_tiny__=40 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -nostdinc -Xclang -nobuiltininc -Xclang -nostdsysteminc -Xclang -isystem/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/system/include/libcxx -Xclang -isystem/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/system/lib/libcxxabi/include -Xclang -isystem/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/system/include/compat -Xclang -isystem/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/system/include -Xclang -isystem/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/system/include/SSE -Xclang -isystem/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/system/include/libc -Xclang -isystem/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/system/local/include -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -std=c++11 -Oz -DIL2CPP_EXCEPTION_DISABLED=1 -DNET_4_0 -DUNITY_AOT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DNDEBUG -I/Applications/Unity/Hub/Editor/2018.3.0b12/Unity.app/Contents/il2cpp/libil2cpp -I/Applications/Unity/Hub/Editor/2018.3.0b12/Unity.app/Contents/il2cpp/external/boehmgc/include -I/workplace/btristan/harlow/src/HarlowEngine/Temp/StagingArea/Data/il2cppOutput -mllvm -disable-llvm-optzns /workplace/btristan/harlow/src/HarlowEngine/Temp/StagingArea/Data/il2cppOutput/Il2CppTypeDefinitions.cpp -fno-inline-functions -Xclang -disable-O0-optnone -Xclang -isystem/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/system/include/SDL -emit-llvm -c -o /workplace/btristan/harlow/src/HarlowEngine/Library/il2cpp_cache/F73EFFD8A3C52B07E5A106D5B52EFF62.o >>>
    9. Traceback (most recent call last):
    10.  File "/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/em++", line 15, in <module>
    11.    python_selector.run(emcc)
    12.  File "/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/tools/python_selector.py", line 38, in run
    13.    sys.exit(run_by_import(filename, main) if on_allowed_version() else run_by_subprocess(filename))
    14.  File "/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/tools/python_selector.py", line 13, in run_by_import
    15.    return getattr(importlib.import_module(os.path.basename(filename)), main)()
    16.  File "/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc.py", line 1415, in run
    17.    compile_source_file(i, input_file)
    18.  File "/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc.py", line 1407, in compile_source_file
    19.    execute(args) # let compiler frontend print directly, so colors are saved (PIPE kills that)
    20.  File "/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/tools/shared.py", line 136, in execute
    21.    return Popen(cmd, universal_newlines=True, *args, **kw).communicate() # let compiler frontend print directly, so colors are saved (PIPE kills that)
    22.  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    23.    errread, errwrite)
    24.  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    25.    raise child_exception
    26. OSError: [Errno 2] No such file or directory
    27.  
    28.  
    29. Invocation was: Executable: python
    30. Arguments: "/Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/em++" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -std=c++11 -Oz -DIL2CPP_EXCEPTION_DISABLED=1  -DNET_4_0 -DUNITY_AOT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DNDEBUG -I"/Applications/Unity/Hub/Editor/2018.3.0b12/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2018.3.0b12/Unity.app/Contents/il2cpp/external/boehmgc/include" -I"/workplace/btristan/harlow/src/HarlowEngine/Temp/StagingArea/Data/il2cppOutput" "/workplace/btristan/harlow/src/HarlowEngine/Temp/StagingArea/Data/il2cppOutput/Il2CppTypeDefinitions.cpp" -o "/workplace/btristan/harlow/src/HarlowEngine/Library/il2cpp_cache/F73EFFD8A3C52B07E5A106D5B52EFF62.o"
    31.  
    32.   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    33.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    34.   at il2cpp.Program.DoRun(String[] args)
    35.   at il2cpp.Program.Run(String[] args)
    36.   at il2cpp.Program.Main(String[] args)
    37. stderr:
    38.  
    39. Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: ERROR:root:Invoking Process failed: <<< /Applications/Unity/Hub/Editor/2018.3.0b12/PlaybackEngines/WebGLSupport/BuildTools/Emscripten_FastComp_Linux/clang++ -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=37 -D__EMSC<message truncated>
    40.  

    I get a notification that the build succeeded but the output directory is empty.

    This is on Mac OS X 10.13.6.

    I have seen this happen when paths contained non-Latin characters but all of my paths are composed of Latin characters only.

    This was also happening under b11.

    Any idea is this s a bug or something in my environment? The error message doesn't give me any indication as to which file is missing.
     
    Last edited: Dec 6, 2018 at 7:30 PM
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,600
    does it fail if you build an empty project?
     
  3. btristan

    btristan

    Joined:
    Oct 15, 2018
    Posts:
    6
    I just tried and it does fail with an empty project. (same error message)

    I have created bug 1107593 for this issue.

    (side note: I also created 1107588 for a bug where the scene list contains only a deleted scene in new projects)
     
    LeonhardP likes this.