DreamSoule / ollvm17

Obfuscation LLVM 17
337 stars 54 forks source link

Doesn't work with NDK 26 #5

Open ghost opened 1 year ago

ghost commented 1 year ago

I manually implemented it on NDK 26 source from https://android.googlesource.com/toolchain/llvm_android/ and build using python toolchain/llvm_android/build.py --no-build linux. When trying to compile my project, it crashes. See log below

heroims's Ollvm 14 for NDK 25.2 worked perfectly https://github.com/heroims/obfuscator

[armeabi-v7a] Compile++ arm  : ab <= dobby.cpp
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: D:/AndroidSDK/ndk/26.0.10792818/build/../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -MMD -MP -MF F:\\Mobile-Modding\\ModdingProject\\/obj/local/armeabi-v7a/objs/ab/dobby/source/dobby.o.d -target armv7-none-linux-androideabi22 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes --sysroot D:/AndroidSDK/ndk/26.0.10792818/build/../toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -fpic -O2 -DNDEBUG -IF:/Mobile-Modding/ModdingProject//jni/JNI -IF:/Mobile-Modding/ModdingProject//jni/libzip -IF:/Mobile-Modding/ModdingProject//jni/dobby/include -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/InterceptRouting/Routing/FunctionInlineReplace -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/InterceptRouting/Routing/FunctionInlineHook -IF:/Mobile-Modding/ModdingProject//jni/dobby/source -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/dobby -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/include -IF:/Mobile-Modding/ModdingProject//jni/dobby/xnucxx/xnucxx -IF:/Mobile-Modding/ModdingProject//jni/dobby/external/logging -IF:/Mobile-Modding/ModdingProject//jni/dobby/external/misc-helper -IF:/Mobile-Modding/ModdingProject//jni/dobby/external -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/Backend/UserMode/ -IF:/Mobile-Modding/ModdingProject//jni/dobby/builtin-plugin -IF:/Mobile-Modding/ModdingProject//jni/dobby/builtin-plugin/SymbolResolver -IF:/Mobile-Modding/ModdingProject//jni/Nino/ -IF:/Mobile-Modding/ModdingProject//jni/Includes/ -IF:/Mobile-Modding/ModdingProject//jni/Substrate -IF:/Mobile-Modding/ModdingProject//jni -DANDROID -IF:/Mobile-Modding/ModdingProject//jni/libs/curl/armeabi-v7a/include -IF:/Mobile-Modding/ModdingProject//jni/libs/openssl/armeabi-v7a/include -IF:/Mobile-Modding/ModdingProject//jni/libs/openssl/armeabi-v7a/include -w -std=c17 -fexceptions -ffunction-sections -fdata-sections -fvisibility-inlines-hidden -fvisibility=hidden -frtti -fpermissive -fms-extensions -mllvm -sub -mllvm -fla -mllvm -split -mllvm -bcf -mllvm -sobf -Wformat -Werror=format-security -std=c++17 -w -fexceptions -ffunction-sections -fdata-sections -fvisibility-inlines-hidden -fvisibility=hidden -frtti -fpermissive -fms-extensions -frtti -fexceptions -c F:/Mobile-Modding/ModdingProject//jni/dobby/source/dobby.cpp -o F:\\Mobile-Modding\\ModdingProject\\/obj/local/armeabi-v7a/objs/ab/dobby/source/dobby.o
1.      <eof> parser at end of file
2.      Optimizer
Exception Code: 0x80000003
 #0 0x00007ff7296efebe (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x391febe)
 #1 0x00007ff7296ef00c (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x391f00c)
 #2 0x00007ff7285d0881 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2800881)
 #3 0x00007ff726951791 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb81791)
 #4 0x00007ff725e91221 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc1221)
 #5 0x00007ff7269555c4 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb855c4)
 #6 0x00007ff725e91021 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc1021)
 #7 0x00007ff726950501 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb80501)
 #8 0x00007ff72720d34a (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x143d34a)
 #9 0x00007ff727206511 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1436511)
#10 0x00007ff7275d24b8 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x18024b8)
#11 0x00007ff728e0fe6b (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x303fe6b)
#12 0x00007ff727535184 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1765184)
#13 0x00007ff7264ca7a4 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6fa7a4)
#14 0x00007ff72654fccf (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x77fccf)
#15 0x00007ff725dd8941 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x8941)
#16 0x00007ff725dd5432 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x5432)
#17 0x00007ff7272fadd6 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x152add6)
#18 0x00007ff72631d31d (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x54d31d)
#19 0x00007ff7272fa711 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x152a711)
#20 0x00007ff7264883b6 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6b83b6)
#21 0x00007ff72648862e (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6b862e)
#22 0x00007ff7264a2c9b (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6d2c9b)
#23 0x00007ff725dd46be (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x46be)
#24 0x00007ff725dd1395 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1395)
#25 0x00007ff725dd14c8 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14c8)
#26 0x00007ffd55d1257d (C:\Windows\System32\KERNEL32.DLL+0x1257d)
#27 0x00007ffd56e8aa78 (C:\Windows\SYSTEM32\ntdll.dll+0x5aa78)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (dev, based on r487747c) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)
Target: armv7-none-linux-android22
Thread model: posix
InstalledDir: D:/AndroidSDK/ndk/26.0.10792818/build/../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/xxx/AppData/Local/Temp/dobby-42e6bb.cpp
clang++: note: diagnostic msg: C:/Users/xxx/AppData/Local/Temp/dobby-42e6bb.sh
clang++: note: diagnostic msg:

********************
[Soule] registerPipelineStartEPCallback
[Soule] run.PipelineStartEPCallback
[Soule] run.StringEncryptionPass
make: *** [D:/AndroidSDK/ndk/26.0.10792818/build/../build/core/build-binary.mk:415: F:\Mobile-Modding\ModdingProject\/obj/local/armeabi-v7a/objs/ab/dobby/source/dobby.o] Error 1
make: *** Waiting for unfinished jobs....
[armeabi-v7a] Compile++ arm  : ab <= InterceptEntry.cpp
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: D:/AndroidSDK/ndk/26.0.10792818/build/../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -MMD -MP -MF F:\\Mobile-Modding\\ModdingProject\\/obj/local/armeabi-v7a/objs/ab/dobby/source/InterceptEntry.o.d -target armv7-none-linux-androideabi22 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes --sysroot D:/AndroidSDK/ndk/26.0.10792818/build/../toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -fpic -O2 -DNDEBUG -IF:/Mobile-Modding/ModdingProject//jni/JNI -IF:/Mobile-Modding/ModdingProject//jni/libzip -IF:/Mobile-Modding/ModdingProject//jni/dobby/include -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/InterceptRouting/Routing/FunctionInlineReplace -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/InterceptRouting/Routing/FunctionInlineHook -IF:/Mobile-Modding/ModdingProject//jni/dobby/source -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/dobby -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/include -IF:/Mobile-Modding/ModdingProject//jni/dobby/xnucxx/xnucxx -IF:/Mobile-Modding/ModdingProject//jni/dobby/external/logging -IF:/Mobile-Modding/ModdingProject//jni/dobby/external/misc-helper -IF:/Mobile-Modding/ModdingProject//jni/dobby/external -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/Backend/UserMode/ -IF:/Mobile-Modding/ModdingProject//jni/dobby/builtin-plugin -IF:/Mobile-Modding/ModdingProject//jni/dobby/builtin-plugin/SymbolResolver -IF:/Mobile-Modding/ModdingProject//jni/Nino/ -IF:/Mobile-Modding/ModdingProject//jni/Includes/ -IF:/Mobile-Modding/ModdingProject//jni/Substrate -IF:/Mobile-Modding/ModdingProject//jni -DANDROID -IF:/Mobile-Modding/ModdingProject//jni/libs/curl/armeabi-v7a/include -IF:/Mobile-Modding/ModdingProject//jni/libs/openssl/armeabi-v7a/include -IF:/Mobile-Modding/ModdingProject//jni/libs/openssl/armeabi-v7a/include -w -std=c17 -fexceptions -ffunction-sections -fdata-sections -fvisibility-inlines-hidden -fvisibility=hidden -frtti -fpermissive -fms-extensions -mllvm -sub -mllvm -fla -mllvm -split -mllvm -bcf -mllvm -sobf -Wformat -Werror=format-security -std=c++17 -w -fexceptions -ffunction-sections -fdata-sections -fvisibility-inlines-hidden -fvisibility=hidden -frtti -fpermissive -fms-extensions -frtti -fexceptions -c F:/Mobile-Modding/ModdingProject//jni/dobby/source/InterceptEntry.cpp -o F:\\Mobile-Modding\\ModdingProject\\/obj/local/armeabi-v7a/objs/ab/dobby/source/InterceptEntry.o
1.      <eof> parser at end of file
2.      Optimizer
Exception Code: 0x80000003
 #0 0x00007ff7296efebe (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x391febe)
 #1 0x00007ff7296ef00c (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x391f00c)
 #2 0x00007ff7285d0881 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2800881)
 #3 0x00007ff726951791 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb81791)
 #4 0x00007ff725e91221 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc1221)
 #5 0x00007ff7269555c4 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb855c4)
 #6 0x00007ff725e91021 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc1021)
 #7 0x00007ff726950501 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb80501)
 #8 0x00007ff72720d34a (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x143d34a)
 #9 0x00007ff727206511 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1436511)
#10 0x00007ff7275d24b8 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x18024b8)
#11 0x00007ff728e0fe6b (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x303fe6b)
#12 0x00007ff727535184 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1765184)
#13 0x00007ff7264ca7a4 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6fa7a4)
#14 0x00007ff72654fccf (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x77fccf)
#15 0x00007ff725dd8941 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x8941)
#16 0x00007ff725dd5432 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x5432)
#17 0x00007ff7272fadd6 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x152add6)
#18 0x00007ff72631d31d (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x54d31d)
#19 0x00007ff7272fa711 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x152a711)
#20 0x00007ff7264883b6 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6b83b6)
#21 0x00007ff72648862e (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6b862e)
#22 0x00007ff7264a2c9b (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6d2c9b)
#23 0x00007ff725dd46be (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x46be)
#24 0x00007ff725dd1395 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1395)
#25 0x00007ff725dd14c8 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14c8)
#26 0x00007ffd55d1257d (C:\Windows\System32\KERNEL32.DLL+0x1257d)
#27 0x00007ffd56e8aa78 (C:\Windows\SYSTEM32\ntdll.dll+0x5aa78)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (dev, based on r487747c) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)
Target: armv7-none-linux-android22
Thread model: posix
InstalledDir: D:/AndroidSDK/ndk/26.0.10792818/build/../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/xxx/AppData/Local/Temp/InterceptEntry-0cac2f.cpp
clang++: note: diagnostic msg: C:/Users/xxx/AppData/Local/Temp/InterceptEntry-0cac2f.sh
clang++: note: diagnostic msg:

********************
[Soule] registerPipelineStartEPCallback
[Soule] run.PipelineStartEPCallback
[Soule] run.StringEncryptionPass
make: *** [D:/AndroidSDK/ndk/26.0.10792818/build/../build/core/build-binary.mk:415: F:\Mobile-Modding\ModdingProject\/obj/local/armeabi-v7a/objs/ab/dobby/source/InterceptEntry.o] Error 1
[armeabi-v7a] Compile++ arm  : ab <= Interceptor.cpp
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: D:/AndroidSDK/ndk/26.0.10792818/build/../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -MMD -MP -MF F:\\Mobile-Modding\\ModdingProject\\/obj/local/armeabi-v7a/objs/ab/dobby/source/Interceptor.o.d -target armv7-none-linux-androideabi22 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes --sysroot D:/AndroidSDK/ndk/26.0.10792818/build/../toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -fpic -O2 -DNDEBUG -IF:/Mobile-Modding/ModdingProject//jni/JNI -IF:/Mobile-Modding/ModdingProject//jni/libzip -IF:/Mobile-Modding/ModdingProject//jni/dobby/include -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/InterceptRouting/Routing/FunctionInlineReplace -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/InterceptRouting/Routing/FunctionInlineHook -IF:/Mobile-Modding/ModdingProject//jni/dobby/source -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/dobby -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/include -IF:/Mobile-Modding/ModdingProject//jni/dobby/xnucxx/xnucxx -IF:/Mobile-Modding/ModdingProject//jni/dobby/external/logging -IF:/Mobile-Modding/ModdingProject//jni/dobby/external/misc-helper -IF:/Mobile-Modding/ModdingProject//jni/dobby/external -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/Backend/UserMode/ -IF:/Mobile-Modding/ModdingProject//jni/dobby/builtin-plugin -IF:/Mobile-Modding/ModdingProject//jni/dobby/builtin-plugin/SymbolResolver -IF:/Mobile-Modding/ModdingProject//jni/Nino/ -IF:/Mobile-Modding/ModdingProject//jni/Includes/ -IF:/Mobile-Modding/ModdingProject//jni/Substrate -IF:/Mobile-Modding/ModdingProject//jni -DANDROID -IF:/Mobile-Modding/ModdingProject//jni/libs/curl/armeabi-v7a/include -IF:/Mobile-Modding/ModdingProject//jni/libs/openssl/armeabi-v7a/include -IF:/Mobile-Modding/ModdingProject//jni/libs/openssl/armeabi-v7a/include -w -std=c17 -fexceptions -ffunction-sections -fdata-sections -fvisibility-inlines-hidden -fvisibility=hidden -frtti -fpermissive -fms-extensions -mllvm -sub -mllvm -fla -mllvm -split -mllvm -bcf -mllvm -sobf -Wformat -Werror=format-security -std=c++17 -w -fexceptions -ffunction-sections -fdata-sections -fvisibility-inlines-hidden -fvisibility=hidden -frtti -fpermissive -fms-extensions -frtti -fexceptions -c F:/Mobile-Modding/ModdingProject//jni/dobby/source/Interceptor.cpp -o F:\\Mobile-Modding\\ModdingProject\\/obj/local/armeabi-v7a/objs/ab/dobby/source/Interceptor.o
1.      <eof> parser at end of file
2.      Optimizer
Exception Code: 0x80000003
 #0 0x00007ff7296efebe (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x391febe)
 #1 0x00007ff7296ef00c (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x391f00c)
 #2 0x00007ff7285d0881 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2800881)
 #3 0x00007ff726951791 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb81791)
 #4 0x00007ff725e91221 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc1221)
 #5 0x00007ff7269555c4 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb855c4)
 #6 0x00007ff725e91021 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc1021)
 #7 0x00007ff726950501 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb80501)
 #8 0x00007ff72720d34a (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x143d34a)
 #9 0x00007ff727206511 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1436511)
#10 0x00007ff7275d24b8 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x18024b8)
#11 0x00007ff728e0fe6b (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x303fe6b)
#12 0x00007ff727535184 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1765184)
#13 0x00007ff7264ca7a4 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6fa7a4)
#14 0x00007ff72654fccf (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x77fccf)
#15 0x00007ff725dd8941 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x8941)
#16 0x00007ff725dd5432 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x5432)
#17 0x00007ff7272fadd6 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x152add6)
#18 0x00007ff72631d31d (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x54d31d)
#19 0x00007ff7272fa711 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x152a711)
#20 0x00007ff7264883b6 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6b83b6)
#21 0x00007ff72648862e (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6b862e)
#22 0x00007ff7264a2c9b (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6d2c9b)
#23 0x00007ff725dd46be (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x46be)
#24 0x00007ff725dd1395 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1395)
#25 0x00007ff725dd14c8 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14c8)
#26 0x00007ffd55d1257d (C:\Windows\System32\KERNEL32.DLL+0x1257d)
#27 0x00007ffd56e8aa78 (C:\Windows\SYSTEM32\ntdll.dll+0x5aa78)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (dev, based on r487747c) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)
Target: armv7-none-linux-android22
Thread model: posix
InstalledDir: D:/AndroidSDK/ndk/26.0.10792818/build/../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/xxx/AppData/Local/Temp/Interceptor-ddd44f.cpp
clang++: note: diagnostic msg: C:/Users/xxx/AppData/Local/Temp/Interceptor-ddd44f.sh
clang++: note: diagnostic msg:

********************
[Soule] registerPipelineStartEPCallback
[Soule] run.PipelineStartEPCallback
[Soule] run.StringEncryptionPass
make: *** [D:/AndroidSDK/ndk/26.0.10792818/build/../build/core/build-binary.mk:415: F:\Mobile-Modding\ModdingProject\/obj/local/armeabi-v7a/objs/ab/dobby/source/Interceptor.o] Error 1
[armeabi-v7a] Compile++ arm  : ab <= hook.cpp
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: D:/AndroidSDK/ndk/26.0.10792818/build/../toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -MMD -MP -MF F:\\Mobile-Modding\\ModdingProject\\/obj/local/armeabi-v7a/objs/ab/hook.o.d -target armv7-none-linux-androideabi22 -fdata-sections -ffunction-sections -fstack-protector-strong -funwind-tables -no-canonical-prefixes --sysroot D:/AndroidSDK/ndk/26.0.10792818/build/../toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -fpic -O2 -DNDEBUG -IF:/Mobile-Modding/ModdingProject//jni/JNI -IF:/Mobile-Modding/ModdingProject//jni/libzip -IF:/Mobile-Modding/ModdingProject//jni/dobby/include -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/InterceptRouting/Routing/FunctionInlineReplace -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/InterceptRouting/Routing/FunctionInlineHook -IF:/Mobile-Modding/ModdingProject//jni/dobby/source -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/dobby -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/include -IF:/Mobile-Modding/ModdingProject//jni/dobby/xnucxx/xnucxx -IF:/Mobile-Modding/ModdingProject//jni/dobby/external/logging -IF:/Mobile-Modding/ModdingProject//jni/dobby/external/misc-helper -IF:/Mobile-Modding/ModdingProject//jni/dobby/external -IF:/Mobile-Modding/ModdingProject//jni/dobby/source/Backend/UserMode/ -IF:/Mobile-Modding/ModdingProject//jni/dobby/builtin-plugin -IF:/Mobile-Modding/ModdingProject//jni/dobby/builtin-plugin/SymbolResolver -IF:/Mobile-Modding/ModdingProject//jni/Nino/ -IF:/Mobile-Modding/ModdingProject//jni/Includes/ -IF:/Mobile-Modding/ModdingProject//jni/Substrate -IF:/Mobile-Modding/ModdingProject//jni -DANDROID -IF:/Mobile-Modding/ModdingProject//jni/libs/curl/armeabi-v7a/include -IF:/Mobile-Modding/ModdingProject//jni/libs/openssl/armeabi-v7a/include -IF:/Mobile-Modding/ModdingProject//jni/libs/openssl/armeabi-v7a/include -w -std=c17 -fexceptions -ffunction-sections -fdata-sections -fvisibility-inlines-hidden -fvisibility=hidden -frtti -fpermissive -fms-extensions -mllvm -sub -mllvm -fla -mllvm -split -mllvm -bcf -mllvm -sobf -Wformat -Werror=format-security -std=c++17 -w -fexceptions -ffunction-sections -fdata-sections -fvisibility-inlines-hidden -fvisibility=hidden -frtti -fpermissive -fms-extensions -frtti -fexceptions -c F:/Mobile-Modding/ModdingProject//jni/hook.cpp -o F:\\Mobile-Modding\\ModdingProject\\/obj/local/armeabi-v7a/objs/ab/hook.o
1.      <eof> parser at end of file
2.      Optimizer
Exception Code: 0x80000003
 #0 0x00007ff7296efebe (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x391febe)
 #1 0x00007ff7296ef00c (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x391f00c)
 #2 0x00007ff7285d0881 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2800881)
 #3 0x00007ff726951791 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb81791)
 #4 0x00007ff725e91221 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc1221)
 #5 0x00007ff7269555c4 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb855c4)
 #6 0x00007ff725e91021 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc1021)
 #7 0x00007ff726950501 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xb80501)
 #8 0x00007ff72720d34a (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x143d34a)
 #9 0x00007ff727206511 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1436511)
#10 0x00007ff7275d24b8 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x18024b8)
#11 0x00007ff728e0fe6b (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x303fe6b)
#12 0x00007ff727535184 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1765184)
#13 0x00007ff7264ca7a4 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6fa7a4)
#14 0x00007ff72654fccf (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x77fccf)
#15 0x00007ff725dd8941 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x8941)
#16 0x00007ff725dd5432 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x5432)
#17 0x00007ff7272fadd6 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x152add6)
#18 0x00007ff72631d31d (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x54d31d)
#19 0x00007ff7272fa711 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x152a711)
#20 0x00007ff7264883b6 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6b83b6)
#21 0x00007ff72648862e (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6b862e)
#22 0x00007ff7264a2c9b (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6d2c9b)
#23 0x00007ff725dd46be (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x46be)
#24 0x00007ff725dd1395 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1395)
#25 0x00007ff725dd14c8 (D:\AndroidSDK\ndk\26.0.10792818\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14c8)
#26 0x00007ffd55d1257d (C:\Windows\System32\KERNEL32.DLL+0x1257d)
#27 0x00007ffd56e8aa78 (C:\Windows\SYSTEM32\ntdll.dll+0x5aa78)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (dev, based on r487747c) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362)
Target: armv7-none-linux-android22
Thread model: posix
InstalledDir: D:/AndroidSDK/ndk/26.0.10792818/build/../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/xxx/AppData/Local/Temp/hook-00582e.cpp
clang++: note: diagnostic msg: C:/Users/xxx/AppData/Local/Temp/hook-00582e.sh
clang++: note: diagnostic msg:

********************
[Soule] registerPipelineStartEPCallback
[Soule] run.PipelineStartEPCallback
[Soule] run.StringEncryptionPass
make: *** [D:/AndroidSDK/ndk/26.0.10792818/build/../build/core/build-binary.mk:415: F:\Mobile-Modding\ModdingProject\/obj/local/armeabi-v7a/objs/ab/hook.o] Error 1
DreamSoule commented 1 year ago

see this https://github.com/DreamSoule/ollvm17/issues/3#issuecomment-1761138862

ghost commented 1 year ago

see this #3 (comment)

Removing FLA works. but consider fixing it because it worked fine om LLVM 14, and the build speed is fine for me, I can wait for few extra minutes. The more protections, the better.