[cfe-dev] LLVM and Clang 3.1 on CentOS 5.6 GCC 4.4

Konstantin Tokarev annulen at yandex.ru
Tue Aug 7 05:28:18 PDT 2012



> After starting configure as:
> 
> CC=gcc44 CXX=g++44 ../configure --prefix=/home/dev/software-builds/llvm-3.1_install --enable-optimized --enable-assertions --with-c-include-dirs=/usr/include/c++/4.4.6
> 
> I get this error message:
> 
> ...
> MKDIR: /home/dev/software-builds/llvm-3.1.src/build/tools/clang/runtime/compiler-rt/clang_linux/asan-i386
> 
> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvdi2.c
> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvsi2.c
> 
> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvti2.c
> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/adddf3.c
> 
> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/addsf3.c
> In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvdi2.c:15:
> 
> In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_lib.h:41:
> In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_types.h:21:
> 
> /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_endianness.h:71In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvsi2.c:15:
> 
> In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_lib.h:41:
> In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_types.h:21:
> 
> /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_endianness.h:71:10: fatal error: 'endian.h' file not found
> :#include <endian.h>
> 
> ^
> 10: fatal error: 'endian.h' file not found
> #include <endian.h>
> 
> ^1 error generated.
> 
> What am I doing wrong?

You are missing /usr/include in --with-c-include-dirs list

 -- 
Regards,
Konstantin



More information about the cfe-dev mailing list