[libc-commits] [libc] Reapply "[libc] Enable wide-read memory operations by default on Linux (#154602)" (PR #154640)

Mikhail R. Gadelha via libc-commits libc-commits at lists.llvm.org
Thu Aug 21 06:16:21 PDT 2025


mikhailramalho wrote:

I think this PR broke the rv32 buildbot somehow:
```
In file included from /home/mgadelha/tools/llvm-project/libc/src/string/strxfrm.cpp:12:
/home/mgadelha/tools/llvm-project/libc/src/string/string_utils.h:31:48: error: expected namespace name
   31 | namespace string_length_impl = LIBC_NAMESPACE::wide_read;
      |                                ~~~~~~~~~~~~~~~~^
/home/mgadelha/tools/llvm-project/libc/src/string/string_utils.h:110:12: error: use of undeclared identifier 'string_length_impl'
  110 |     return string_length_impl::string_length(src);
      |            ^
2 errors generated.
```
I guess that you need to forward declare `LIBC_NAMESPACE::wide_read` as it's defined later in this file.

https://github.com/llvm/llvm-project/pull/154640


More information about the libc-commits mailing list