[LLVMdev] CVS LLVM Requires CVS llvm-gcc?

Reid Spencer reid at x10sys.com
Sat Feb 19 17:26:22 PST 2005


Evan,

You need to tell configure where the install directory for all of
llvm-gcc is located. When you configured llvm-gcc you provided a
--prefix option to the configure script. The value of that option
(location of where to install llvm-gcc) is what you need to provide to
--with-llvmgccdir= when configuring LLVM.

You should follow the instructions in the CFEBuildInstrs.html document:
http://llvm.org/docs/CFEBuildInstrs.html as well as the getting started
guide.

Say you have a directory named cfrontend and it contains these
directories:

llvm-gcc
build
install

If you do this:

  cd cfrontend/build
  ../llvm-gcc/configure --prefix=../install ...
  make ; make install

to build your llvm-gcc then the directory you want to provide to LLVM's
--with-llvmgccdir is the install directory (cfrontend/install).

Please note that it is entirely possible to build LLVM without llvm-gcc
if you're working from the CVS head (it wasn't possible in 1.4). You
will still get the big warning from the configure script, but the build
will work as it will just skip the parts that can't be built (and warn
you about that too).

Reid


On Sat, 2005-02-19 at 16:57, Evan Jones wrote:
> I am currently trying to build the CVS version of LLVM, and no matter 
> what I do, ./configure always reports that llvm-gcc cannot be found or 
> is not working. I currently have the LLVM 1.4 llvm-gcc binaries. My 
> path is set correctly:
> 
> rn-spra1c07:~/llvm/llvm ejones$ which llvm-gcc
> /Users/ejones/llvm/cfrontend/ppc/llvm-gcc/bin/llvm-gcc
> rn-spra1c07:~/llvm/llvm ejones$ which llvm-g++
> /Users/ejones/llvm/cfrontend/ppc/llvm-gcc/bin/llvm-g++
> 
> 
> So LLVM is on my path, and I ran configure with:
> 
> ./configure 
> --with-llvmgccdir=/Users/ejones/llvm/cfrontend/ppc/llvm-gcc/bin
> 
> 
> When configure runs, it prints this line:
> 
> checking whether llvm-gcc is sane... no
> 
> 
> Is this because I need to use the CVS version of llvm-gcc? Or is it a 
> problem with the configure script? The build on my 3 year old powerbook 
> takes a while (30 minutes? An hour? something like that), so I don't 
> know if the warning can be ignored yet. Any ideas?
> 
> Thank you,
> 
> Evan Jones
> 
> _______________________________________________
> 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/20050219/0d942d57/attachment.sig>


More information about the llvm-dev mailing list