<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 - bugpoint fails to create valid tmp files on windows"
   href="https://bugs.llvm.org/show_bug.cgi?id=38467">38467</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>bugpoint fails to create valid tmp files on windows
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>bugpoint
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>llvm-dev@redking.me.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Seemingly since the move over to sys::fs::TempFile, windows builds of bugpoint
are unable to load the tmp files - the tmp files are created but not closed so
when the driver passes the tmp filename on it finds a locked, empty file and
aborts.

bugpoint -safe-llc <ir_file_to_reduce.ll>

*** All input ok
Initializing execution environment: Found llc: E:\llvm\ninja\bin\llc.exe
Running the code generator to test for a crash: <llc>*** Debugging code
generator crash!

Error running tool:
  E:\llvm\ninja\bin\llc.exe -o bugpoint-test-program-c4f82bf.bc-8eacd60.llc.s
bugpoint-test-program-c4f82bf.bc
E:\llvm\ninja\bin\llc.exe: error: E:\llvm\ninja\bin\llc.exe:
bugpoint-test-program-c4f82bf.bc: error: Could not open input file: permission
denied

Checking to see if we can delete global inits: <llc><crash>

*** Able to remove all global initializers!
Checking for crash with changing conditionals to always jump to true: entry:
E:\llvm\ninja\bin\opt.exe: bugpoint-input-29bf62d.bc: error: Could not open
input file: permission denied
verify failed!</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>