ROCm / ROCm-CompilerSupport

The compiler support repository provides various Lightning Compiler related services.
45 stars 31 forks source link

comgr build errors with LLVM master (SymbolRef) #28

Closed preda closed 4 years ago

preda commented 4 years ago

Configuring comgr as such:

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$LLVM/build;$DEVICE_LIBS/buildx" ..

Referencing master LLVM at e64f99c51a8 produces these errors:

/home/preda/ROCm-CompilerSupport/lib/comgr/src/comgr-symbol.cpp: In member function 'COMGR::SymbolContext* COMGR::SymbolHelper::createBinary(llvm::StringRef, const char*, amd_comgr_data_kind_t)':
/home/preda/ROCm-CompilerSupport/lib/comgr/src/comgr-symbol.cpp:171:35: error: 'class llvm::Expected<long unsigned int>' has no member named 'getValue'
  171 |     Symp->Value = Fsym.getValue().getValue();
      |                                   ^~~~~~~~
/home/preda/ROCm-CompilerSupport/lib/comgr/src/comgr-symbol.cpp: In member function 'amd_comgr_status_t COMGR::SymbolHelper::iterateTable(llvm::StringRef, amd_comgr_data_kind_t, amd_comgr_status_t (*)(amd_comgr_symbol_t, void*), void*)':
/home/preda/ROCm-CompilerSupport/lib/comgr/src/comgr-symbol.cpp:238:39: error: 'class llvm::Expected<long unsigned int>' has no member named 'getValue'
  238 |       Ctxp->Value = Symbol.getValue().getValue();
preda commented 4 years ago

fixed in 6a81326fa9c95f2045064554c471f2568d8c6e7b