o2e / ollvm-9.0.1 Goto Github PK
View Code? Open in Web Editor NEWOLLVM-9.0.1-NDK-21.3.6528147(ndk-r21d)
License: Other
OLLVM-9.0.1-NDK-21.3.6528147(ndk-r21d)
License: Other
Can you update ollvm to 12? I need to be able to use ollvm on NDK 23 witch support flag c++20
环境:
Ubuntu 18.04.6 LTS
cmake : 3.10.2
ndk : 21.1.6352462
ollvm : obfuscator base on llvm-9.0.1 (https://github.com/heroims/obfuscator 2dec365146e909f6ca45df7c23603d489f0816dd)
编译完ollvm,照你的方法替换文件后,使用Android Studio编译我的项目,一直卡在 buildCMakeRelWithDebInfo,几十分钟都过不去。
我在项目中试过单独给函数加混淆和全部混淆都会卡死在 buildCMakeRelWithDebInfo ,不知道原因
# 单独给函数加标签
__attribute__((annotate(("sub"))))
# 全部混淆
externalNativeBuild {
cmake {
cppFlags "-std=c++11 -mllvm -sub -mllvm -bcf -mllvm -fla -mllvm -sobf -mllvm -seed=0x11223344556677889900aabbccddeeff"
}
}
有跟我一样情况的吗?
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Success
: command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 6:
: command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 8:
: command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 28:
: command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 29:
: command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 40:
: command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 42:
: command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 54:
: command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 65:
: command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 68:
'Users/cys/develop/Android/OLLVM-9.0.1/cmake/config.guess: line 71: syntax error near unexpected token in 'Users/cys/develop/Android/OLLVM-9.0.1/cmake/config.guess: line 71:
case $1 in
CMake Error at cmake/modules/GetHostTriple.cmake:27 (message):
Failed to execute
/Users/cys/develop/Android/OLLVM-9.0.1/cmake/config.guess
Call Stack (most recent call first):
cmake/config-ix.cmake:386 (get_host_triple)
CMakeLists.txt:618 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeOutput.log".
See also "/Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeError.log".
按照你的教程操作完了之后出现错误 显示The C compile
clang (LLVM option parsing): Unknown command line argument '-sub'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean ' -h'?
clang (LLVM option parsing): Unknown command line argument '-sub_loop=3'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean ' --regalloc=3'?
clang (LLVM option parsing): Unknown command line argument '-fla'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean ' -h'?
clang (LLVM option parsing): Unknown command line argument '-split'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean ' --stats'?
clang (LLVM option parsing): Unknown command line argument '-split_num=3'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean ' --stats=3'?
clang (LLVM option parsing): Unknown command line argument '-bcf'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean ' -h'?
clang (LLVM option parsing): Unknown command line argument '-bcf_loop=3'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean ' --icp-lto=3'?
clang (LLVM option parsing): Unknown command line argument '-bcf_prob=40'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean ' --icp-lto=40'?
clang (LLVM option parsing): Unknown command line argument '-sobf'. Try: 'clang (LLVM option parsing) --help'
大佬 为何我编译混淆会出这个错误。去掉后能正常编译
文件复制进ndk目录下之后编译会报stdbool.h找不到
~/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/stdbool.h:28:15: fatal error: 'stdbool.h' file not found
我编译的时候遇到和你一样的问题,添加你修改的文件还是编译不同,我现在急需编译libcurl.a静态库文件,麻烦你能指点下吗?
万分谢谢
我从各个版本上去编译都是失败,估计是GCC版本太高了,而且有些不兼容。主要是编译 7.0 的ollvm 版本。
https://github.com/amimo/goron.git
https://github.com/heroims/obfuscator
想问下是否有7.0的版本,直接下载使用。
感谢各位大佬!
如题!!!谢啦
`clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 9.0.1
Target: aarch64-none-linux-android24
Thread model: posix
InstalledDir: D:\dev\sdk\ndk\2136521.1\TOOLCH1\llvm\prebuilt\WINDOW~1\bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
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\ADMINI1\AppData\Local\Temp\web-df9c37.cpp1\AppData\Local\Temp\web-df9c37.sh
clang++: note: diagnostic msg: C:\Users\ADMINI
clang++: note: diagnostic msg:
错误信息中提到的文件:
web-7a6283.zip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.