Code Monkey home page Code Monkey logo

ollvm-9.0.1's Issues

ollvm 12

Can you update ollvm to 12? I need to be able to use ollvm on NDK 23 witch support flag c++20

集成到ndk中,编译卡死的问题

环境:
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"
    }
}

有跟我一样情况的吗?

Mac下编译遇到如下错误

-- 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".

Unknown command line argument '-sub'

      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'

大佬 为何我编译混淆会出这个错误。去掉后能正常编译

编译报错:fatal error: 'stdbool.h' file not found

文件复制进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

大佬,有没有MAC NDK 18.1.5063045 版本的 OLLVM?

我从各个版本上去编译都是失败,估计是GCC版本太高了,而且有些不兼容。主要是编译 7.0 的ollvm 版本。

https://github.com/amimo/goron.git
https://github.com/heroims/obfuscator

想问下是否有7.0的版本,直接下载使用。
感谢各位大佬!

大佬 为啥我使用 c++ 标准的头文件就会出现报错

`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.cpp
clang++: note: diagnostic msg: C:\Users\ADMINI
1\AppData\Local\Temp\web-df9c37.sh
clang++: note: diagnostic msg:


`
image

错误信息中提到的文件:
web-7a6283.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.