You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to build llvm/mctoll, but it failed with the following error:
[100%] Building CXX object tools/llvm-mctoll/CMakeFiles/llvm-mctoll.dir/llvm-mctoll.cpp.o
/home/harshit/Documents/BinaryObfuscation/new_llvm-mctoll/src/llvm/tools/llvm-mctoll/llvm-mctoll.cpp: In function ‘void DisassembleObject(const llvm::object::ObjectFile*, bool)’:
/home/harshit/Documents/BinaryObfuscation/new_llvm-mctoll/src/llvm/tools/llvm-mctoll/llvm-mctoll.cpp:1105:74: error: invalid conversion from ‘std::unique_ptr<llvm::TargetMachine>::pointer {aka llvm::TargetMachine*}’ to ‘const llvm::LLVMTargetMachine*’ [-fpermissive]
MachineModuleInfo *machineModuleInfo = new MachineModuleInfo(Target.get());
~~~~~~~~~~^~
In file included from /home/harshit/Documents/BinaryObfuscation/new_llvm-mctoll/src/llvm/tools/llvm-mctoll/ModuleRaiser.h:18:0,
from /home/harshit/Documents/BinaryObfuscation/new_llvm-mctoll/src/llvm/tools/llvm-mctoll/MachineInstructionRaiser.h:20,
from /home/harshit/Documents/BinaryObfuscation/new_llvm-mctoll/src/llvm/tools/llvm-mctoll/MachineFunctionRaiser.h:19,
from /home/harshit/Documents/BinaryObfuscation/new_llvm-mctoll/src/llvm/tools/llvm-mctoll/llvm-mctoll.cpp:14:
/home/harshit/Documents/BinaryObfuscation/new_llvm-mctoll/src/llvm/include/llvm/CodeGen/MachineModuleInfo.h:148:12: note: initializing argument 1 of ‘llvm::MachineModuleInfo::MachineModuleInfo(const llvm::LLVMTargetMachine*)’
explicit MachineModuleInfo(const LLVMTargetMachine *TM = nullptr);
^~~~~~~~~~~~~~~~~
tools/llvm-mctoll/CMakeFiles/llvm-mctoll.dir/build.make:62: recipe for target 'tools/llvm-mctoll/CMakeFiles/llvm-mctoll.dir/llvm-mctoll.cpp.o' failed
make[3]: *** [tools/llvm-mctoll/CMakeFiles/llvm-mctoll.dir/llvm-mctoll.cpp.o] Error 1
CMakeFiles/Makefile2:62164: recipe for target 'tools/llvm-mctoll/CMakeFiles/llvm-mctoll.dir/all' failed
make[2]: *** [tools/llvm-mctoll/CMakeFiles/llvm-mctoll.dir/all] Error 2
CMakeFiles/Makefile2:62176: recipe for target 'tools/llvm-mctoll/CMakeFiles/llvm-mctoll.dir/rule' failed
make[1]: *** [tools/llvm-mctoll/CMakeFiles/llvm-mctoll.dir/rule] Error 2
Makefile:14681: recipe for target 'llvm-mctoll' failed
make: *** [llvm-mctoll] Error 2
Earlier it used to build fine.
I think there might be an issue while adding support to raise idiv with register source operand in X86MachineInstructionRaiser.cpp.
Thanks,
Harshit
The text was updated successfully, but these errors were encountered:
I tried to build llvm/mctoll, but it failed with the following error:
Earlier it used to build fine.
I think there might be an issue while adding support to raise idiv with register source operand in X86MachineInstructionRaiser.cpp.
Thanks,
Harshit
The text was updated successfully, but these errors were encountered: