[LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio 2005?

Chuck Rose III cfr at adobe.com
Wed Feb 13 08:52:12 PST 2008


I have always built it with flex and bison installed, though I believe
Chris removed our last dependence on flex a little while back, so you
may not need that.  I'm using bison 2.1 which I got from the getgnuwin32
folks.  I imagine that if you have cygwin or the like, you probably
already have everything.

You will need to have the executables in your path.

I build with VisualStudio 2k5 Professional with VStudio SP1 installed.
I typically work on Vista32 or Vista64, but have compiled on XP as well.


I don't know how up to date the LLVM docs related to Visual Studio
compilation are.  

Thanks,
Chuck.


-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Seung Jae Lee
Sent: Tuesday, February 12, 2008 9:52 PM
To: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio
2005?

Thanks for your comment.
I also tried for LLVM 2.2 but got the same compilation errors on VS2005.
(I didn't modify anything before the compilation)

I just wonder if I need bison and flex even just in the case of
compiling them on VS2005 without changing anything because the LLVM doc
says "If you plan to modify any .y or .l files, you will need to have
bison and/or flex installed where Visual Studio can find them.
Otherwise, you do not need them and the pre-generated files that come
with the source tree will be used."

One of errors of mine is as follows:
-------------------------------------------------------
...
7>llvmAsmParser.cpp
7>c1xx : fatal error C1083: Cannot open source file:
'.\llvmAsmParser.cpp': No such file or directory
...
-------------------------------------------------------
where llvmAsmParser.cpp is related to Bison so I am compelled to feel to
try installing flex/bison on my machine, anyway.

Forgive my ignorance, could you briefly tell me about that?
Thank you in advance.

Seung

---- Original message ----
>Date: Tue, 12 Feb 2008 18:20:59 -0800
>From: "Chuck Rose III" <cfr at adobe.com>  
>Subject: Re: [LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio
2005?  
>To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu>
>
>Hola Seung,
>
>I don't know if 2.1 in particular worked.  I updated the 2.2 win32
>vstudio 2k5 files right before lockdown, so they should be building.
>You will need appropriate versions of flex and bison installed.  I used
>the ones from getgnuwin32 on my machine.
>
>Good luck.
>
>Chuck.
>
>-----Original Message-----
>From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
>On Behalf Of Seung Jae Lee
>Sent: Monday, February 11, 2008 10:05 PM
>To: llvmdev at cs.uiuc.edu
>Subject: [LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio
>2005?
>
>Hello all,
>
>Is there anyone has tried LLVM 2.1 on Visual Studio 2005?
>I did but not succeed due to some build errors.
>I seem to remember I read somewhere on this list it's compiled on
VS2005
>so I wonder...
>Have a good night.
>
>Thx,
>Seung
>_______________________________________________
>LLVM Developers mailing list
>LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>_______________________________________________
>LLVM Developers mailing list
>LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list