[cfe-dev] clang build error

Eli Friedman eli.friedman at gmail.com
Sat Jul 9 13:59:51 PDT 2011


On Fri, Jul 8, 2011 at 4:53 PM, Loganathan L. <saraslogo at gmail.com> wrote:
> Hi,
> While building clang and llvm, I get the following error:
> llvm[4]: Compiling HeaderSearch.cpp for Debug+Asserts build
> llvm[4]: Compiling Lexer.cpp for Debug+Asserts build
> In file included from
> /usr/pkgs/gcc/3.4.2/lib/gcc/x86_64-suse-linux/3.4.2/include/emmintrin.h:34,
>                  from /nfs/user/Clang/llvm/tools/clang/lib/Lex/Lexer.cpp:16
> 41:
> /usr/pkgs/gcc/3.4.2/lib/gcc/x86_64-suse-linux/3.4.2/include/xmmintrin.h: In
> function `float __vector__ _mm_set_ps(float, float, float, float)':
> /usr/pkgs/gcc/3.4.2/lib/gcc/x86_64-suse-linux/3.4.2/include/xmmintrin.h:894:
> error: ISO C++ forbids com pound-literals
> In file included from /nfs/user/Clang/llvm/tools/clang/lib/Lex/Lexer.cpp:16
> 41:
> /usr/pkgs/gcc/3.4.2/lib/gcc/x86_64-suse-linux/3.4.2/include/emmintrin.h: In
> function `double __vector__  _mm_set_pd(double, double)':
> /usr/pkgs/gcc/3.4.2/lib/gcc/x86_64-suse-linux/3.4.2/include/emmintrin.h:118:
> error: ISO C++ forbids com pound-literals
> I just did a ./configure before calling make. There was an earlier post
> indicating that clang comes with it own library. Is there a configure option
> to use this library instead?
> Thanks,
> Loganathan

That looks like your system compiler is broken.  Try a newer gcc version.

-Eli




More information about the cfe-dev mailing list