<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Clover - radeonsi: Mesa git - broken compilation with current LLVM 10.0.0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111523#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Clover - radeonsi: Mesa git - broken compilation with current LLVM 10.0.0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111523">bug 111523</a>
from <span class="vcard"><a class="email" href="mailto:awatry@gmail.com" title="Aaron Watry <awatry@gmail.com>"> <span class="fn">Aaron Watry</span></a>
</span></b>
<pre>In theory, the following should be enough to get things going again, but it'd
need to be wrapped in some logic to do clang version detection to keep the
older versions working:
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp
b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 0a677ce2eaa..0ce3e970303 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -200,7 +200,7 @@ namespace {
const std::string &device_clc_version = dev.device_clc_version();
if (!clang::CompilerInvocation::CreateFromArgs(
- c->getInvocation(), copts.data(), copts.data() + copts.size(),
diag))
+ c->getInvocation(), copts, diag))
throw invalid_build_options_error();
diag_buffer->FlushDiagnostics(diag);
Haven't tested it yet though beyond just building and running clinfo.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>