[llvm-bugs] [Bug 44970] New: OProfileJITEventListener.cpp:115:65: error: cannot convert ‘uint64_t’ {aka ‘long unsigned int’} to ‘llvm::object::SectionedAddress’

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 20 01:32:35 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=44970

            Bug ID: 44970
           Summary: OProfileJITEventListener.cpp:115:65: error: cannot
                    convert ‘uint64_t’ {aka ‘long unsigned int’} to
                    ‘llvm::object::SectionedAddress’
           Product: Build scripts
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: szotsaki at gmail.com
                CC: llvm-bugs at lists.llvm.org

I tried to compile LLVM 9.0.1 with the -DLLVM_USE_OPROFILE=ON and
DLLVM_USE_PERF=ON but during compilation GCC 9 gave me the following syntax
error:

Scanning dependencies of target LLVMOProfileJIT
[ 30%] Building CXX object
lib/ExecutionEngine/OProfileJIT/CMakeFiles/LLVMOProfileJIT.dir/OProfileJITEventListener.cpp.o
[...]/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp: In member
function ‘virtual void
{anonymous}::OProfileJITEventListener::notifyObjectLoaded(llvm::JITEventListener::ObjectKey,
const llvm::object::ObjectFile&, const llvm::RuntimeDyld::LoadedObjectInfo&)’:
[...]/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp:115:65:
error: cannot convert ‘uint64_t’ {aka ‘long unsigned int’} to
‘llvm::object::SectionedAddress’
  115 |     DILineInfoTable Lines = Context->getLineInfoForAddressRange(Addr,
Size);
      |                                                                 ^~~~
      |                                                                 |
      |                                                                
uint64_t {aka long unsigned int}
In file included from [...]/include/llvm/DebugInfo/DWARF/DWARFContext.h:18,
                 from
[...]/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp:17:
/home/aki/temp/all-compile-new/llvm/include/llvm/DebugInfo/DIContext.h:223:32:
note:   initializing argument 1 of ‘virtual llvm::DILineInfoTable
llvm::DIContext::getLineInfoForAddressRange(llvm::object::SectionedAddress,
uint64_t, llvm::DILineInfoSpecifier)’
  223 |       object::SectionedAddress Address, uint64_t Size,
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
lib/ExecutionEngine/OProfileJIT/CMakeFiles/LLVMOProfileJIT.dir/build.make:62:
recipe for target
'lib/ExecutionEngine/OProfileJIT/CMakeFiles/LLVMOProfileJIT.dir/OProfileJITEventListener.cpp.o'
failed
make[2]: ***
[lib/ExecutionEngine/OProfileJIT/CMakeFiles/LLVMOProfileJIT.dir/OProfileJITEventListener.cpp.o]
Error 1
CMakeFiles/Makefile2:6976: recipe for target
'lib/ExecutionEngine/OProfileJIT/CMakeFiles/LLVMOProfileJIT.dir/all' failed
make[1]: ***
[lib/ExecutionEngine/OProfileJIT/CMakeFiles/LLVMOProfileJIT.dir/all] Error 2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200220/bae9984e/attachment.html>


More information about the llvm-bugs mailing list