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] Build IL2CPP error #1977

Closed
romadyd opened this issue Dec 18, 2023 · 3 comments
Closed

[BUG] Build IL2CPP error #1977

romadyd opened this issue Dec 18, 2023 · 3 comments
Labels

Comments

@romadyd
Copy link

romadyd commented Dec 18, 2023

I got an error while building IL2CPP

Description

s: "C:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++" -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -marm -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__ -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 -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 -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 -DGC_NOT_DLL -DIL2CPP_DEFAULT_DATA_DIR_PATH=Data -DNDEBUG -I. "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/external/bdwgc/include" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/libil2cpp/pch" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/libil2cpp" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/external/baselib/Include" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/external/baselib/Platforms/Android/Include" -o Library/Bee/artifacts/Android/x6ly2/tsurfeufe12x.o -fcolor-diagnostics -fdiagnostics-absolute-paths -target armv7a-linux-androideabi22 -fstrict-aliasing -fdiagnostics-format=msvc -c -x c "C:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/enc/compress_fragment.c"
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module 'C:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/enc/compress_fragment.c'.
4.	Running pass 'ARM Instruction Selection' on function '@BrotliCompressFragmentFastImpl15'
 #0 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1c92f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x18eb184
 #1 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x18eab55 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x18ea2ac
 #2 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x18e7ee5 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x9f7514
 #3 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x7caf23 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x23a748
 #4 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x240f53 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x23af72
 #5 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x127d1e1 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x15d8683
 #6 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x2914b13 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1540374
 #7 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6c9da0 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x744473
 #8 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6482 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x4661
 #9 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1354156 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x577d11
#10 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1353bf4 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x692424
#11 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x692809 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6a5786
#12 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x3dcd C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1395
#13 0x00007ff79bd82f85 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x14c8 (C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1c92f85)
#14 0x00007ff79bd82f85 
#15 0x00007ff79bd82f85 (C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1c92f85)
0x00007FF79BD82F85 (0x000001DC26DA9B18 0x00007FF79A11AEF3 0x00000090DB7FB2F0 0x00000090DB7FB2E0)
0x00007FF79B9DB184 (0x00000090DB7FB610 0x0000000100000001 0x000001DC271C0E05 0x0000000000000000)
0x00007FF79B9DAB55 (0x000001DC27990730 0x000001DC26EF1540 0x000001DC26EF1698 0x000001DC27990A20)
0x00007FF79B9DA2AC (0x0000000000000000 0x000001DC00000000 0x000001DC26DA9870 0x0000000000000001)
0x00007FF79B9D7EE5 (0x000001DC25EE8E78 0x000001DC26D89290 0x0000000000000016 0x0000000000000000)
0x00007FF79AAE7514 (0x0000000000000001 0x00000090DB7FBEC0 0x0000000000000001 0x00000090DB7FBDD8)
0x00007FF79A8BAF23 (0x00007FF79F087164 0x00007FF700000000 0x0000009000000000 0x00007FF79B2BD1E9)
0x00007FF79A32A748 (0x000001DC23CCB090 0x00000090DB7FC1B0 0x00000090DB7FC1B0 0x000001DC26D65AC0)
0x00007FF79A330F53 (0x0000001000000000 0x000001DC00000000 0x000001DC26D56348 0x00007FFB09D6BE70)
0x00007FF79A32AF72 (0x00007FF79D4E4FE0 0x0000000000000000 0x0000790900007807 0x00000090DB7FC3D9)
0x00007FF79B36D1E1 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF79B6C8683 (0x00000090DB7FD800 0x00000090DB7FD7F0 0x00000090DB7FD7D0 0x00007FF79A7B798A)
0x00007FF79CA04B13 (0x000001DC23C6FA10 0x0000000D00000001 0x0000000900000000 0x000000020000000A)
0x00007FF79B630374 (0x000001DC23C29100 0x0000042A00000429 0x000014DA0000042B 0x0000169F0000156C)
0x00007FF79A7B9DA0 (0x000001DC23BF4380 0x0000009000000000 0x00000090DB7FE120 0x000001DC23C2A4D0)
0x00007FF79A834473 (0x0000000000000004 0x00007FF79A839949 0x00000090DB7FDCF8 0x00007FF79A8397AB)
0x00007FF79A0F6482 (0x000001DC23BD0000 0x0000000000000002 0x00000000FFFFFFFF 0x00007FFB09D34E76)
0x00007FF79A0F4661 (0x00000090DB7FE2B8 0x000001DC23C77C70 0x00000090DB7FE2B8 0x000001DC23C77C70)
0x00007FF79B444156 (0x000001DC23C77C70 0x000001DC23C77C70 0x000001DC23C77A10 0x00007FF79A6B9620)
0x00007FF79A667D11 (0x000001DC23C698E0 0x0000000089000089 0x0000000000000FD8 0x00007FF79A6B670D)
0x00007FF79B443BF4 (0x000001DC23CD02A4 0x0000000000000010 0x000001DC23CD0CC0 0x00000090DB7FE7E9)
0x00007FF79A782424 (0x000001DC23C31301 0x000001DC23C67480 0x00000000000000A7 0x000001DC23BFCFD0)
0x00007FF79A782809 (0x000001DC23BFFB30 0x000001DC23BFFB30 0x00000090DB7FE8A0 0x00000090DB7FE8A0)
0x00007FF79A795786 (0x00000090DB7FEB30 0x00007FFB00000000 0x00007FFB00200000 0x00000090DB7FE9D0)
0x00007FF79A0F3DCD (0x0000000000000041 0x0000000000000000 0x00007FFB093C8650 0x0000000000000000)
0x00007FF79A0F1395 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF79A0F14C8 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFB093C257D (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x1D bytes(s)
0x00007FFB09D8AA58 (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: armv7a-unknown-linux-android22
Thread model: posix
InstalledDir: C:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin
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, arm64-v8a

Build system

ndk-build

Other build system

No response

minSdkVersion

API 22

Device API level

No response

@romadyd romadyd added the bug label Dec 18, 2023
@DanAlbert
Copy link
Member

Just below where you stopped copying the error message should have said:

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

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\...\AppData\Local\Temp\something.cpp
clang++: note: diagnostic msg: C:\Users\...\AppData\Local\Temp\something.sh
clang++: note: diagnostic msg: 

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

That's the most important part of the error message for us. We can't help without that. Please upload that.

aiui that section is absent when using LTO, but you don't seem to be using LTO. If it for some reason isn't shown, you'll need to create those repro artifacts by hand and upload them so we can investigate. Create the preprocessed source with -E -o preprocessed.cpp.

Closing until we get that.

@DanAlbert DanAlbert closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2023
@pirama-arumuga-nainar
Copy link
Collaborator

Android (7714059, based on r416183c1) clang version 12.0.8 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee)

This is the clang in r23b, not r26.

@romadyd
Copy link
Author

romadyd commented Dec 19, 2023

after removing third party library newtonsoft.json and choose IL2CPP Code Generation to Faster(smaller) builds then my games build successfully.

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

No branches or pull requests

3 participants