[LLVMdev] Problem with building llvm-gcc

Giang Hoang ghoang84 at gmail.com
Sun Jan 15 18:57:56 PST 2012


Thank you,  I did try that and got the following error:


checking for library containing strerror... configure: error: Link tests
are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libiberty] Error 1
make[1]: Leaving directory `/home/ghoang/llvm-test/llvm-gcc-2.8-build'
make: *** [all] Error 2


I also tried adding --disable-libiberty but make would fail even earlier
with the following error:



make[1]: Entering directory `/home/ghoang/llvm-test/llvm-gcc-2.8-build'
make[2]: Entering directory
`/home/ghoang/llvm-test/llvm-gcc-2.8-build/fixincludes'
make[2]: *** No rule to make target `../libiberty/libiberty.a', needed by
`full-stamp'.  Stop.
make[2]: Leaving directory
`/home/ghoang/llvm-test/llvm-gcc-2.8-build/fixincludes'
make[1]: *** [all-fixincludes] Error 2
make[1]: Leaving directory `/home/ghoang/llvm-test/llvm-gcc-2.8-build'
make: *** [all] Error 2


Giang

On Sun, Jan 15, 2012 at 8:06 PM, Liu <proljc at gmail.com> wrote:

> try --disable-libmudflap when you config llvm-gcc FE:)
>
> On Mon, Jan 16, 2012 at 9:44 AM, Giang Hoang <ghoang84 at gmail.com> wrote:
> > Hi,
> >
> > I am trying to build the front end llvm-gcc 2.8 on 32-bit Ubuntu 10.04,
> > using gcc 4.2.4.  I was able to configure and build llvm-2.8 in the
> > directory llvm-2.8-build.  Here is the command I used to configure
> llvm-gcc
> > build:
> >
> > ../llvm-gcc-4.2-2.8.source/configure   --enable-checking
> --disable-bootstrap
> > --disable-multilib --enable-llvm=/home/ghoang/llvm-test/llvm-2.8-build/
> > --enable-languages=c
> >
> > And this is the error that I got:
> >
> > checking for i686-pc-linux-gnu-gcc...
> > /home/ghoang/llvm-test/llvm-gcc-2.8-build/./gcc/xgcc
> > -B/home/ghoang/llvm-test/llvm-gcc-2.8-build/./gcc/
> > -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/
> > -isystem /usr/local/i686-pc-linux-gnu/include -isystem
> > /usr/local/i686-pc-linux-gnu/sys-include
> > checking for C compiler default output file name... configure: error: C
> > compiler cannot create executables
> > See `config.log' for more details.
> > make[1]: *** [configure-target-libmudflap] Error 1
> > make[1]: Leaving directory `/home/ghoang/llvm-test/llvm-gcc-2.8-build'
> > make: *** [all] Error 2
> >
> > To avoid this error, I tried adding the flag --disable-libmudflap and I
> got
> > a new error:
> >
> > checking for library containing strerror... configure: error: Link tests
> are
> > not allowed after GCC_NO_EXECUTABLES.
> > make[1]: *** [configure-target-libiberty] Error 1
> > make[1]: Leaving directory `/home/ghoang/llvm-test/llvm-gcc-2.8-build'
> > make: *** [all] Error 2
> >
> > I also tried building version 2.9 but also encountered the same error.
>  It
> > seems that the setup of my system is missing some libraries.  Any
> > recommendation to solve these problems would be appreciated.
> >
> > Thank you,
> >
> > Giang
> >
> >
> >
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120115/d2277f7a/attachment.html>


More information about the llvm-dev mailing list