<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 - -no-canonical-prefixes breaks builtin header resolution when compiling a module using a relative path"
   href="https://bugs.llvm.org/show_bug.cgi?id=47209">47209</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-no-canonical-prefixes breaks builtin header resolution when compiling a module using a relative path
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>phosek@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>To reproduce this issue, use the following:

```
$ mkdir -p t/d && cd t
$ cat >module.modulemap <<EOF
module stdint_h [system] {
  header "stdint.h"
  export *
}
EOF
$ # install Clang in t/clang
$ cd d
$ ../clang/bin/clang++ -fmodules -c -x c++ -Xclang -emit-module -c
../module.modulemap -o m.pcm -fmodule-name=stdint_h -no-canonical-prefixes
<module-includes>:1:10: error: '../clang/lib/clang/12.0.0/include/stdint.h'
file not found, did you mean 'clang/lib/clang/12.0.0/include/stdint.h'?
#include "../clang/lib/clang/12.0.0/include/stdint.h"
         ^
1 error generated.
```

If you omit `-no-canonical-prefixes` everything compiles without errors. If you
compile from `t` (not `t/d`) everything compiles without errors, even with
`-no-canonical-prefixes`.</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>