[LLVMdev] Building LLVM on Cygwin.

Anand Arumugam anand.arumug at gmail.com
Thu Feb 10 19:58:37 PST 2011


Thanks to both Nakamura & Csaba Raduly. My directory structure was the
culprit. I was able to build and install LLVM and LLVM-GCC successfully.

The README.LLVM file that comes with the source is not very clear. It jumps
between platforms and makes it difficult to follow it.

Cheers,
Anand.

On Thu, Feb 10, 2011 at 6:38 AM, Csaba Raduly <rcsaba at gmail.com> wrote:

> Hi Anand
>
> On Wed, Feb 9, 2011 at 7:19 PM, Anand Arumugam  wrote:
> > On Wed, Feb 9, 2011 at 9:40 AM, NAKAMURA Takumi  wrote:
> >>
> >> Anand,
> >>
> >>
> >> I have not tried building llvm-gcc, though, ...
> >>
> >> Please show me "/path/to/config.status --version".
> >
> > [Anand] Here is the config.status output taken from
> '/cygdrive/c/llvm-2.8':
> >
> > ./config.status --version
> > llvm config.status 2.8
> > configured by src/configure, generated by GNU Autoconf 2.60,
> >   with options "'--prefix=/cygdrive/c/llvm-2.8'"
> >
> >
> ...
> >
> > [Anand] The build has to be done from a different directory than the
> source.
> > I was doing it from one level up. Whats wrong in the way I had it setup?
> >
> > So if I have given a different prefix other than the directory from where
> > the build is done, then it will work. Is that what you are saying?
> >
>
> Hi Anand,
> In your first mail, you wrote:
>
> /cygdrive/c/llvm-2.8/src <--- contains the source extracted from the
> llvm-2.8 tar ball.
>
> With "--prefix= /cygdrive/c/llvm-2.8" you are dangerously mixing the
> source and install directories.
>
> I usually build from the Subversion, with the following setup:
>
> $HOME/LLVM/llvm <- sources
> $HOME/LLVM/build-release <- build dir
> --prefix=/usr/local
>
> Csaba
> --
> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
> Life is complex, with real and imaginary parts.
> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus
> Torvalds
> "People disagree with me. I just ignore them." -- Linus Torvalds
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110210/607993b6/attachment.html>


More information about the llvm-dev mailing list