Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug (IN-20546) Error Building Android IL2CPP with Linux Editor

Discussion in '2022.2 Beta' started by Andrew010110, Oct 21, 2022.

  1. Andrew010110

    Andrew010110

    Joined:
    Oct 8, 2022
    Posts:
    18
    When trying to build an Android aab using the IL2CPP backend on a Linux editor, I get an error saying “clang not found”. This only happens on the Linux editor with Il2CPP selected. The build succeeds if mono is selected and built on Linux or if IL2CPP is selected and built on Windows.

    Has anyone else run into this issue or have a resolution?
     
    Last edited: Oct 23, 2022
    andersmarkendahl likes this.
  2. Andrew010110

    Andrew010110

    Joined:
    Oct 8, 2022
    Posts:
    18
    Bumping this as the bug report has stalled after being told the issue was fixed in b13 however it remains broken even into b14.
     
  3. Airesol

    Airesol

    Joined:
    Dec 24, 2022
    Posts:
    1
    I am also experiencing clang input error when running an il2cpp build using unity 2022.2.6f1 on linux(tried on Ubuntu 18 and Fedora 37).
     
  4. ricardoquesada_work

    ricardoquesada_work

    Joined:
    Jan 24, 2023
    Posts:
    1
    ditto.
    Unity 2023.1.beta
     
  5. Irina-uk

    Irina-uk

    Joined:
    Feb 14, 2014
    Posts:
    62
    clang not found - fix
    sudo apt-get -y install clang
    new errors :(
    clang: error: no input files
     
  6. andersmarkendahl

    andersmarkendahl

    Joined:
    Mar 6, 2021
    Posts:
    14
    Crosspost to bump this one. As this was initially reported on 2022 I posted a new one here in case we have better luck getting attention on the newest beta release.
     
  7. ifilatov

    ifilatov

    Joined:
    Jan 17, 2023
    Posts:
    3
    Problem in corrupt links, they replaced to files. For Windows maybe it is normal, but for unix like systems it is error - running installed clang in system without args.
    Small script for fixed it https://github.com/xgensoft/xstools/blob/main/fix_link.sh
    Need runing in ./Editor/Data/PlaybackEngines/AndroidPlayer directory
     
  8. Xilliah

    Xilliah

    Joined:
    Feb 24, 2021
    Posts:
    4
    ifilatov you are a life saver