c++11

Hi,

When running `cmake ../llvm/ -G Ninja -DLLVM_ENABLE_CXX11=ON
-DLLVM_ENABLE_LIBCXX=ON`

This test fails:
Performing Test CXX_SUPPORTS_CXX11 - Failed

The clang I have is:

$ clang --version
clang version 3.5 (trunk 202554)
Target: x86_64-unknown-linux-gnu
Thread model: posix

$ which clang
/home/tfarina/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang

$ clang++ --version
clang version 3.5 (trunk 202554)
Target: x86_64-unknown-linux-gnu
Thread model: posix

$ which clang++
/home/tfarina/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang++

GCC is:

$ gcc --version
gcc (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04) 4.6.4
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ which gcc
/usr/bin/gcc

What is the fix? Upgrade gcc?

Hi,

GCC is:

$ gcc --version
gcc (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04) 4.6.4
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ which gcc
/usr/bin/gcc

What is the fix? Upgrade gcc?

Exactly. Minimal required version is 4.7.0 (see
http://llvm.org/docs/GettingStarted.html)

Right, got it following http://askubuntu.com/a/315220

And rerunning cmake.

Thanks,