Closed ghost closed 2 years ago
I have embeded the pluto obfuscator in NDK 23 successfully in this way: https://bbs.pediy.com/thread-271271.htm
Maybe you can have a try.
Ok, i'll try it out
I got an error after i added obfuscation. What i have missed?
[13/44] Linking CXX executable bin/clang-import-test
FAILED: bin/clang-import-test
: && /home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/bin/clang++ --sysroot=/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -ffile-prefix-map=/home/linux/llvm-toolchain/= -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fexperimental-new-pass-manager -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -fuse-ld=lld -Wl,--hash-style=both -L/home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/lib64 -static-libstdc++ -stdlib=libc++ -fuse-ld=lld -Wl,--color-diagnostics -fexperimental-new-pass-manager -Wl,-O3 -Wl,--gc-sections tools/clang/tools/clang-import-test/CMakeFiles/clang-import-test.dir/clang-import-test.cpp.o -o bin/clang-import-test -Wl,-rpath,"\$ORIGIN/../lib64" lib64/libLLVMCore.a lib64/libLLVMSupport.a -lpthread lib64/libclangAST.a lib64/libclangBasic.a lib64/libclangCodeGen.a lib64/libclangDriver.a lib64/libclangFrontend.a lib64/libclangLex.a lib64/libclangParse.a lib64/libclangSerialization.a lib64/libclangDriver.a lib64/libLLVMOption.a lib64/libclangSema.a lib64/libclangEdit.a lib64/libclangAnalysis.a lib64/libclangASTMatchers.a lib64/libclangAST.a lib64/libclangLex.a lib64/libclangBasic.a lib64/libLLVMCoverage.a lib64/libLLVMLTO.a lib64/libLLVMExtensions.a lib64/libLLVMCodeGen.a lib64/libLLVMPasses.a lib64/libLLVMCoroutines.a lib64/libLLVMipo.a lib64/libLLVMFrontendOpenMP.a lib64/libLLVMBitWriter.a lib64/libLLVMIRReader.a lib64/libLLVMAsmParser.a lib64/libLLVMLinker.a -lLLVMObfuscation lib64/libLLVMInstrumentation.a lib64/libLLVMObjCARCOpts.a lib64/libLLVMVectorize.a lib64/libLLVMHelloNew.a lib64/libLLVMScalarOpts.a lib64/libLLVMAggressiveInstCombine.a lib64/libLLVMInstCombine.a lib64/libLLVMTarget.a lib64/libLLVMTransformUtils.a lib64/libLLVMAnalysis.a lib64/libLLVMObject.a lib64/libLLVMBitReader.a lib64/libLLVMMCParser.a lib64/libLLVMMC.a lib64/libLLVMDebugInfoCodeView.a lib64/libLLVMDebugInfoMSF.a lib64/libLLVMTextAPI.a lib64/libLLVMProfileData.a lib64/libLLVMCore.a lib64/libLLVMBinaryFormat.a lib64/libLLVMRemarks.a lib64/libLLVMBitstreamReader.a lib64/libLLVMSupport.a -lrt -ldl -lpthread -lm /home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot/usr/lib/libz.so lib64/libLLVMDemangle.a && :
ld.lld: error: unable to find library -lLLVMObfuscation
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[14/44] Linking CXX shared library lib64/libLTO.so.12git
FAILED: lib64/libLTO.so.12git
: && /home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/bin/clang++ --sysroot=/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -fPIC -ffile-prefix-map=/home/linux/llvm-toolchain/= -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fexperimental-new-pass-manager -O3 -DNDEBUG -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -fuse-ld=lld -Wl,--hash-style=both -L/home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/lib64 -static-libstdc++ -stdlib=libc++ -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics -fexperimental-new-pass-manager -Wl,-O3 -Wl,--gc-sections -Wl,--version-script,"/home/linux/llvm-toolchain/out/stage1/tools/lto/LTO.exports" -shared -Wl,-soname,libLTO.so.12git -o lib64/libLTO.so.12git tools/lto/CMakeFiles/LTO.dir/LTODisassembler.cpp.o tools/lto/CMakeFiles/LTO.dir/lto.cpp.o -Wl,-rpath,"\$ORIGIN/../lib64" lib64/libLLVMAArch64AsmParser.a lib64/libLLVMX86AsmParser.a lib64/libLLVMAArch64CodeGen.a lib64/libLLVMX86CodeGen.a lib64/libLLVMAArch64Desc.a lib64/libLLVMX86Desc.a lib64/libLLVMAArch64Disassembler.a lib64/libLLVMX86Disassembler.a lib64/libLLVMAArch64Info.a lib64/libLLVMX86Info.a lib64/libLLVMBitReader.a lib64/libLLVMCore.a lib64/libLLVMCodeGen.a lib64/libLLVMLTO.a lib64/libLLVMMC.a lib64/libLLVMMCDisassembler.a lib64/libLLVMSupport.a lib64/libLLVMTarget.a lib64/libLLVMAsmPrinter.a lib64/libLLVMDebugInfoDWARF.a lib64/libLLVMGlobalISel.a lib64/libLLVMSelectionDAG.a lib64/libLLVMCFGuard.a lib64/libLLVMAArch64Desc.a lib64/libLLVMAArch64Info.a lib64/libLLVMAArch64Utils.a lib64/libLLVMCodeGen.a lib64/libLLVMExtensions.a lib64/libLLVMPasses.a lib64/libLLVMTarget.a lib64/libLLVMObjCARCOpts.a lib64/libLLVMCoroutines.a lib64/libLLVMipo.a lib64/libLLVMScalarOpts.a lib64/libLLVMBitWriter.a lib64/libLLVMAggressiveInstCombine.a lib64/libLLVMInstCombine.a lib64/libLLVMLinker.a lib64/libLLVMFrontendOpenMP.a lib64/libLLVMIRReader.a lib64/libLLVMAsmParser.a lib64/libLLVMVectorize.a lib64/libLLVMInstrumentation.a lib64/libLLVMTransformUtils.a lib64/libLLVMAnalysis.a lib64/libLLVMObject.a lib64/libLLVMBitReader.a lib64/libLLVMMCParser.a lib64/libLLVMMC.a lib64/libLLVMDebugInfoCodeView.a lib64/libLLVMDebugInfoMSF.a lib64/libLLVMTextAPI.a lib64/libLLVMProfileData.a -lLLVMObfuscation lib64/libLLVMHelloNew.a lib64/libLLVMCore.a lib64/libLLVMBinaryFormat.a lib64/libLLVMRemarks.a lib64/libLLVMBitstreamReader.a lib64/libLLVMSupport.a -lrt -ldl -lpthread -lm /home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot/usr/lib/libz.so lib64/libLLVMDemangle.a && :
ld.lld: error: unable to find library -lLLVMObfuscation
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[15/44] Linking CXX executable bin/llvm-lto
FAILED: bin/llvm-lto
: && /home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/bin/clang++ --sysroot=/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -ffile-prefix-map=/home/linux/llvm-toolchain/= -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fexperimental-new-pass-manager -O3 -DNDEBUG -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -fuse-ld=lld -Wl,--hash-style=both -L/home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/lib64 -static-libstdc++ -stdlib=libc++ -fuse-ld=lld -Wl,--color-diagnostics -fexperimental-new-pass-manager -Wl,-O3 -Wl,--gc-sections tools/llvm-lto/CMakeFiles/llvm-lto.dir/llvm-lto.cpp.o -o bin/llvm-lto -Wl,-rpath,"\$ORIGIN/../lib64" lib64/libLLVMAArch64AsmParser.a lib64/libLLVMX86AsmParser.a lib64/libLLVMAArch64CodeGen.a lib64/libLLVMX86CodeGen.a lib64/libLLVMAArch64Desc.a lib64/libLLVMX86Desc.a lib64/libLLVMAArch64Info.a lib64/libLLVMX86Info.a lib64/libLLVMBitReader.a lib64/libLLVMBitWriter.a lib64/libLLVMCodeGen.a lib64/libLLVMCore.a lib64/libLLVMIRReader.a lib64/libLLVMLTO.a lib64/libLLVMMC.a lib64/libLLVMObject.a lib64/libLLVMSupport.a lib64/libLLVMTarget.a -lpthread lib64/libLLVMAArch64Utils.a lib64/libLLVMMCDisassembler.a lib64/libLLVMAsmPrinter.a lib64/libLLVMDebugInfoDWARF.a lib64/libLLVMGlobalISel.a lib64/libLLVMSelectionDAG.a lib64/libLLVMCFGuard.a lib64/libLLVMCodeGen.a lib64/libLLVMExtensions.a lib64/libLLVMPasses.a lib64/libLLVMTarget.a lib64/libLLVMObjCARCOpts.a lib64/libLLVMCoroutines.a lib64/libLLVMipo.a lib64/libLLVMBitWriter.a lib64/libLLVMIRReader.a lib64/libLLVMAsmParser.a lib64/libLLVMScalarOpts.a lib64/libLLVMAggressiveInstCombine.a lib64/libLLVMInstCombine.a lib64/libLLVMLinker.a lib64/libLLVMFrontendOpenMP.a lib64/libLLVMVectorize.a lib64/libLLVMInstrumentation.a lib64/libLLVMTransformUtils.a lib64/libLLVMAnalysis.a lib64/libLLVMObject.a lib64/libLLVMBitReader.a lib64/libLLVMMCParser.a lib64/libLLVMMC.a lib64/libLLVMDebugInfoCodeView.a lib64/libLLVMDebugInfoMSF.a lib64/libLLVMTextAPI.a lib64/libLLVMProfileData.a -lLLVMObfuscation lib64/libLLVMHelloNew.a lib64/libLLVMCore.a lib64/libLLVMBinaryFormat.a lib64/libLLVMRemarks.a lib64/libLLVMBitstreamReader.a lib64/libLLVMSupport.a -lrt -ldl -lpthread -lm /home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot/usr/lib/libz.so lib64/libLLVMDemangle.a && :
ld.lld: error: unable to find library -lLLVMObfuscation
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[16/44] Linking CXX shared module lib64/LLVMgold.so
FAILED: lib64/LLVMgold.so
: && /home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/bin/clang++ --sysroot=/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -fPIC -ffile-prefix-map=/home/linux/llvm-toolchain/= -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fexperimental-new-pass-manager -O3 -DNDEBUG -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -fuse-ld=lld -Wl,--hash-style=both -L/home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/lib64 -static-libstdc++ -stdlib=libc++ -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics -Wl,-O3 -Wl,--gc-sections -Wl,--version-script,"/home/linux/llvm-toolchain/out/stage1/tools/gold/LLVMgold.exports" -shared -o lib64/LLVMgold.so tools/gold/CMakeFiles/LLVMgold.dir/gold-plugin.cpp.o -Wl,-rpath,"\$ORIGIN/../lib64" lib64/libLLVMAArch64CodeGen.a lib64/libLLVMAArch64AsmParser.a lib64/libLLVMAArch64Desc.a lib64/libLLVMAArch64Disassembler.a lib64/libLLVMAArch64Info.a lib64/libLLVMAArch64Utils.a lib64/libLLVMX86CodeGen.a lib64/libLLVMX86AsmParser.a lib64/libLLVMX86Desc.a lib64/libLLVMX86Disassembler.a lib64/libLLVMX86Info.a lib64/libLLVMLinker.a lib64/libLLVMLTO.a lib64/libLLVMBitWriter.a lib64/libLLVMipo.a lib64/libLLVMAArch64Desc.a lib64/libLLVMAArch64Info.a lib64/libLLVMAArch64Utils.a lib64/libLLVMAsmPrinter.a lib64/libLLVMDebugInfoDWARF.a lib64/libLLVMGlobalISel.a lib64/libLLVMSelectionDAG.a lib64/libLLVMCFGuard.a lib64/libLLVMMCDisassembler.a lib64/libLLVMCodeGen.a lib64/libLLVMExtensions.a lib64/libLLVMPasses.a lib64/libLLVMTarget.a lib64/libLLVMObjCARCOpts.a lib64/libLLVMCoroutines.a lib64/libLLVMipo.a lib64/libLLVMLinker.a lib64/libLLVMBitWriter.a lib64/libLLVMFrontendOpenMP.a lib64/libLLVMIRReader.a lib64/libLLVMAsmParser.a lib64/libLLVMVectorize.a lib64/libLLVMInstrumentation.a -lLLVMObfuscation lib64/libLLVMScalarOpts.a lib64/libLLVMAggressiveInstCombine.a lib64/libLLVMInstCombine.a lib64/libLLVMTransformUtils.a lib64/libLLVMAnalysis.a lib64/libLLVMProfileData.a lib64/libLLVMObject.a lib64/libLLVMMCParser.a lib64/libLLVMMC.a lib64/libLLVMDebugInfoCodeView.a lib64/libLLVMDebugInfoMSF.a lib64/libLLVMBitReader.a lib64/libLLVMTextAPI.a lib64/libLLVMHelloNew.a lib64/libLLVMCore.a lib64/libLLVMBinaryFormat.a lib64/libLLVMRemarks.a lib64/libLLVMBitstreamReader.a lib64/libLLVMSupport.a -lrt -ldl -lpthread -lm /home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot/usr/lib/libz.so lib64/libLLVMDemangle.a && :
ld.lld: error: unable to find library -lLLVMObfuscation
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[17/44] Linking CXX executable bin/clang-12
FAILED: bin/clang-12
: && /home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/bin/clang++ --sysroot=/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -ffile-prefix-map=/home/linux/llvm-toolchain/= -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fexperimental-new-pass-manager -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -fuse-ld=lld -Wl,--hash-style=both -L/home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/lib64 -static-libstdc++ -stdlib=libc++ -fuse-ld=lld -Wl,--color-diagnostics -fexperimental-new-pass-manager -Wl,--export-dynamic -Wl,-O3 tools/clang/tools/driver/CMakeFiles/clang.dir/driver.cpp.o tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o tools/clang/tools/driver/CMakeFiles/clang.dir/cc1as_main.cpp.o tools/clang/tools/driver/CMakeFiles/clang.dir/cc1gen_reproducer_main.cpp.o -o bin/clang-12 -Wl,-rpath,"\$ORIGIN/../lib64" lib64/libLLVMAArch64CodeGen.a lib64/libLLVMAArch64AsmParser.a lib64/libLLVMAArch64Desc.a lib64/libLLVMAArch64Disassembler.a lib64/libLLVMAArch64Info.a lib64/libLLVMAArch64Utils.a lib64/libLLVMX86CodeGen.a lib64/libLLVMX86AsmParser.a lib64/libLLVMX86Desc.a lib64/libLLVMX86Disassembler.a lib64/libLLVMX86Info.a lib64/libLLVMAnalysis.a lib64/libLLVMCodeGen.a lib64/libLLVMCore.a lib64/libLLVMipo.a lib64/libLLVMAggressiveInstCombine.a lib64/libLLVMInstCombine.a lib64/libLLVMInstrumentation.a lib64/libLLVMMC.a lib64/libLLVMMCParser.a lib64/libLLVMObjCARCOpts.a lib64/libLLVMOption.a lib64/libLLVMScalarOpts.a lib64/libLLVMSupport.a lib64/libLLVMTransformUtils.a lib64/libLLVMVectorize.a -lpthread lib64/libclangBasic.a lib64/libclangCodeGen.a lib64/libclangDriver.a lib64/libclangFrontend.a lib64/libclangFrontendTool.a lib64/libclangSerialization.a lib64/libLLVMAArch64Desc.a lib64/libLLVMAArch64Info.a lib64/libLLVMAArch64Utils.a lib64/libLLVMAsmPrinter.a lib64/libLLVMDebugInfoDWARF.a lib64/libLLVMGlobalISel.a lib64/libLLVMSelectionDAG.a lib64/libLLVMCFGuard.a lib64/libLLVMMCDisassembler.a lib64/libclangCodeGen.a lib64/libLLVMCoverage.a lib64/libLLVMLTO.a lib64/libLLVMCodeGen.a lib64/libLLVMExtensions.a lib64/libLLVMPasses.a lib64/libLLVMObjCARCOpts.a lib64/libLLVMTarget.a lib64/libLLVMCoroutines.a lib64/libLLVMipo.a lib64/libLLVMInstrumentation.a lib64/libLLVMVectorize.a lib64/libLLVMBitWriter.a lib64/libLLVMIRReader.a lib64/libLLVMAsmParser.a lib64/libLLVMLinker.a -lLLVMObfuscation lib64/libLLVMScalarOpts.a lib64/libLLVMAggressiveInstCombine.a lib64/libLLVMInstCombine.a lib64/libLLVMHelloNew.a lib64/libclangRewriteFrontend.a lib64/libclangFrontend.a lib64/libclangDriver.a lib64/libLLVMOption.a lib64/libclangParse.a lib64/libclangSerialization.a lib64/libclangSema.a lib64/libclangAnalysis.a lib64/libclangASTMatchers.a lib64/libclangEdit.a lib64/libclangAST.a lib64/libLLVMFrontendOpenMP.a lib64/libLLVMTransformUtils.a lib64/libLLVMAnalysis.a lib64/libLLVMProfileData.a lib64/libLLVMObject.a lib64/libLLVMMCParser.a lib64/libLLVMBitReader.a lib64/libLLVMTextAPI.a lib64/libclangRewrite.a lib64/libclangLex.a lib64/libclangBasic.a lib64/libLLVMCore.a lib64/libLLVMRemarks.a lib64/libLLVMBitstreamReader.a lib64/libLLVMMC.a lib64/libLLVMBinaryFormat.a lib64/libLLVMDebugInfoCodeView.a lib64/libLLVMDebugInfoMSF.a lib64/libLLVMSupport.a -lrt -ldl -lpthread -lm /home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot/usr/lib/libz.so lib64/libLLVMDemangle.a && :
ld.lld: error: unable to find library -lLLVMObfuscation
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
[18/44] Linking CXX executable bin/clang-scan-deps
FAILED: bin/clang-scan-deps
: && /home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/bin/clang++ --sysroot=/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -ffile-prefix-map=/home/linux/llvm-toolchain/= -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -fexperimental-new-pass-manager -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/lib/gcc/x86_64-linux/4.8.3 -B/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -L/home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/lib64 -fuse-ld=lld -Wl,--hash-style=both -L/home/linux/llvm-toolchain/prebuilts/clang/host/linux-x86/clang-bootstrap/lib64 -static-libstdc++ -stdlib=libc++ -fuse-ld=lld -Wl,--color-diagnostics -fexperimental-new-pass-manager -Wl,-O3 -Wl,--gc-sections tools/clang/tools/clang-scan-deps/CMakeFiles/clang-scan-deps.dir/ClangScanDeps.cpp.o -o bin/clang-scan-deps -Wl,-rpath,"\$ORIGIN/../lib64" lib64/libLLVMCore.a lib64/libLLVMSupport.a -lpthread lib64/libclangAST.a lib64/libclangBasic.a lib64/libclangCodeGen.a lib64/libclangDriver.a lib64/libclangFrontend.a lib64/libclangFrontendTool.a lib64/libclangLex.a lib64/libclangParse.a lib64/libclangSerialization.a lib64/libclangTooling.a lib64/libclangDependencyScanning.a lib64/libclangFrontendTool.a lib64/libclangCodeGen.a lib64/libLLVMCoverage.a lib64/libLLVMLTO.a lib64/libLLVMExtensions.a lib64/libLLVMCodeGen.a lib64/libLLVMPasses.a lib64/libLLVMCoroutines.a lib64/libLLVMipo.a lib64/libLLVMBitWriter.a lib64/libLLVMIRReader.a lib64/libLLVMAsmParser.a lib64/libLLVMLinker.a -lLLVMObfuscation lib64/libLLVMInstrumentation.a lib64/libLLVMObjCARCOpts.a lib64/libLLVMVectorize.a lib64/libLLVMHelloNew.a lib64/libLLVMScalarOpts.a lib64/libLLVMAggressiveInstCombine.a lib64/libLLVMInstCombine.a lib64/libLLVMTarget.a lib64/libclangRewriteFrontend.a lib64/libclangTooling.a lib64/libclangFrontend.a lib64/libclangDriver.a lib64/libclangParse.a lib64/libclangSerialization.a lib64/libclangSema.a lib64/libclangAnalysis.a lib64/libclangEdit.a lib64/libLLVMOption.a lib64/libclangASTMatchers.a lib64/libclangAST.a lib64/libLLVMFrontendOpenMP.a lib64/libLLVMTransformUtils.a lib64/libLLVMAnalysis.a lib64/libLLVMObject.a lib64/libLLVMBitReader.a lib64/libLLVMMCParser.a lib64/libLLVMTextAPI.a lib64/libLLVMProfileData.a lib64/libclangFormat.a lib64/libclangToolingInclusions.a lib64/libclangToolingCore.a lib64/libclangRewrite.a lib64/libclangLex.a lib64/libclangBasic.a lib64/libLLVMCore.a lib64/libLLVMRemarks.a lib64/libLLVMBitstreamReader.a lib64/libLLVMMC.a lib64/libLLVMBinaryFormat.a lib64/libLLVMDebugInfoCodeView.a lib64/libLLVMDebugInfoMSF.a lib64/libLLVMSupport.a -lrt -ldl -lpthread -lm /home/linux/llvm-toolchain/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot/usr/lib/libz.so lib64/libLLVMDemangle.a && :
ld.lld: error: unable to find library -lLLVMObfuscation
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/linux/llvm-toolchain/toolchain/llvm_android/do_build.py", line 768, in <module>
main()
File "/home/linux/llvm-toolchain/toolchain/llvm_android/do_build.py", line 678, in main
stage1.build()
File "/home/linux/llvm-toolchain/toolchain/llvm_android/builder_registry.py", line 67, in wrapper
function(builder, *args, **kwargs)
File "/home/linux/llvm-toolchain/toolchain/llvm_android/base_builders.py", line 139, in build
self._build_config()
File "/home/linux/llvm-toolchain/toolchain/llvm_android/base_builders.py", line 424, in _build_config
utils.check_call(ninja_cmd, cwd=self.output_dir, env=env)
File "/home/linux/llvm-toolchain/toolchain/llvm_android/utils.py", line 56, in check_call
return subprocess_run(cmd, *args, **kwargs, check=True)
File "/home/linux/llvm-toolchain/toolchain/llvm_android/utils.py", line 46, in subprocess_run
return subprocess.run(cmd, *args, **kwargs, text=True)
File "/home/linux/llvm-toolchain/prebuilts/python/linux-x86/lib/python3.9/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/linux/llvm-toolchain/prebuilts/build-tools/linux-x86/bin/ninja']' returned non-zero exit status 1.
Traceback (most recent call last):
File "toolchain/llvm_android/build.py", line 21, in <module>
py3_utils.run_with_py3('do_build.py')
File "/home/linux/llvm-toolchain/toolchain/llvm_android/py3_utils.py", line 35, in run_with_py3
subprocess.check_call(
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/linux/llvm-toolchain/prebuilts/python/linux-x86/bin/python3', '/home/linux/llvm-toolchain/toolchain/llvm_android/do_build.py', '--no-build', 'linux']' returned non-zero exit status 1.
@bluesadi This tutorial is very unclear. I took my time to fix a lot of errors by myself, but I came across an error i could not fix. Because Pluto are using arguments that doesn't match with Google's llvm fork manifest_7714059
Forget this tutorial, I implemented in excat way as you did with original llvm 12.0.1, and i used Ubuntu 20.04 just in case. It was all successful
I try to install pluto obfuscator in Android NDK 23 by following this step https://github.com/o2e/OLLVM-9.0.1#%E6%95%B4%E5%90%88%E5%88%B0ndk but i'm getting error
I read this issue to solve, so the directory become
C:\Users\uwu\AppData\Local\Android\Sdk\ndk\23.0.7599858\toolchains\llvm\prebuilt\windows-x86_64\lib\clang\12.0.1\lib\linux\arm
but still getting same error https://github.com/heroims/obfuscator/issues/7#issuecomment-1025939903What i'm missing?
Can you upgrade llvm to 12.0.5 by any change?