[LLVMdev] Re: Starting with LLVM-GCC on Cygwin

Reid Spencer reid at x10sys.com
Tue Dec 28 08:11:59 PST 2004


I have recently completed a build on Cygwin and am now hosting the
Cygwin nightly tester. Here's some things you should know:

1. LLVM 1.4 release won't build on Cygwin so you'll have to use the
    latest CVS sources.
2. Even if you build it on Cygwin, it probably won't work unless you
    use the C Backend. See the test results here:
    http://llvm.x10sys.com/testresults/Cygwin 
3. Building on Cygwin will require you to build and install GNU 
    binutils 2.15 as the version that comes with Cygwin these days will
    assert fail on building the CFE.
4. As previously noted, you will also need GCC 3.4.3 to be built and
    installed.

My recommendation would be to either wait a week or two until we get
Cygwin issues figured out or use another platform (Linux, FreeBSD,
SPARC/Solaris, Darwin/PPC). Cygwin is not exactly the most performant
system for doing benchmarks as the Cygwin "layer" over Win32 is fairly
involved.

Reid.

On Tue, 2004-12-28 at 07:41, John T. Criswell wrote:
> Alex Vinokur wrote:
> 
> >Henrik Bach wrote:
> >  
> >
> >>You should download and install in the first shot:
> >>
> >>  a.. LLVM source code (3.5M)
> >>  f.. GCC Front End Source Code (30.0M)
> >>
> >>Then follow the items listed in
> >>http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html for Cygwin.
> >>
> >>    
> >>
> >[snip]
> >
> ><QUOTE from http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html#cygwin>
> >It has been found that the GCC 3.3.3 compiler provided with recent
> >Cygwin versions is incapable of compiling the LLVM CFE correctly. If
> >your Cygwin installation includes GCC 3.3.3 we strongly recommend that
> >you download GCC 3.4.3, build it separately, and use it for compiling
> >LLVM CFE. This has been shown to work correctly.
> ></QUOTE>
> >
> >However currently latest gcc version in Cygwin is 3.3.3.
> >
> >So, it seems that currently it is impossible to build LLVM and the GCC
> >front-end under Cygwin (?).
> >  
> >
> 
> According to what you've quoted above, you *can* build LLVM and the LLVM 
> GCC frontend under Cygwin.  The only difficulty is that you will have to 
> build GCC 3.4.3 on Cygwin first.
> 
> So, what you'll do is download the source code for GCC 3.4.3 from the 
> GCC website (http://gcc.gnu.org), compile it with GCC 3.3.3 that came 
> with Cygwin, and then use your newly built GCC 3.4.3 compiler to build 
> LLVM and the LLVM GCC frontend.
> 
> -- John T.
> 
> >  Alex Vinokur
> >     email: alex DOT vinokur AT gmail DOT com
> >     http://mathforum.org/library/view/10978.html
> >     http://sourceforge.net/users/alexvn
> >
> >_______________________________________________
> >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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041228/b889c99f/attachment.sig>


More information about the llvm-dev mailing list