[LLVMdev] fail to build LLVM GCC front-end

Jiandong Wang computerhenu at gmail.com
Thu Apr 29 00:17:11 PDT 2010


I followed the instructions in llvm_gcc's README.LLVM file, but not exactly
the same.

the following is what I have done with LLVM:
./configure --disable-optimized --enable-checking
make
make install
(Successful)

now the llvm-gcc:
cd /home/username
mkdir obj
mkdir install
cd obj

../llvm-gcc/configure --prefix=`pwd`/../install --program-prefix=llvm-
--enable-llvm=/home/username/llvm-2.7/Debug --enable-languages=c,c++

make LLVM_VERSION_INFO=2.7
make install

the mentioned-above errors occured here.
Is something wrong?

On Thu, Apr 29, 2010 at 12:57 PM, Eric Christopher <echristo at apple.com>wrote:

>
> On Apr 28, 2010, at 9:31 PM, Jiandong Wang wrote:
>
> > I try to build it on Ubuntu9.04, but in vain. There are errors:
> >
> > ...
> > ...
> > make[3]: *** No rule to make target
> `/home/username/llvm-2.7/Debug/include/llvm/Intrinsics.gen', needed by
> `llvm-convert.o'.  Stop.
> > make[3]: Leaving directory `/home/username/obj/gcc'
> > make[2]: *** [all-stage1-gcc] Error 2
> > make[2]: Leaving directory `/home/username/obj'
> > make[1]: *** [stage1-bubble] Error 2
> > make[1]: Leaving directory `/home/username/obj'
> > make: *** [all] Error 2
> > make[1]: Entering directory `/home/username/obj'
> > /bin/sh ../llvm-gcc/mkinstalldirs /home/username/obj/../install
> /home/username/obj/../install
> > cd: 5: can't cd to ./fixincludes
> > make[1]: *** [install-fixincludes] Error 2
> > make[1]: Leaving directory `/home/username/obj'
> > make: *** [install] Error 2
> >
> > where I went wrong?
>
> How did you try building it?
>
> -eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100429/0e4f29cc/attachment.html>


More information about the llvm-dev mailing list