[cfe-dev] clang build error

Loganathan L. saraslogo at gmail.com
Fri Jul 8 16:53:18 PDT 2011

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
                 from /nfs/user/Clang/llvm/tools/clang/lib/Lex/Lexer.cpp:16
/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)':
error: ISO C++ forbids com pound-literals
In file included from /nfs/user/Clang/llvm/tools/clang/lib/Lex/Lexer.cpp:16
/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)':
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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110708/bf114ed0/attachment.html>

More information about the cfe-dev mailing list