[LLVMdev] Problem with building llvm-gcc

Giang Hoang ghoang84 at gmail.com
Sun Jan 15 17:44:17 PST 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120115/2299f675/attachment.html>


More information about the llvm-dev mailing list