<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57644>57644</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Apple Clang: fatal error: 'string.h' file not found #include_next <string.h>
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          H-G-Hristov
      </td>
    </tr>
</table>

<pre>
    I'm seeing this error with Apple Clang during CMake configuration.

> -- The C compiler identification is AppleClang 13.1.6.13160021
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- System SDK Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
-- Bulding as exportable library is ON
-- Architecture is "arm64;x86_64"
-- Found ccache. It will be used for building (conan packages won't be affected)
-- Conan: Automatic detection of conan settings from cmake
In file included from <stdin>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:506:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:641:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:60:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:60:15: fatal error: 'string.h' file not found
#include_next <string.h>
              ^~~~~~~~~~
1 error generated.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVVl1vozoQ_TXkxYoFJkDzwEOatHerq_2Qug99i4wZwBuDkW3S9t_vGPLRrXaj7r3Saps4xODjmTNnzNiFLp_zu4BlLbEAsquJa6QlYIw25FG6hqz6XgFZK45j5WA8ZP2R74AI3VWyHgx3Unc0CDdBuDpc4xsyn5OvDc5DWNtLBYbIEjonKynGCQS9jKYny1FMI5rSKI7SMGTRZOdo4-Hhf1rZgAPhRupnS6vrOyK7Sr8NReak1B2cwOsGxI5UXiVtdj9OCuIVCditJ3bgafH2QegSKO977K915zAO_3gDe1C6x1ns9qvWSjRcnvEbqPigHH0S7jiGQ4P16GLsC4HU7E72PZSXQiEVcDcYsG8CvQ73BfZlNi5p-DPcG1R8Me3P6hiwa2yXxTyTuyjnT2CvI79_tg5acr_5l3zhrvnPoX5R3KF-rX_-kYvP9w-0Pzx6hURXZ1DEaExtuTvxuR5U6blzfPmfem0cL5C9koXh5tm_Zp8_nbArIxrpg8XA_FDAGDdtugji66erdIsdxk7gWz10JRGCiwYouXNYVZQiBZDBQjmmvhjk5DtgV1hUeEd6Lna8RtEeNaYmcx7Oqwo9YlrY8rx8PNpLtxqcblE2QcopC1gadEUmaxacT4slldEtES0Wr8nCXUcqnyPZCTWUno0HBPHaOuSDVQxNR_i7iP5T65NSvBx8n5cr9vYRXqzzlRm5JmH6nhhv9xIevcxZ8j5ob7dnqbP3QZmrWhvcylukmy7eyYIWJ5nT8MT4L-E2UaPNkVzk1y6puONqOjlN1Tw74Vg2Kd1phxUP6-ExnPjgY9vBk5sqz9H0zYQhP3yC5Cb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