<html>
    <head>
      <base href="https://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 --- - compiler response file isn't used when command line is close to response file limit"
   href="https://llvm.org/bugs/show_bug.cgi?id=27491">27491</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>compiler response file isn't used when command line is close to response file limit
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.7
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dvaliant@ea.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:

On windows 7 it appears clang calls itself as a subprocess when used to
compile. For short command lines subprocess is called with all arguments on
command line for large command lines a response file is used. However it
appears if command line used for subprocess is only just over the limit clang
will not use a response file when it should and fail with: 

clang++.exe : error : unable to execute command: Couldn't execute program
'C:\some\system\path\LLVM\bin\clang++.exe'The filename or extension is too
long.

Problem appears more frequently the longer the absolute path to clang++.exe

Repro:

- Call clang++.exe to compile any simple cpp file using a response file, use -v
argument to see if clang uses response file when calling clang subprocess
- artificially inflate response file by adding defines (e.g -D BLOAT) until you
see above error message (will happen close 32768 characters)
- if you see clang using response file try trimming response file by a
character at a time, the range is very small (bad range seems to be length of
executable path)</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>