<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 - [cmake][modules] 'ninja clean' does not remove modules.cache directory"
href="https://bugs.llvm.org/show_bug.cgi?id=34352">34352</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[cmake][modules] 'ninja clean' does not remove modules.cache directory
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>rtrieu@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>My system had an update to a library file, so it failed a modules build. I
tried to clean out the files and build again, but that didn't work. It
required a manual delete of the modules directory in order to get a rebuild of
Clang.
$ ninja
...
fatal error: file '/usr/include/linux/errno.h' has been modified since the
module file '<<build
directory>>/module.cache/VFOLNPBRXSUY/LLVM_IRReader-37GEUGWS2AK5A.pcm' was
built
note: please rebuild precompiled header '<<build
directory>>/module.cache/VFOLNPBRXSUY/LLVM_IRReader-37GEUGWS2AK5A.pcm'
1 error generated.
$ ninja clean
[1/1] Cleaning all built files...
Cleaning... 3806 files.
$ ninja
...
fatal error: file '/usr/include/linux/errno.h' has been modified since the
module file '<<build
directory>>/module.cache/VFOLNPBRXSUY/LLVM_IRReader-37GEUGWS2AK5A.pcm' was
built
note: please rebuild precompiled header '<<build
directory>>/module.cache/VFOLNPBRXSUY/LLVM_IRReader-37GEUGWS2AK5A.pcm'
1 error generated.
$ rm module.cache -r
$ ninja
<<build successful>></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>