[cfe-dev] Error while compiling clang 2.9 on linux

Diptansu Das diptansu at gmail.com
Thu Apr 14 14:22:59 PDT 2011


Thanks, that fixed that problem. Now I am getting another error:

In file included from
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/include/emmintrin.h:34,
                 from <path to src>/tools/clang/lib/Lex/Lexer.cpp:1520:
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/include/xmmintrin.h: In
function `float __vector__ _mm_set_ps(float, float, float, float)':
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/include/xmmintrin.h:894: error:
ISO C++ forbids compound-literals

The internet tell that this is due to the wrong SSE library being
used.... how can this be rectified ?


On Thu, Apr 14, 2011 at 4:12 PM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
>> Whats the workaround ? I cannot get hold of gcc 4.x....
> http://pastebin.com/k6Zq5kkv
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>



More information about the cfe-dev mailing list