<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - dependency-dump.m fails with super-long pathname"
   href="http://llvm.org/bugs/show_bug.cgi?id=21482">21482</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>dependency-dump.m fails with super-long pathname
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>Modules
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>paul_robinson@playstation.sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13291" name="attach_13291" title="repro script">attachment 13291</a> <a href="attachment.cgi?id=13291&action=edit" title="repro script">[details]</a></span>
repro script

Our internal Windows bots use some pretty long path names, and
something about how Modules works is tripping over them.

I've attached a .bat script that will repro this failure outside of
the lit framework; that makes it easy to manipulate the length of the
directory name passed to -fmodules-cache-path and -module-dependency-dir.
As attached, the script causes FileCheck to fail as follows:

e:\upstream\llvm\tools\clang\test\Modules\dependency-dump.m:9:9: error:
expected
 string not found in input
// VFS: 'name': "SubFramework.h"
        ^
e:\cmplr\scratch\incredible-ridiculously-long-directory-component\incredible-rid
iculously-long-directory-component\123456789012345678901\vfs\vfs.yaml:1:1:
note:
 scanning from here
{
^
e:\cmplr\scratch\incredible-ridiculously-long-directory-component\incredible-rid
iculously-long-directory-component\123456789012345678901\vfs\vfs.yaml:26:2:
note
: possible intended match here
 'name': "Sub.h",
 ^

But, if you make that directory name 1 character shorter, it passes.</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>