Android build failed at Building Library (libil2cpp.so) - iOS and Local Android build are fine.

Hi there,

I have a problem building the Android build on the cloud. We use Addressable Assets and already have a pre-build content. So, this is just the project main project build without Addressable Assets. The iOS build works. Also, the local Android build works.

Unity Version: 2021.3.13f

NOTE: FYI, for the local build I use Mac M1 env. to build Android version, however the cloud build we set to Windows env. I also did the clean build as well as copy the fresh Repo to build on my local machine and it works. This is only happen when we try to use the cloud build.

Here is the error, we have.

[error] [2023-03-27T22:59:32Z - Unity] C:/Android/ndk-r21d/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/include/c++/v1/new:334:(.text._ZN6il2cpp2os20PathErrnoToErrorCodeERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi+0x70): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator delete(void*)' defined in .text._ZdlPv section in C:/Android/ndk-r21d/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android\libc++_static.a(new.o) [error] [2023-03-27T22:59:32Z - Unity] clang++: error: linker command failed with exit code 1 (use -v to see invocation) [error] [2023-03-27T22:59:32Z - Unity] ERROR: Building Library\Bee\artifacts\Android\d8kzr\libil2cpp.so failed with output: [error] [2023-03-27T22:59:32Z - Unity] C:/Android/ndk-r21d/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/include/c++/v1/new:334:(.text._ZN6il2cpp2os20PathErrnoToErrorCodeERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi+0x70): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator delete(void*)' defined in .text._ZdlPv section in C:/Android/ndk-r21d/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android\libc++_static.a(new.o) [error] [2023-03-27T22:59:32Z - Unity] clang++: error: linker command failed with exit code 1 (use -v to see invocation) [error] [2023-03-27T22:59:32Z - Unity] C:/Android/ndk-r21d/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/include/c++/v1/new:334:(.text._ZN6il2cpp2os20PathErrnoToErrorCodeERKNSt6__ndk112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEi+0x70): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator delete(void*)' defined in .text._ZdlPv section in C:/Android/ndk-r21d/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/lib/aarch64-linux-android\libc++_static.a(new.o) [error] [2023-03-27T22:59:32Z - Unity] clang++: error: linker command failed with exit code 1 (use -v to see invocation) [error] [2023-03-27T23:00:11.901Z] - 7.3.2.2.7.4 - FATAL: ! Unity player export failed! [error] Finished: FAILURE

Hello @jatehighmark ,

Could you create a support ticket by writing an email to cloudbuildsupport@unity3d.com?

We could check if this error is due to outside factors.

Since you mentioned, building locally on a Mac and in a clean folder worked, have you attempted to use a Mac Builder in Unity Cloud Build?

-Same problem with 2021.3.23f1