mark-sed wrote:

I am seeing a build issue related to this change:
```
llvm/tools/llvm-strings/llvm-strings.cpp: In function ‘size_t 
{anonymous}::mbrtoc(char_t*, const char*, size_t, mbstate_t*)’:
llvm/tools/llvm-strings/llvm-strings.cpp:203:24: error: ‘mbrtoc32’ is not a 
member of ‘std’
  203 |   size_t Result = std::mbrtoc32(Ch, S, N, MBState);
      |                        ^~~~~~~~
llvm/tools/llvm-strings/llvm-strings.cpp: In function ‘size_t 
{anonymous}::crtomb(char*, char_t, mbstate_t*)’:
llvm/tools/llvm-strings/llvm-strings.cpp:210:15: error: ‘c32rtomb’ is not a 
member of ‘std’
  210 |   return std::c32rtomb(S, Ch, MBState);
      |               ^~~~~~~~
```

This is most likely related to our older system and our RHEL6 toolchain, so I 
am not sure if this is something that you'll fix, but before we could build on 
these machines and now we cannot. But the fix should not be too difficult. 
AFAIK `mbrtoc32()` is just a wrapper around `mbrtowc()` and for `c32rtomb` we 
could go through `std::wcrtomb`.

I have `gcc-13.3.0-rhel6` which had its libstdc++ configured against RHEL6's 
glibc 2.12. In its `bits/c++config.h`, `_GLIBCXX_USE_C11_UCHAR_CXX11` is not 
defined, so <cuchar> declares nothing and the build fails.

Upstream CI builds agains newer glibc, so the build bot never sees this.

https://github.com/llvm/llvm-project/pull/221794
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to