[llvm-bugs] [Bug 44707] New: successful compile yields broken llc.exe

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 29 06:59:34 PST 2020


            Bug ID: 44707
           Summary: successful compile yields broken llc.exe
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: flip101 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

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:
pacman -S mingw64/mingw-w64-x86_64-ninja
git clone --config core.autocrlf=false https://github.com/llvm/llvm-project.git
mkdir llvm-project/build
cd llvm-project/build
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--reduce-memory-overheads -Wl,--hash-size=1021"
/usr/bin/time ninja
/usr/bin/time ninja check-all

Compiling was a success, but then running

/llvm-project/build/bin/llc.exe --version


bash: /llvm-project/build/bin/llc.exe: cannot execute binary file: Exec format

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

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200129/7626a955/attachment.html>

More information about the llvm-bugs mailing list