[cfe-dev] c++11

Thiago Farina tfransosi at gmail.com
Wed Mar 26 20:16:10 PDT 2014


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?

--
Thiago Farina



More information about the cfe-dev mailing list