Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]Building Library\Bee\artifacts\Android\d8kzr\d29di98gygw8.o failed #2056

Closed
ljx646635337 opened this issue Aug 15, 2024 · 4 comments
Closed

Comments

@ljx646635337
Copy link

ljx646635337 commented Aug 15, 2024

Description

So,When I use Unity to build an APK, selecting "IL2CPP" results in the following error. However, choosing "Mono" allows the build to complete successfully. On another computer, with the same content, it is possible to build with "IL2CPP" without issues.

Error Message:
Build completed with a result of 'Failed' in 30 seconds (29827 ms)
Building Library\Bee\artifacts\Android\d8kzr\d29di98gygw8.o failed with output:
PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: "C:/Program Files/Unity/Hub/Editor/2022.3.33f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++" -march=armv8-a -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -faddrsig -mllvm -hoist-common-insts=1 -DANDROID -DHAVE_INTTYPES_H -no-canonical-prefixes -funwind-tables -fstack-protector -fomit-frame-pointer -std=c++11 -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -g -Os -fPIC -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DTARGET_ARM64 -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DHAVE_BDWGC_GC -DNDEBUG -I. -IC:/Work/Fish/fish-client/Library/Bee/artifacts/Android/il2cppOutput/cpp "-IC:/Program Files/Unity/Hub/Editor/2022.3.33f1/Editor/Data/il2cpp/libil2cpp/pch" "-IC:/Program Files/Unity/Hub/Editor/2022.3.33f1/Editor/Data/il2cpp/libil2cpp" "-IC:/Program Files/Unity/Hub/Editor/2022.3.33f1/Editor/Data/il2cpp/external/baselib/Include" "-IC:/Program Files/Unity/Hub/Editor/2022.3.33f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include" "-IC:/Program Files/Unity/Hub/Editor/2022.3.33f1/Editor/Data/il2cpp/external/baselib/Platforms/Android/Include" -o Library/Bee/artifacts/Android/d8kzr/d29di98gygw8.o -fcolor-diagnostics -fdiagnostics-absolute-paths -target aarch64-linux-android22 -fstrict-aliasing -fdiagnostics-format=msvc -c -x c++ C:/Work/Fish/fish-client/Library/Bee/artifacts/Android/il2cppOutput/cpp/Generics__72.cpp
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module 'C:/Work/Fish/fish-client/Library/Bee/artifacts/Android/il2cppOutput/cpp/Generics__72.cpp'.
4.	Running pass 'AArch64 Instruction Selection' on function '@List_1_RemoveAll_m073CA1AE6DA8ECC51EE6AA93670A047EC650BDD2_gshared'
 #0 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1c92f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x18eb184
 #1 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x18eab55 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x18ea2ac
 #2 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x18e7ee5 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x7caf23
 #3 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x23a748 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x240f53
 #4 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x23af72 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x127d1e1
 #5 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x15d8683 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x2914b13
 #6 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1540374 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6c9da0
 #7 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x744473 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6482
 #8 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x4661 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1354156
 #9 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x577d11 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1353bf4
#10 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x692424 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x692809
#11 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6a5786 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x3dcd
#12 0x00007ff7b3a42f85 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1395 C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x14c8
#13 0x00007ff7b3a42f85 (C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1c92f85)
#14 0x00007ff7b369b184 (C:\Program Files\Unity\Hub\Editor\2022.3.33f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x18eb184)
0x00007FF7B3A42F85 (0x000001DE6858A0B8 0x0000000000000001 0x000000114A7FB1B0 0x000000114A7FB1A0)
0x00007FF7B369B184 (0x000000114A7FB4D0 0x0000000100000001 0x0000000000000005 0x0000000000000000)
0x00007FF7B369AB55 (0x000001DE69625DE0 0x00000000B5CD4970 0x0000000000000000 0x000001DE69623220)
0x00007FF7B369A2AC (0x000001DE68A1FAF0 0x0000000000000000 0x0000000000000010 0x00007FFE3C8D1966)
0x00007FF7B3697EE5 (0x0000000000000000 0x000000114A7FBD50 0x0000000000000000 0x000000114A7FBC68)
0x00007FF7B257AF23 (0x00007FF7B6D4B7B4 0x00007FF700000000 0x0000001100000000 0x00007FF7B2F7D1E9)
0x00007FF7B1FEA748 (0x000001DE677C9630 0x000000114A7FC040 0x000000114A7FC040 0x000001DE638DE330)
0x00007FF7B1FF0F53 (0x0000001000000000 0x000001DE00000000 0x000001DE671984D8 0x00007FFE3F36C350)
0x00007FF7B1FEAF72 (0x000000114A7FC1C0 0x0000001100000000 0x0000000000000000 0x00007FF7B3043548)
0x00007FF7B302D1E1 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF7B3388683 (0x000000114A7FD690 0x000000114A7FD680 0x000000114A7FD660 0x00007FF7B247798A)
0x00007FF7B46C4B13 (0x000001DE61678ED0 0x0000000800000003 0x0000000900000000 0x000000020000000A)
0x00007FF7B32F0374 (0x000001DE616789D0 0x0000042A00000429 0x000014DA0000042B 0x0000169F0000156C)
0x00007FF7B2479DA0 (0x000001DE61667940 0x0000001100000000 0x000000114A7FDFB0 0x000001DE6162C410)
0x00007FF7B24F4473 (0x0000000000000004 0x00007FF7B24F9949 0x000000114A7FDB88 0x00007FF7B24F97AB)
0x00007FF7B1DB6482 (0x000001DE616D0000 0x0000000000000000 0x00000000FFFFFFFF 0x00007FFE3F334DF6)
0x00007FF7B1DB4661 (0x000000114A7FE148 0x000001DE6166DBE0 0x000000114A7FE148 0x000001DE6166DBE0)
0x00007FF7B3104156 (0x000001DE6166DBE0 0x000001DE6166DBE0 0x000001DE6166E650 0x00007FF7B2379620)
0x00007FF7B2327D11 (0x000001DE615D0000 0x0000001150000050 0x000001DE6166F500 0x000001DE6166F500)
0x00007FF7B3103BF4 (0x000001DE616D02A4 0x0000000000000010 0x000001DE616D0CC0 0x000000114A7FE679)
0x00007FF7B2442424 (0x000001DE616307D1 0x000001DE6166E8B0 0x0000000000000083 0x000001DE615E0B80)
0x00007FF7B2442809 (0x000001DE616018F0 0x000001DE616018F0 0x000000114A7FE730 0x000000114A7FE730)
0x00007FF7B2455786 (0x000000114A7FE9C0 0x00007FFE00000000 0x00007FFE00200000 0x000000114A7FE860)
0x00007FF7B1DB3DCD (0x0000000000000040 0x0000000000000000 0x00007FFE3EE28650 0x0000000000000000)
0x00007FF7B1DB1395 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF7B1DB14C8 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFE3EE2257D (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x1D bytes(s)
0x00007FFE3F38AF28 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x28 bytes(s)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (7714059, based on r416183c1) clang version 12.0.8 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee)
Target: aarch64-unknown-linux-android22
Thread model: posix
InstalledDir: C:/Program Files/Unity/Hub/Editor/2022.3.33f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin
clang++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: C:\Users\ljx\AppData\Local\Temp\Generics__72-5db573.cpp
clang++: note: diagnostic msg: C:\Users\ljx\AppData\Local\Temp\Generics__72-5db573.sh
clang++: note: diagnostic msg: 

********************

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Affected versions

r26

Canary version

No response

Host OS

Windows

Host OS version

Windows 11

Affected ABIs

armeabi-v7a

Build system

ndk-build

Other build system

No response

minSdkVersion

6.0(API level23)

Device API level

No response

@DanAlbert
Copy link
Member

The error message says:

********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: C:\Users\ljx\AppData\Local\Temp\Generics__72-5db573.cpp
clang++: note: diagnostic msg: C:\Users\ljx\AppData\Local\Temp\Generics__72-5db573.sh
clang++: note: diagnostic msg: 

********************

Is that attached somewhere here and I'm just overlooking it? There's almost never anything we can do to help without that.

@DanAlbert
Copy link
Member

Will reopen if we get the data we need.

@DanAlbert DanAlbert closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
@PowZone
Copy link

PowZone commented Sep 12, 2024

I have a similar error on Bee\artifacts: all logs in attach.
UnityError_NDK_Bee.zip

Same problem with Unity 2022.3.38f1 and 46f1.
Even with new clean installs and even cleaning the library folder of the project :/

@DanAlbert
Copy link
Member

You're using NDK r23, which hasn't been supported in years. Try updating? r23 is sufficiently old that I'm not having any luck getting the repro case to work with r27 (those test cases always include all the low-level compiler flags, which are not a stable interface so it always takes some massaging to get them to work, and this is apparently too far gone), so I can't prove it myself, but the whole idea of shipping new NDKs is that they've got fixes for bugs in old versions of Clang :)

If it does still crash with r27, please upload that repro case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants