<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58224>58224</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libcxx] macOS SDK 12.3: fatal error: 'string.h' file not found
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
H-G-Hristov
</td>
</tr>
</table>
<pre>
During CMake configuration of a project I'm seeing:
> [cmake] -- System SDK Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
[cmake] -- Bulding as exportable library is ON
[cmake] -- Architecture is "arm64;x86_64"
[cmake] -- Found ccache. It will be used for building (conan packages won't be affected)
[cmake] -- Conan: Automatic detection of conan settings from cmake
[cmake] In file included from <stdin>:1:
[cmake] In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:506:
[cmake] In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
[cmake] In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
[cmake] In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:641:
[cmake] In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:60:
[cmake] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string.h:60:15: fatal error: 'string.h' file not found
[cmake] #include_next <string.h>
[cmake] ^~~~~~~~~~
[cmake] 1 error generated.
[cmake] -- Conan: Settings= -s;build_type=Debug;-s;compiler=apple-clang;-s;compiler.version=13.1;-s;compiler.libcxx=libc++;-s;compiler.cppstd=20;-s;arch=arm64;-s;arch_build=arm64;-s;os.version=10.12
The project uses Conan 1.53.0, CMake 3.24.2, Xcode 13 on macOS Monterrey.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVVktzozgQ_jX4orIKJAP2gUNsJzuprexMVeYwN5cQjWEjECUJx_732wIcZ2LPbu2eNi5KFurX1w-6levilG17U7d7snkSL0Ckbst63xvhat0SXRJBOqP_BOnIY8DShlgA5A74XRBug_C88nsSxGvZoIog3pL5nDyfrIOGPG9_J9-Eq1CABOzhrutULQflFl9_SF0AFV2H-41uHbTOH2_hAEp3YHD_TQlXatP48ychvz7_oN109IETTV2YIkY5tcXLhO9nbOteFd5lYQkcO22cyBUQVedGmBOpLfn6x025OyOr2mEsegOeLWBMmCZZBHx9XCY73DB2U_BB921BpBSyAkoeHXmtlSI5kN5CQdAXkvf1iClgS8yBaEkn5IvYgyWvusXIO88uyhKtQxGw1U07Gy_pQ33XO91gmCUpwAOekjlqtuAcmrKkNLoho_yVtseWlDVGpW6l6guP0jMHfGMd4sSEo5noUgb_LPlfkv9dayUrUV_4t1CKXjl6lO5MQ1JvPXc-7CnFZbKNOxmw9fA8HCJcrDNj-cZh8lnR7w41vPrwp_Hnc2G3u6Qg_XzwhdprU7uqQejJ4hN-APIt_El4E_3_BOcIk1ZnoJGvdVIKJxQBY7QZJ0r6xsfSMeqtdthRsd_eco1P9nYtHN3Yzc5m7q_5f_4F8X2Q_vq5ko5GnGQPLeA8hYL-fc9-ntpywPEc1_UwE3bu1AEebSHvMWvrgSJ106GvGIMtpkXBXCrRXlHpAYzFHCJXxGl0RcaBJ49HpPrNFP2PPLLrsOEjDwvPNIFT0BueJt_b2W7A-5Gi7XsYIY3Y-4vD9wre7hc4C-0YDRLRmNMwYJvpVsIpW1Dm34faIhEnONAaP-nJk69IY-BE3yueQRYlSRxxHqfRrMh4seIrMXO1U5BhBibfMQWjFn9P8XeGf1tks96orHKus_5jYg_47LE99DnFEOKLUofz33xy1Fe9tT34TyVeMraYVZlYgWSCLYsFy8PVosg5K_OER_FyuYoZyJkSOSjrkSPmWZ2xkLEoDNNwFSZRRIs45wmLikUqUi5yFixCaEStqDdMtdnPTDZgwCKySFS1dfZCFNbW-xbgrF_0rtIm-zL_bf7FIKs-zAbI2YD3L37MOPk">