Building LLVM on MinGW32 / Windows 7 Professional x64

When I try to compile LLVM, a dialog pops up halfway through the process: “tblgen.exe has stopped working” and the build quits.

I would really appreciate a binary pack for llvm-as, llc, etc.

Specs:

GCC 4.5.2
MinGW-Get 0.1-alpha-5.1
Windows 7 Professional x64

Steps:

Install MinGW (http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110211/).

Open Start → Programs → MinGW → MinGW Shell.

Run mingw-get install binutils.

Run mingw-get install gcc.

Download LLVM-GCC Front End Binaries for Mingw32/x86 (http://llvm.org/releases/download.html#2.8).

Move llvm-gcc*.tar.bz2 to C:\MinGW.

Run bunzip2 llvm-*.bz2

Run tar xvf llvm-*.tar

Install msysGit (http://code.google.com/p/msysgit/).

Command Prompt:

cd C:\Users\andrew\Desktop

git clone http://llvm.org/git/llvm.git

MinGW Shell:

cd c:/users/andrew/desktop

./configure

make

A dialog pops up: “tblgen.exe has stopped working”

make[1]: Building Intrinsics.gen.tmp from Intrinsics.td
make[1]: *** [/c/users/andrew/desktop/src/llvm/lib/VMCore/Debug+Asserts/Intrinics.gen.tmp] Error 255
make[1]: Leaving directory ‘/c/users/andrew/desktop/src/llvm/lib/VMCore’
make: *** [all] Error 1

Close program

Cheers,

Andrew Pennebaker
www.yellosoft.us

Hi Andrew,

When I try to compile LLVM, a dialog pops up halfway through the process:
"tblgen.exe has stopped working" and the build quits.

I would really appreciate a binary pack for llvm-as, llc, etc.

indeed windows is the only platform for which the LLVM core tools like llvm-as,
llc etc are not provided in the binary distribution. I think it would be better
if they were included.

Ciao, Duncan.

Duncan Sands <baldrick@free.fr> writes:

I would really appreciate a binary pack for llvm-as, llc, etc.

indeed windows is the only platform for which the LLVM core tools like
llvm-as, llc etc are not provided in the binary distribution. I think
it would be better if they were included.

The only binary distribution related to LLVM 2.8 and Windows on the
Download page is "LLVM-GCC 4.2 Front End Binaries for Mingw32/x86". It
doesn't include llvm-as & co. but the other LLVM-GCC binary
distributions doesn't either (I checked LLVM-GCC 4.2 Front End Binaries
for Linux/x86_64).

A dialog pops up: "tblgen.exe has stopped working"
make[1]: Building Intrinsics.gen.tmp from Intrinsics.td
make[1]: ***

Looks like tablegen was miscompiled by your system gcc. Try other version.

They are bundled in with clang.

Ciao, Duncan.

Duncan Sands <baldrick@free.fr> writes:

indeed windows is the only platform for which the LLVM core tools like
llvm-as, llc etc are not provided in the binary distribution. I think
it would be better if they were included.

The only binary distribution related to LLVM 2.8 and Windows on the
Download page is "LLVM-GCC 4.2 Front End Binaries for Mingw32/x86". It
doesn't include llvm-as& co. but the other LLVM-GCC binary
distributions doesn't either (I checked LLVM-GCC 4.2 Front End Binaries
for Linux/x86_64).

They are bundled in with clang.

There is no binary distribution of clang 2.8 for Windows.

indeed windows is the only platform for which the LLVM core tools like
llvm-as, llc etc are not provided in the binary distribution. I think
it would be better if they were included.

The only binary distribution related to LLVM 2.8 and Windows on the
Download page is "LLVM-GCC 4.2 Front End Binaries for Mingw32/x86". It
doesn't include llvm-as& co. but the other LLVM-GCC binary
distributions doesn't either (I checked LLVM-GCC 4.2 Front End Binaries
for Linux/x86_64).

They are bundled in with clang.

There is no binary distribution of clang 2.8 for Windows.

Exactly, that is the problem!

Ciao, Duncan.