https://bugs.llvm.org/show_bug.cgi?id=34352
Bug ID: 34352
Summary: [cmake][modules] 'ninja clean' does not remove
modules.cache directory
Product: Build scripts
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: cmake
Assignee: unassignedb...@nondot.org
Reporter: rtr...@google.com
CC: llvm-bugs@lists.llvm.org
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>>
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs