Closed ghost closed 1 year ago
The error above is fixed in latest commit dbce4d8fc9c7a6bc0c75e4ca576400cc5ba622ae, there is one more error left
[887/4104] Building CXX object lib/Transforms/Obfuscation/CMakeFiles/LLVMObfuscation.dir/MBAUtils.cpp.obj
FAILED: lib/Transforms/Obfuscation/CMakeFiles/LLVMObfuscation.dir/MBAUtils.cpp.obj
E:\llvm-mingw-20220906-ucrt-x86_64\bin\c++.exe -DGTEST_HAS_RTTI=0 -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IE:/Github/Pluto-Obfuscator/build/lib/Transforms/Obfuscation -IE:/Github/Pluto-Obfuscator/llvm/lib/Transforms/Obfuscation -IE:/Github/Pluto-Obfuscator/build/include -IE:/Github/Pluto-Obfuscator/llvm/include -Wa,-mbig-obj -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 -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -O3 -DNDEBUG -fno-exceptions -fno-rtti -std=c++14 -MD -MT lib/Transforms/Obfuscation/CMakeFiles/LLVMObfuscation.dir/MBAUtils.cpp.obj -MF lib\Transforms\Obfuscation\CMakeFiles\LLVMObfuscation.dir\MBAUtils.cpp.obj.d -o lib/Transforms/Obfuscation/CMakeFiles/LLVMObfuscation.dir/MBAUtils.cpp.obj -c E:/Github/Pluto-Obfuscator/llvm/lib/Transforms/Obfuscation/MBAUtils.cpp
In file included from E:/Github/Pluto-Obfuscator/llvm/lib/Transforms/Obfuscation/MBAUtils.cpp:1:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/Transforms/Obfuscation/MBAUtils.h:2:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/IR/InstrTypes.h:30:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/IR/Function.h:20:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/ADT/DenseSet.h:16:
E:/Github/Pluto-Obfuscator/llvm/include/llvm/ADT/DenseMap.h:128:16: warning: variable 'NumEntries' set but not used [-Wunused-but-set-variable]
unsigned NumEntries = getNumEntries();
^
In file included from E:/Github/Pluto-Obfuscator/llvm/lib/Transforms/Obfuscation/MBAUtils.cpp:5:
E:/Github/Pluto-Obfuscator/llvm/include/llvm/Transforms/Obfuscation/CryptoUtils.h:40:9: warning: 'UNALIGNED' macro redefined [-Wmacro-redefined]
#define UNALIGNED
^
E:/llvm-mingw-20220906-ucrt-x86_64/include/_mingw.h:388:9: note: previous definition is here
#define UNALIGNED __unaligned
^
In file included from E:/Github/Pluto-Obfuscator/llvm/lib/Transforms/Obfuscation/MBAUtils.cpp:6:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/Transforms/Obfuscation/Utils.h:6:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/Support/CommandLine.h:34:
E:/Github/Pluto-Obfuscator/llvm/include/llvm/Support/VirtualFileSystem.h:603:25: error: too few arguments provided to function-like macro invocation
S(std::move(S)) {}
^
E:/Github/Pluto-Obfuscator/llvm/include/llvm/Transforms/Obfuscation/CryptoUtils.h:181:9: note: macro 'S' defined here
#define S(x, n) RORc((x), (n))
^
In file included from E:/Github/Pluto-Obfuscator/llvm/lib/Transforms/Obfuscation/MBAUtils.cpp:6:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/Transforms/Obfuscation/Utils.h:6:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/Support/CommandLine.h:34:
E:/Github/Pluto-Obfuscator/llvm/include/llvm/Support/VirtualFileSystem.h:604:5: error: expected '{' or ','
RedirectingDirectoryEntry(StringRef Name, Status S)
^
E:/Github/Pluto-Obfuscator/llvm/include/llvm/Support/VirtualFileSystem.h:605:52: error: too few arguments provided to function-like macro invocation
: Entry(EK_Directory, Name), S(std::move(S)) {}
^
E:/Github/Pluto-Obfuscator/llvm/include/llvm/Transforms/Obfuscation/CryptoUtils.h:181:9: note: macro 'S' defined here
#define S(x, n) RORc((x), (n))
^
2 warnings and 3 errors generated.
[888/4104] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/AliasAnalysisSummary.cpp.obj
In file included from E:/Github/Pluto-Obfuscator/llvm/lib/Analysis/AliasAnalysisSummary.cpp:3:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/IR/InstrTypes.h:30:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/IR/Function.h:20:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/ADT/DenseSet.h:16:
E:/Github/Pluto-Obfuscator/llvm/include/llvm/ADT/DenseMap.h:128:16: warning: variable 'NumEntries' set but not used [-Wunused-but-set-variable]
unsigned NumEntries = getNumEntries();
^
1 warning generated.
[889/4104] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/AliasAnalysis.cpp.obj
In file included from E:/Github/Pluto-Obfuscator/llvm/lib/Analysis/AliasAnalysis.cpp:26:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/Analysis/AliasAnalysis.h:40:
E:/Github/Pluto-Obfuscator/llvm/include/llvm/ADT/DenseMap.h:128:16: warning: variable 'NumEntries' set but not used [-Wunused-but-set-variable]
unsigned NumEntries = getNumEntries();
^
1 warning generated.
[890/4104] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/AliasAnalysisEvaluator.cpp.obj
In file included from E:/Github/Pluto-Obfuscator/llvm/lib/Analysis/AliasAnalysisEvaluator.cpp:9:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/Analysis/AliasAnalysisEvaluator.h:27:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/IR/Function.h:20:
In file included from E:/Github/Pluto-Obfuscator/llvm/include/llvm/ADT/DenseSet.h:16:
E:/Github/Pluto-Obfuscator/llvm/include/llvm/ADT/DenseMap.h:128:16: warning: variable 'NumEntries' set but not used [-Wunused-but-set-variable]
unsigned NumEntries = getNumEntries();
^
1 warning generated.
ninja: build stopped: subcommand failed.
PS E:\Github\Pluto-Obfuscator>
I'm getting the same error on macOS, can someone help?
@bluesadi can you please take a look? it seems you didn't even tested when you made a commit
Sorry for later reply. Seems there was something wrong with the synchronization of main and dev branch. Now it is fixed.
Works now, thanks
There seems to be error in CodeGenPassBuilder. I could not figure out how to fix this error