61bcdefg / Hikari-LLVM15

A fork of Hikari Obfuscator [WIP]
605 stars 187 forks source link

failed to compile, Configuring incomplete, errors occurred! #107

Closed minhquangxx closed 4 months ago

minhquangxx commented 4 months ago

i need help, thanks error

  The source directory

    /Users/quangblue/Hikari-LLVM15/llvm/lib/Transforms/Obfuscation

  does not contain a CMakeLists.txt file.
-- Performing Test HAVE_PTHREAD_AFFINITY -- failed to compile
-- Configuring incomplete, errors occurred!
1. git clone --branch apple-arm64e-upstream-next  https://github.com/61bcdefg/Hikari-LLVM15.git
2. cd Hikari-LLVM15
3. mkdir build
4. cd build
5. cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_CREATE_XCODE_TOOLCHAIN=ON -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64" -DLLVM_ENABLE_RUNTIMES="compiler-rt" -DLLVM_INCLUDE_TESTS=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 -DLLVM_INCLUDE_EXAMPLES=OFF ../llvm
image
61bcdefg commented 4 months ago
  1. git clone --branch apple-arm64e-upstream-next https://github.com/61bcdefg/Hikari-LLVM15.git

git clone --recursive --branch apple-arm64e-upstream-next https://github.com/61bcdefg/Hikari-LLVM15.git

minhquangxx commented 4 months ago
  1. git clone --branch apple-arm64e-upstream-next https://github.com/61bcdefg/Hikari-LLVM15.git

git clone --recursive --branch apple-arm64e-upstream-next https://github.com/61bcdefg/Hikari-LLVM15.git

i have new problem after run sudo ninja install-xcode-toolchain error Undefined symbols for architecture arm64: "llvm::createObfuscationLegacyPass()", referenced from: __GLOBAL__sub_I_bugpoint.cpp in bugpoint.cpp.o ld: symbol(s) not found for architecture arm64

image
61bcdefg commented 4 months ago

https://github.com/61bcdefg/Hikari-LLVM15/commit/debec9ae4b5f49ed65f2f4923da5d7d148720223

minhquangxx commented 4 months ago

thanks <3

minhquangxx commented 4 months ago

Is this an error? it has been standing here for more than 2 hours, i use macbook m2 pro and xcode 15.2

image
minhquangxx commented 4 months ago

debec9a

new error bro

image
61bcdefg commented 4 months ago

This error has nothing to do with this project and is also present when building Apple's original source. So we cannot build compiler-rt, instead, copy the libraries from XcodeDefault.xctoolchain.