<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 - successful compile yields broken llc.exe"
href="https://bugs.llvm.org/show_bug.cgi?id=44707">44707</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>successful compile yields broken llc.exe
</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>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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>flip101@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I searched for a similar bug but i could not find it. I'm building on windows
10 64 bits with msys2
I checked out version 9c24fca2a33fc0fd059e278bb95c84803dfff9ae of 27 january
and followed the following commands:
# from:
<a href="https://llvm.org/docs/GettingStarted.html#getting-the-source-code-and-building-llvm">https://llvm.org/docs/GettingStarted.html#getting-the-source-code-and-building-llvm</a>
pacman -S mingw64/mingw-w64-x86_64-ninja
git clone --config core.autocrlf=false <a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
mkdir llvm-project/build
cd llvm-project/build
cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug
-DLLVM_PARALLEL_LINK_JOBS=1
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--reduce-memory-overheads -Wl,--hash-size=1021"
../llvm
/usr/bin/time ninja
/usr/bin/time ninja check-all
Compiling was a success, but then running
/llvm-project/build/bin/llc.exe --version
gives
bash: /llvm-project/build/bin/llc.exe: cannot execute binary file: Exec format
error
I tried the same in windows command shell, this opens up a windows dialog that
says "this app can't run on your pc"
As a bit of additional information .. the architecture seems to be right
$ file /llvm-project/build/bin/llc.exe
/llvm-project/build/bin/llc.exe: PE32+ executable (console) x86-64, for MS
Windows</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>