You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/include/c++/v1/ios:561:20: error: implicit instantiation of undefined template 'std::char_traits<std::byte>'
561 | typedef typename traits_type::int_type int_type;
| ^
/usr/include/c++/v1/__ostream/basic_ostream.h:40:59: note: in instantiation of template class 'std::basic_ios<std::byte>' requested here
The problem is that libc++ follows C++ standard and does not define std::char_traits<std::byte> (see jtv/libpqxx#726 for more discussions).
The problem can be fixed by replacing std::byte with char in this class everywhere (might be not the most beautiful solution, but it follows the standard).
Could you fix it please?
Operating System
Gentoo
CPU
GPU
ROCm Version
ROCm 6.3.0
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
It is not correct to use a std::basic_ostringstream<std::byte> since it
would require std::char_traits to be defined for std::byte. Such trait
is not defined for std::byte.
This issue causes build problem when against libc++-18 or above, as it
does not provide an implementation for std::char_traits<std::byte>.
This patch proposes to not rely on basic_ostringstream, but instead a
plain vector of std::byte.
Bug: #18
Bug: SWDEV-503716
Change-Id: I3deb0273ffdc6ba9977a6c29f25e41c12ffa7c64
Problem Description
Hi,
This code fails to compile with clang >= 18 on libc++ systems:
ROCdbgapi/src/os_driver.cpp
Lines 998 to 1040 in defc3d5
with
The problem is that libc++ follows C++ standard and does not define
std::char_traits<std::byte>
(see jtv/libpqxx#726 for more discussions).The problem can be fixed by replacing
std::byte
withchar
in this class everywhere (might be not the most beautiful solution, but it follows the standard).Could you fix it please?
Operating System
Gentoo
CPU
GPU
ROCm Version
ROCm 6.3.0
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: