On Wed, Feb 9, 2011 at 9:40 AM, NAKAMURA Takumi <geek4civic at gmail.com>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'"> I doubt you did configure with "--prefix= /cygdrive/c/llvm-2.8" and > you were trying to build llvm on /cygdrive/c/llvm-2.8 > , ... it would be wrong. > > In common sense, build directory must be under your home directory or > temporary directory. > >[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? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110209/5aad7f43/attachment.html>
On Thu, Feb 10, 2011 at 3:19 AM, Anand Arumugam <anand.arumug at gmail.com> wrote:> [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'"> 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?Sure. And, ... I missed your former article; I guess below. - You had attempted iteratively "make install" - At your 1st configure, your build directory /cygdrive/c/llvm-2.8 would not contain /cygdrive/c/llvm-2.8/include/llvm_c. - At your 1st "make install", you might get failure to attempt to install include/llvm/Config/* to same directory on the filesystem. (would succeed to install other include/llvm/*, include/llvm_c/* INTO THE BUILD DIRECTORY!) - At your 2nd build and install, everything went messily! Do you understand what "--prefix=/cygdrive/c/llvm-2.8" means? I recommend you should erase all src, build, install directories(rm -rf /cygdrive/c/llvm-2.8), and retry building on separated directory. ps. I don't also recommend to build on upper directory (src=/cygdrive/c/llvm-2.8/src, build=/cygdrive/c/llvm-2.8). Then you would lose benefit to clean up a build with "rm -rf {build directory}". An example of recommendation is; - src: /home/tsundere/sources/llvm-2.8 - build: /home/tsundere/working/directory/to/build/llvm --prefix=/cygdrive/c/llvm-2.8 (I suggest it would be possible with --prefix=/usr/local on cygwin) ...Takumi
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
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>