LLVM installation in Windows


Hi everyone,

I am new in this field. I am trying to install LLVM in my 32-bit Windows XP. Can anyone please give a to do list for installing LLVM in my machine. When trying to build LLVM, I get the following error:

llvm[3]: Compiling llvm_ocaml.c for Debug build
In file included from D:\Program Files\Objective Caml\lib/caml/misc.h:24,
from D:\Program Files\Objective Caml\lib/caml/alloc.h:23,
from llvm_ocaml.c:19:
D:\Program Files\Objective Caml\lib/caml/config.h:140: error: expected =',
;', asm’ or __attribute__' before int64’
D:\Program Files\Objective Caml\lib/caml/config.h:141: error: expected =',
;', asm’ or __attribute__' before uint64’
In file included from llvm_ocaml.c:19:
D:\Program Files\Objective Caml\lib/caml/alloc.h:34: warning: parameter names
ithout types) in function declaration
llvm_ocaml.c: In function llvm_const_of_int64':<br>llvm_ocaml.c:523: error: int64’ undeclared (first use in this function)
llvm_ocaml.c:523: error: (Each undeclared identifier is reported only once
llvm_ocaml.c:523: error: for each function it appears in.)
llvm_ocaml.c:523: error: expected expression before )' token<br>make[3]: *** [/llvm/llvm-2.7/bindings/ocaml/llvm/Debug/llvm_ocaml.o] Error 1<br>make[3]: Leaving directory /llvm/llvm-2.7/bindings/ocaml/llvm’
make[2]: *** [all] Error 1
make[2]: Leaving directory /llvm/llvm-2.7/bindings/ocaml'<br>make[1]: *** [ocaml/.makeall] Error 2<br>make[1]: Leaving directory /llvm/llvm-2.7/bindings’
make: *** [all] Error 1

Can anyone tell me what is the problem?
|

akramul azim <bijoy123_8@yahoo.com> writes:

I am new in this field. I am trying to install LLVM
in my 32-bit Windows XP. Can anyone please give a to do list for
installing LLVM in my machine. When trying to build LLVM, I get the
following error:

[snip]

llvm_ocaml.c:523: error: `int64' undeclared (first use in this function)

[snip]

Can anyone tell me what is the problem?

Possibly the OCaml bindings are broken on Windows/MinGW. Try building
with cmake instead of configure&make. The cmake build ignores the OCaml
bindings.

http://www.llvm.org/docs/CMake.html

Possibly the OCaml bindings are broken on Windows/MinGW. Try building
with cmake instead of configure&make. The cmake build ignores the OCaml
bindings.

One does not need to use cmake build to disable buildings :slight_smile: It is
possible to configure with
--enable-bindings=none.

Also, I'd suggest to use at least LLVM release 2.8, not 2.7 one.


Thanks a lot both of you. Using --enable-bindings=none, I could build and install LLVM 2.8 and gcc-4.2-2.8 source. However, in the bin directory, I get c++.exe, cpp.exe, gcc.exe, g++.exe instead of llvm-c++.exe, llvm-cpp.exe, llvm-gcc.exe, llvm-g++. Are they the same?

Akramul

— On Tue, 21/12/10, Anton Korobeynikov anton@korobeynikov.info wrote:



> From: Anton Korobeynikov anton@korobeynikov.info
> Subject: Re: [LLVMdev] LLVM installation in Windows
> To: “Óscar Fuentes” ofv@wanadoo.es
> Cc: “akramul azim” bijoy123_8@yahoo.com, llvmdev@cs.uiuc.edu
> Date: Tuesday, 21 December, 2010, 6:41 PM
>
> > Possibly the OCaml bindings are broken on Windows/MinGW. Try building
> > with cmake instead of configure&make. The cmake build ignores the OCaml
> > bindings.
> One does not need to use cmake build to disable buildings :slight_smile: It is
> possible to configure with
> --enable-bindings=none.
>
> Also, I’d suggest to use at least LLVM release 2.8, not 2.7 one.
>
> –
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University

|

Did you specify "--program-prefix=llvm-" on your configure line? That's what tells the llvm-gcc build to use the llvm-* names for the executables.

-Jim

Thanks a lot. It worked !!!

Akramul

— On Wed, 22/12/10, Jim Grosbach grosbach@apple.com wrote:


> From: Jim Grosbach grosbach@apple.com
> Subject: Re: [LLVMdev] LLVM installation in Windows
> To: “akramul azim” bijoy123_8@yahoo.com
> Cc: “Óscar Fuentes” ofv@wanadoo.es, “Anton Korobeynikov” anton@korobeynikov.info, llvmdev@cs.uiuc.edu
> Date: Wednesday, 22 December, 2010, 7:50 PM
>
> Did you specify “–program-prefix=llvm-” on your configure line? That’s what tells the llvm-gcc build to use the llvm-* names for the executables.
>
> -Jim
>
> On Dec 21, 2010, at 7:27 PM, akramul azim wrote:
>
> > Thanks a lot both of you. Using --enable-bindings=none, I could build and install LLVM 2.8 and gcc-4.2-2.8 source. However, in the bin directory, I get c++.exe, cpp.exe, gcc.exe, g++.exe instead of llvm-c++.exe, llvm-cpp.exe, llvm-gcc.exe, llvm-g++. Are they the same?
> > Akramul
> >
> > — On Tue, 21/12/10, Anton Korobeynikov anton@korobeynikov.info wrote:
> >
> > From: Anton Korobeynikov anton@korobeynikov.info
> > Subject: Re: [LLVMdev] LLVM installation in Windows
> > To: “Óscar Fuentes” ofv@wanadoo.es
> > Cc: “akramul azim” bijoy123_8@yahoo.com, llvmdev@cs.uiuc.edu
> > Date: Tuesday, 21 December, 2010, 6:41 PM
> >
> > > Possibly the OCaml bindings are broken on Windows/MinGW. Try building
> > > with cmake instead of configure&make. The cmake build ignores the OCaml
> > > bindings.
> > One does not need to use cmake build to disable buildings :slight_smile: It is
> > possible to configure with
> > --enable-bindings=none.
> >
> > Also, I’d suggest to use at least LLVM release 2.8, not 2.7 one.
> >
> >
> > –
> > With best regards, Anton Korobeynikov
> > Faculty of Mathematics and Mechanics, Saint Petersburg State University
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

|

Glad to hear that. Welcome to LLVM!

-Jim