<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 --- - building llvm using msys on windows fail"
   href="https://llvm.org/bugs/show_bug.cgi?id=23570">23570</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>building llvm using msys on windows fail
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>tzafrir11@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>building llvm on windows under msys, fails with the below error
it seems the cause is that "type" command used for outputing a text file in
windows, is not recognized when running under msys
cat should be used instead.

[ 55%] Creating export file for LTO
/bin/sh: line 0: type: llvm\tools\lto\lto.exports: not found
tools/lto/CMakeFiles/LTO_exports.dir/build.make:51: recipe for target
`tools/lto/LTO.def' failed
make[2]: *** [tools/lto/LTO.def] Error 1
CMakeFiles/Makefile2:8030: recipe for target
`tools/lto/CMakeFiles/LTO_exports.dir/all' failed
make[1]: *** [tools/lto/CMakeFiles/LTO_exports.dir/all] Error 2
Makefile:136: recipe for target `all' failed
make: *** [all] Error 2

running make again, seems to compile fine and continue, failing later with
[ 93%] Creating export file for libclang
/usr/bin/sh: line 0: type: llvm\tools\clang\tools\libclang\libclang.exports:
not found
tools/clang/tools/libclang/CMakeFiles/libclang_exports.dir/build.make:51:
recipe for target 'tools/clang/tools/libclang/libclang.def' 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>