Henrik Bach
2004-Nov-02 16:33 UTC
[LLVMdev] LLVM tools sufficient to build the cfrontend for windows from MinGW?
Hi, I'm able to build the llvm tools on the MinGW platform: burg, fpcmp, tblgen, llvm-as, llvm-dis, opt, gccas, llc, llvm-link, lli, gccld, llvm-stub, analyze and extract. I wonder if these tools are sufficient to start build the cfrontend? Henrik. _________________________________________________________________ Undg� pop-ups med MSN Toolbar - http://toolbar.msn.dk hent den gratis!
John Criswell
2004-Nov-02 16:36 UTC
[LLVMdev] LLVM tools sufficient to build the cfrontend for windows from MinGW?
Henrik Bach wrote:> Hi, > > I'm able to build the llvm tools on the MinGW platform: burg, fpcmp, > tblgen, llvm-as, llvm-dis, opt, gccas, llc, llvm-link, lli, gccld, > llvm-stub, analyze and extract. > > I wonder if these tools are sufficient to start build the cfrontend?Yes, I believe they should be. -- John T.> > Henrik. > > _________________________________________________________________ > Undgå pop-ups med MSN Toolbar - http://toolbar.msn.dk hent den gratis! > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-- ********************************************************************* * John T. Criswell Email: criswell at uiuc.edu * * Research Programmer * * University of Illinois at Urbana-Champaign * * * * "It's today!" said Piglet. "My favorite day," said Pooh. * *********************************************************************
Reid Spencer
2004-Nov-02 16:37 UTC
[LLVMdev] LLVM tools sufficient to build the cfrontend for windows from MinGW?
Pretty much but you'll need gccas and gccld as well. You should ensure that a "make tools-only" from the top level succeeds. Reid. Henrik Bach wrote:> Hi, > > I'm able to build the llvm tools on the MinGW platform: burg, fpcmp, > tblgen, llvm-as, llvm-dis, opt, gccas, llc, llvm-link, lli, gccld, > llvm-stub, analyze and extract. > > I wonder if these tools are sufficient to start build the cfrontend? > > Henrik. > > _________________________________________________________________ > Undgå pop-ups med MSN Toolbar - http://toolbar.msn.dk hent den gratis! > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev >
Jeff Cohen
2004-Nov-02 16:48 UTC
[LLVMdev] LLVM tools sufficient to build the cfrontend for windows from MinGW?
The problem with building the frontend on Windows is that gcc cannot be bootstrapped using Window's native compiler -- i.e. VC++ -- unlike every other platform. It can be built on Windows using gcc, of course, but even then only if the entire GNU environment is present. The real problem is that the bootstrapped frontend binaries built using gcc may not properly link with LLVM binaries built using VC++. After all, gcc runs on Windows only by deluding itself into thinking it's really running on Unix, and it does this by using a runtime that emulates Unix. This runtime cannot be happy sharing a process with the VC++ runtime. I think it will be "challenging" to get cfrontend built and running on Windows. On Tue, 02 Nov 2004 17:33:42 +0100 "Henrik Bach" <henrik_bach_llvm at hotmail.com> wrote:> Hi, > > I'm able to build the llvm tools on the MinGW platform: burg, fpcmp, tblgen, > llvm-as, llvm-dis, opt, gccas, llc, llvm-link, lli, gccld, llvm-stub, > analyze and extract. > > I wonder if these tools are sufficient to start build the cfrontend? > > Henrik. > > _________________________________________________________________ > Undg_ pop-ups med MSN Toolbar - http://toolbar.msn.dk hent den gratis! > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
Chris Lattner
2004-Nov-02 16:59 UTC
[LLVMdev] LLVM tools sufficient to build the cfrontend for windows from MinGW?
On Tue, 2 Nov 2004, Henrik Bach wrote:> I'm able to build the llvm tools on the MinGW platform: burg, fpcmp, tblgen, > llvm-as, llvm-dis, opt, gccas, llc, llvm-link, lli, gccld, llvm-stub, > analyze and extract. > > I wonder if these tools are sufficient to start build the cfrontend?Yes, I think the only tools used by the C front-end are gccas, gccld, and lli, so that should work! :) -Chris -- http://llvm.org/ http://nondot.org/sabre/
Chris Lattner
2004-Nov-02 17:25 UTC
[LLVMdev] LLVM tools sufficient to build the cfrontend for windows from MinGW?
On Tue, 2 Nov 2004, Jeff Cohen wrote:> The problem with building the frontend on Windows is that gcc cannot be > bootstrapped using Window's native compiler -- i.e. VC++ -- unlike every > other platform. It can be built on Windows using gcc, of course, but > even then only if the entire GNU environment is present.Yeah, annoying. Unfortunately we're not up to fixing GCC :)> The real problem is that the bootstrapped frontend binaries built using > gcc may not properly link with LLVM binaries built using VC++. AfterI don't think this is a problem. In particular, the C front-end doesn't use any of the LLVM libraries itself: it just outputs a .ll file to a file, then gccas/gccld (separate LLVM tools, built without GCC source) operate on the result. I don't think ABI or linking problems should be an issue.> I think it will be "challenging" to get cfrontend built and running on > Windows.I agree to a certain extent. Certainly the only way that makes sense is to use cygwin or mingw to do the job. If you're willing to do that, it should work just fine. Over the summer, I had llvmgcc working with cygwin and it seemed happy. :) -Chris> all, gcc runs on Windows only by deluding itself into thinking it's > really running on Unix, and it does this by using a runtime that > emulates Unix. This runtime cannot be happy sharing a process with the > VC++ runtime. > > > > On Tue, 02 Nov 2004 17:33:42 +0100 > "Henrik Bach" <henrik_bach_llvm at hotmail.com> wrote: > > > Hi, > > > > I'm able to build the llvm tools on the MinGW platform: burg, fpcmp, tblgen, > > llvm-as, llvm-dis, opt, gccas, llc, llvm-link, lli, gccld, llvm-stub, > > analyze and extract. > > > > I wonder if these tools are sufficient to start build the cfrontend? > > > > Henrik. > > > > _________________________________________________________________ > > Undg_ pop-ups med MSN Toolbar - http://toolbar.msn.dk hent den gratis! > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev >-Chris -- http://llvm.org/ http://nondot.org/sabre/
Seemingly Similar Threads
- [LLVMdev] LLVM tools sufficient to build the cfrontend for windows from MinGW?
- [LLVMdev] LLVM tools sufficient to build the cfrontend for windows from MinGW?
- [LLVMdev] problem compiling the cfrontend on Linux/PPC
- [LLVMdev] problem compiling the cfrontend on Linux/PPC
- [LLVMdev] problem compiling the cfrontend on Linux/PPC