Search Unity

Cannot build WebGL on 2018.2.13f1 il2cpp.exe

Discussion in 'Linux Editor' started by gromilQaaaa, Oct 28, 2018.

  1. gromilQaaaa

    gromilQaaaa

    Joined:
    Oct 28, 2013
    Posts:
    14
    Hi, I'm using docker image and CI to create builds. Windows building works. WebGL - not. It gets failed on
    Code (csharp):
    1. Failed running /opt/Unity/Editor/Data/il2cpp/build/il2cpp.exe
    Code (csharp):
    1. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: error: unknown argument: '-disable-O0-optnone'
    Help! :) Full log attached
     

    Attached Files:

  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,219
    It looks like the relevant error message is:

    error: unknown argument: '-disable-O0-optnone'

    It seems something is passing Emscripten a bad argument. I'm not sure why that happens though. Does the build of this Unity project succeed locally for you?
     
  3. gromilQaaaa

    gromilQaaaa

    Joined:
    Oct 28, 2013
    Posts:
    14
    It does builds great on my Windows PC on Unity 2018.2.4f1 (64-bit). I can't check linux local building, sorry :(

    BTW I had the same issue on 2018.2.7f1. I've upgraded to 13f1 hoping that it would be fixed.
     
    Last edited: Oct 30, 2018
unityunity