<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 - clang-9 RC ICE when building clangd with -DLLVM_ENABLE_MODULES=On"
href="https://bugs.llvm.org/show_bug.cgi?id=42827">42827</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-9 RC ICE when building clangd with -DLLVM_ENABLE_MODULES=On
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>9.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>modocache@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr>
<tr>
<th>Blocks</th>
<td>42474
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22315" name="attach_22315" title="A script I used to reproduce the issue. It builds clang, then uses it to compile clangd with LLVM_ENABLE_MODULES. I also used this script to bisect.">attachment 22315</a> <a href="attachment.cgi?id=22315&action=edit" title="A script I used to reproduce the issue. It builds clang, then uses it to compile clangd with LLVM_ENABLE_MODULES. I also used this script to bisect.">[details]</a></span>
A script I used to reproduce the issue. It builds clang, then uses it to
compile clangd with LLVM_ENABLE_MODULES. I also used this script to bisect.
As I explained in my email to llvm-dev on July 29,
<a href="http://lists.llvm.org/pipermail/llvm-dev/2019-July/134214.html">http://lists.llvm.org/pipermail/llvm-dev/2019-July/134214.html</a>, I am running
into a Clang ICE when I use a clang-9 built from llvm-project's release/9.x
branch to compile clangd from the release/9.x branch source.
I wrote a script to reproduce the issue, and posted the output from running
that script, in
<a href="https://gist.github.com/modocache/ac366ca9673b93bb21e75d3e72162608">https://gist.github.com/modocache/ac366ca9673b93bb21e75d3e72162608</a>. I'll also
attach those files to this bug.
I used the script above to bisect, and I found that the first commit that
demonstrates the issue is
<a href="https://github.com/llvm/llvm-project/commit/baae41ff76f662987f31447686ba819dcd748b3f">https://github.com/llvm/llvm-project/commit/baae41ff76f662987f31447686ba819dcd748b3f</a>.
In the email discussion, I was asked to verify whether the issue reproduces on
llvm-project master. It does for me, and I posted the repro script and its
output to <a href="https://gist.github.com/modocache/d9700166067f4a155820bc57d9bee1f3">https://gist.github.com/modocache/d9700166067f4a155820bc57d9bee1f3</a>.
However, the issue doesn't appear to occur in buildbots such as
<a href="http://green.lab.llvm.org/green/job/clang-stage2-coverage-R/4124/console">http://green.lab.llvm.org/green/job/clang-stage2-coverage-R/4124/console</a>, which
use -DLLVM_ENABLE_MODULES=On. I can't explain why at the moment.
For now I'm registering this bug as a release blocker for 9.0.0 RC 1, please
let me know if that's appropriate.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - [meta] 9.0.0 Release Blockers"
href="https://bugs.llvm.org/show_bug.cgi?id=42474">Bug 42474</a>] [meta] 9.0.0 Release Blockers
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>