Search Issue Tracker
Fixed
Fixed in 2023.1.X
Votes
13
Found in
2022.2.0b12
2023.1.0b11
Issue ID
UUM-18303
Regression
No
[Linux] Build fails with "clang not found" errors when building an IL2CPP Android project with ARMv7 and ARM64 Target Architectures
Reproduction steps:
1. Create a new Android 3D project
2. Click File > Build Settings > Add Open Scenes
3. In Build Settings window, click Player Settings
4. Under Other Settings, change Scripting Backend to IL2CPP
5. Under Other Settings, select “ARMv7” and “ARM64” Target Architectures
6. Click File > Build Settings > Build
Expected result: The project is built successfully
Actual result: Build fails with multiple “…bin/clang++: 1: clang: not found” errors
Reproducible with: 2022.2.0b1, 2022.2.0b12
Not reproducible with: 2022.2.0b13, 2023.1.0a17
Couldn’t test with: 2020.3.41f1, 2021.3.12f1, 2022.1.21f1, 2022.2.0a1 (Couldn’t build because of “Gradle build failed” error), 2022.2.0a19 (Couldn’t build because Android SDK Build-tools component is not found)
Reproducible on: Ubuntu 20.04.5
Not reproducible on: Windows 11 Pro 21H2
---------------
A similar issue reported by Google
I'm testing out some Unity Android builds and running into build errors with an empty project on IL2CPP. I'm trying to build using the Unity Editor on Linux (Debian). Builds succeed when I switch to Mono. IL2CPP Android builds fail on Unity 2022.2.14f1 and 2023.1.0b11, but succeed on 2021.3.22f1. These are about 100 errors in the console similar to this:
{quote}{color:#0747a6}Building Library/Bee/artifacts/Android/x6ly2/q45r_osix2.lump.o failed with output: clang: error: no input files {color}
{color:#0747a6}UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189){color}
{quote}
I also run into similar issues with slightly different errors trying to export the project instead of building.
Comments (11)
-
beomsik
Mar 19, 2023 01:53
I'm having the same issue with 2022.2.11f1 on Ubuntu 20.04.5
It works fine with 2021 and I noticed that clang files in 2021 are binary while 2022's files looks like a text file or alias to clang++/clang-12?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note:
Fixed by another internal issue: HUBX-912: [Linux] Build fails with "clang not found" errors when building an IL2CPP Android project with ARMv7 and ARM64 Target Architectures
Resolution Note (fix version 2023.1):
Fixed by another internal issue: HUBX-912: [Linux] Build fails with "clang not found" errors when building an IL2CPP Android project with ARMv7 and ARM64 Target Architectures