<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 - Building the Linux kernel with an instrumented compiler crashes after r362676"
href="https://bugs.llvm.org/show_bug.cgi?id=42259">42259</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Building the Linux kernel with an instrumented compiler crashes after r362676
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>profile
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>natechancellor@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I have started messing around with building LLVM/Clang with PGO per
<a href="https://llvm.org/docs/HowToBuildWithPGO.html">https://llvm.org/docs/HowToBuildWithPGO.html</a> and after r362676[1], the
instrumented compiler crashes while compiling the Linux kernel (my benchmark).
Build log (doesn't get far):
<a href="https://gist.github.com/24cbd0d06398076f173a2d98598962db">https://gist.github.com/24cbd0d06398076f173a2d98598962db</a>
Bisect log: <a href="https://gist.github.com/1d26ef70594a6aa54d68445a5640cd81">https://gist.github.com/1d26ef70594a6aa54d68445a5640cd81</a>
Stage 1 and stage 2 configuration options:
<a href="https://gist.github.com/f5c27752af31e73d8ec48e4b98af573a">https://gist.github.com/f5c27752af31e73d8ec48e4b98af573a</a>
This can be reproduced when compiling an x86_64 defconfig build on 5.2-rc4
(requires a build of clang after r362410[2] for asm goto support):
$ curl -LSsO <a href="https://git.kernel.org/torvalds/t/linux-5.2-rc4.tar.gz">https://git.kernel.org/torvalds/t/linux-5.2-rc4.tar.gz</a>
$ tar -xzf linux-5.2-rc4.tar.gz
$ cd linux-5.2-rc4
$ make -j"$(nproc)" CC=clang LD=ld.lld O=out defconfig bzImage modules
With r362676 reverted, the builds complete successfully.
Let me know if there is anything else needed to resolve this.
[1]:
<a href="https://github.com/llvm/llvm-project/commit/c1867557d93d622f761b57af6e66e3e518bc0b9f">https://github.com/llvm/llvm-project/commit/c1867557d93d622f761b57af6e66e3e518bc0b9f</a>
[2]:
<a href="https://github.com/llvm/llvm-project/commit/b8fee677bf8e2d6444c556293d6b77fb876654e4">https://github.com/llvm/llvm-project/commit/b8fee677bf8e2d6444c556293d6b77fb876654e4</a></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>