[LLVMdev] glibc compilation

Bin Zeng ezengbin at gmail.com
Mon Sep 27 10:29:04 PDT 2010


  Hi All,

Did anyone try to compile glibc with llvm-gcc or clang? I tried to 
configure glibc with CC=llvm-gcc and it failed with this message:

...
checking for a BSD-compatible install... /usr/bin//install -c
checking whether ln -s works... yes
checking for gcc... llvm-gcc
checking for suffix of object files... configure: error: cannot compute 
suffix of object files: cannot compile
See `config.log' for more details.
...

In `config.log', the erros message is like this:
configure:2776: checking for suffix of object files
configure:2797: llvm-gcc -c   conftest.c >&5
/root/tools/llvm/llvm-gcc/install/bin/../libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1: 
/usr/li
b/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by 
/root/tools/llvm/llvm-gc
c/install/bin/../libexec/gcc/i686-pc-linux-gnu/4.2.1/cc1)
configure:2800: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define HAVE_LIBIDN 1
| #define USE_REGPARMS 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2814: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

Does anyone know anything about it? Thanks a lot in advance.

Bin




More information about the llvm-dev mailing list