In file included from /home/xman/projects/tapir-meta.git/tapir/tools/lli/lli.cpp:30:
/home/xman/projects/tapir-meta.git/tapir/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h: In member function ‘llvm::Expected<std::vector > llvm::orc::remote::OrcRemoteTargetClient::readMem(char*, llvm::JITTargetAddress, uint64_t)’:
/home/xman/projects/tapir-meta.git/tapir/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:722:26: *error: could not convert ‘((llvm::orc::remote::OrcRemoteTargetClient)this)->callB(Src, Size)’ from ‘Expected<vector<unsigned char,allocator>>’ to ‘Expected<vector<char,allocator>>’**
return callB(Src, Size);
Changing the readMem() to return this Expected<std::vector> resolves the compile error leading to successful build. I hope that doesn't break something else.
Compile error:
In file included from /home/xman/projects/tapir-meta.git/tapir/tools/lli/lli.cpp:30: /home/xman/projects/tapir-meta.git/tapir/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h: In member function ‘llvm::Expected<std::vector > llvm::orc::remote::OrcRemoteTargetClient::readMem(char*, llvm::JITTargetAddress, uint64_t)’:
/home/xman/projects/tapir-meta.git/tapir/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h:722:26: *error: could not convert ‘((llvm::orc::remote::OrcRemoteTargetClient )this)->callB(Src, Size)’ from ‘Expected<vector<unsigned char,allocator>>’ to ‘Expected<vector<char,allocator>>’**
return callB(Src, Size);