[Mesa-dev] [Bug 88766] codegen/nv50_ir.h:585:9: error: no member named 'tr1' in namespace 'std'

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 24 05:22:02 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88766

--- Comment #5 from Francisco Jerez <currojerez at riseup.net> ---
(In reply to Ilia Mirkin from comment #4)
> (In reply to Vinson Lee from comment #3)
> > Created attachment 112757 [details] [review] [review]
> > Remove tr1 namespace.
> 
Hi Ilia,

> That would require C++11 support, which I feel a lot worse about requiring
> than having nouveau not compile with clang. I'm surprised that clang chose
> not to ship tr1 headers... oh well.
> 
Actually I suspect your platform support would increase by relying on
the C++11 standard library rather than an on a non-standard extension.
Most likely this bug is not caused by the Clang compiler itself, but by
the standard library implementation.  Apparently FreeBSD ships with
LLVM's libc++ as default implementation these days, which implements the
C++11 standard library and doesn't attempt to support the TR1 namespace,
which is a C++03-specific extension.

> If someone maps out the various version support for all this, perhaps we can
> make a decision. Or some other approach is the standard way to deal with
> this?

I'd suggest we apply Vinson's patch and then build the codegen back-end
with -std=c++0x (available on GCC 4.3 and later), otherwise GNU's
libstdc++ will emit an error if you include any of the C++11 headers
while building in C++98/03 mode.  -std=c++11 would work too but it's
only supported since GCC 4.7.  Any reasonably recent Clang version (at
least 2.9) should support both switches.

-- 
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: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150124/e721bff3/attachment.html>


More information about the mesa-dev mailing list