clang build error

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?


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