Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Building for Linux using IL2CPP "fatal error: 'features.h' file not found" (known issue? 2020.1.17f)

Discussion in 'Editor & General Support' started by adammpolak, Feb 2, 2021.

  1. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    Code (CSharp):
    1. stdout:
    2. Running il2cpp.exe in workstation GC mode.
    3. Building GameAssembly.so with LinuxClangToolChain
    4.     Output directory: /Users/adampolak/dev/Github-Sample-Code/Unity-DOTS-Multiplayer-XR-Sample/Temp/StagingArea/Data/Native
    5.     Cache directory: /Users/adampolak/dev/Github-Sample-Code/Unity-DOTS-Multiplayer-XR-Sample/Library/il2cpp_cache
    6. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: In file included from /Users/adampolak/dev/Github-Sample-Code/Unity-DOTS-Multiplayer-XR-Sample/Temp/StagingArea/Data/il2cppOutput/Il2CppInvokerTable.cpp:1:
    7. In file included from /Applications/Unity/Hub/Editor/2020.1.17f1/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-cpp.hpp:3:
    8. In file included from /Applications/Unity/Hub/Editor/2020.1.17f1/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    9. In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:54:
    10. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:251:12: fatal error: 'features.h' file not found
    11. #  include <features.h>
    12.           ^~~~~~~~~~~~
    13. 1 error generated.
     
  2. AllTheGoodNamesWereTaken

    AllTheGoodNamesWereTaken

    Joined:
    Sep 24, 2015
    Posts:
    14
    There was a similar issued solved here, don't know if that helps or not.
     
  3. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    Appreciate the tip but unfortunately I checked that out and it does not apply. Unity is doing their own build script and I can't modify or point to different places :( (i think)