wsmoses / Tapir-Meta

24 stars 7 forks source link

Failed to build with Fedora 28 GCC 8 #5

Open xman opened 6 years ago

xman commented 6 years ago

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);

xman commented 6 years ago

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.