<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - OProfileJITEventListener.cpp:115:65: error: cannot convert ‘uint64_t’ {aka ‘long unsigned int’} to ‘llvm::object::SectionedAddress’"
href="https://bugs.llvm.org/show_bug.cgi?id=44970">44970</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>OProfileJITEventListener.cpp:115:65: error: cannot convert ‘uint64_t’ {aka ‘long unsigned int’} to ‘llvm::object::SectionedAddress’
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>9.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>szotsaki@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>