open-obfuscator / o-mvll

:electron: O-MVLL is a LLVM-based obfuscator for native code (Android & iOS)
https://obfuscator.re/omvll
Apache License 2.0
574 stars 62 forks source link

Can't build in Release mode #43

Open rjukankukan opened 1 month ago

rjukankukan commented 1 month ago

O-MVLL ver: omvll_ndk_r25.tar_2024-04-18T14_54_39.gz

Steps how to reproduce:

  1. Create a test project
  2. Write any code (prinf("Hello World!\n") is enough)
  3. Use sample-omvll-config.py config
  4. Set CMake profile to Release
  5. Build
  6. Profit??
[36/36] Linking CXX shared library ../arm64-v8a.so
FAILED: ../arm64-v8a.so
: && /home/ryuu/android/cmake/3.22.1/bin/cmake -E time /home/ryuu/android/ndk/25.0.8775105//toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android23 -fPIC -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -frtti -stdlib=libc++ -Wno-deprecated -fvisibility=hidden -Ofast -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fno-unroll-loops -flto=thin -fno-unroll-loops -Xclang -fmerge-functions -fpass-plugin=/mnt/c/Users/ryuu/CLionProjects/untitled8/omvll_ndk_r25c.so  -O3 -DNDEBUG  -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--gc-sections -Qunused-arguments -Wl,--no-undefined -ffixed-x18 --no-undefined -s -shared -Wl,-soname,arm64-v8a.so -o ../arm64-v8a.so CMakeFiles/redacted.dir/src/main.cpp.o *redacted libraries*  -landroid  -lGLESv3  -lEGL  -llog   -static-libstdc++ -latomic -lm && cd /mnt/c/Users/ryuu/CLionProjects/untitled8/cmake-build-release && /home/ryuu/android/ndk/25.0.8775105/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip --discard-all --discard-locals --strip-all --strip-unneeded /mnt/c/Users/ryuu/CLionProjects/untitled8/arm64-v8a.so
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/dependencies/imgui/imgui_draw.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/src/sdk/sdk.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/src/render/render.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/dependencies/imgui/imgui.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/dependencies/imgui/imgui.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/dependencies/imgui/imgui_draw.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/dependencies/imgui/imgui_draw.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/src/render/backends/imgui_impl_opengl3.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/src/render/render.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/dependencies/imgui/imgui_demo.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/src/sdk/sdk.cpp.o
ld: error: ignoring debug info with an invalid version (0) in CMakeFiles/redacted.dir/src/main.cpp.o
ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Elapsed time: 0 s. (time), 0.000907 s. (clock)
ninja: build stopped: subcommand failed.
marcobrador commented 1 month ago

Hi @rjukankukan ,

Thank for reporting this. We couldn't work on this yet, but will follow up as soon as we can (hopefully this week, latest the next one).

BR, Marc