[Mesa-dev] [Bug 109131] cc1plus: error: unrecognized command line option "-std=c++11"
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Dec 22 07:12:23 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=109131
Bug ID: 109131
Summary: cc1plus: error: unrecognized command line option
"-std=c++11"
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Keywords: bisected, regression
Severity: normal
Priority: medium
Component: Mesa core
Assignee: mesa-dev at lists.freedesktop.org
Reporter: vlee at freedesktop.org
QA Contact: mesa-dev at lists.freedesktop.org
CC: baker.dylan.c at gmail.com, emil.l.velikov at gmail.com
CXX gallivm/lp_bld_debug.lo
cc1plus: error: unrecognized command line option "-std=c++11"
commit 12187550f9c248e72ed8848e96da8f29f1e3a713
Author: Emil Velikov <emil.velikov at collabora.com>
Date: Thu Dec 13 11:56:40 2018 +0000
configure: add CXX11_CXXFLAGS to LLVM_CXXFLAGS
Seemingly with LLVM7 and GCC 5.0, the former won't properly advertise
-std=c++11 and the latter will choke.
dd this temporary workaround, otherwise we'll get errors like:
In file included from /usr/include/c++/5/type_traits:35:0,
from
/usr/lib/llvm-7/include/llvm/Support/type_traits.h:18,
from /usr/lib/llvm-7/include/llvm/ADT/Optional.h:22,
from /usr/lib/llvm-7/include/llvm/ADT/STLExtras.h:20,
from /usr/lib/llvm-7/include/llvm/ADT/StringRef.h:13,
from
/usr/lib/llvm-7/include/llvm/Target/TargetMachine.h:17,
from ../../../src/amd/common/ac_llvm_helper.cpp:36:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file
requires compiler and library support for the ISO C++ 2011 standard. This
support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181222/f1627e10/attachment-0001.html>
More information about the mesa-dev
mailing list