[llvm-bugs] [Bug 32944] New: automatically rebuild pcm when modulemap was modified

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 5 13:48:39 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32944

            Bug ID: 32944
           Summary: automatically rebuild pcm when modulemap was modified
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mail at milianw.de
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

I started to play around with modules and ran into the following error:

fatal error: file
'/home/milian/projects/compiled/kf5/include/KF5/KDBusAddons/module.modulemap'
has been modified since the module file
     
'/tmp/org.llvm.clang.milian/ModuleCache/1R4DPWZPQLPIB/QtCore-2B4VMXDD7IFGQ.pcm'
was built
note: please rebuild precompiled header
'/tmp/org.llvm.clang.milian/ModuleCache/1R4DPWZPQLPIB/QtCore-2B4VMXDD7IFGQ.pcm'

Note that the KDBusAddons module depends on the QtCore module here. Right now
I'm failing to find an easy way to reproduce this issue - I work-arounded it by
pruning /tmp/org.llvm.clang.milian in the meantime.

In general, couldn't the above scenario be handled more gracefully by
implicitly rebuilding the precompiled header? I.e. why is manual
user-intervention required here?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170505/06a394c2/attachment-0001.html>


More information about the llvm-bugs mailing list