<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/100964>100964</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc][x86-64] missing entrypoints' definition in full build mode
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
overmighty
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
SchrodingerZhu
</td>
</tr>
</table>
<pre>
Recent patch lands that the `<math.h>` inclusion is replaced by `"hdr/math_macros.h"`. However, as the name suggestions, the new proxy header does not provide correct definitions for entrypoints. They should be included separately. This leads to the following unhappiness of our build bots:
```
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/utils/FPUtil/x86_long_double_test.cpp:31:32: error: use of undeclared identifier 'isnan'
ASSERT_NE(static_cast<int>(isnan(nan)), 0);
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/utils/FPUtil/x86_long_double_test.cpp:42:32: error: use of undeclared identifier 'isnan'
ASSERT_NE(static_cast<int>(isnan(nan)), 0);
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/utils/FPUtil/x86_long_double_test.cpp:53:32: error: use of undeclared identifier 'isnan'
ASSERT_NE(static_cast<int>(isnan(nan)), 0);
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/utils/FPUtil/x86_long_double_test.cpp:64:32: error: use of undeclared identifier 'isnan'
ASSERT_EQ(static_cast<int>(isnan(valid)), 0);
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/utils/FPUtil/x86_long_double_test.cpp:74:32: error: use of undeclared identifier 'isnan'
ASSERT_EQ(static_cast<int>(isnan(valid)), 0);
^
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/utils/FPUtil/x86_long_double_test.cpp:84:32: error: use of undeclared identifier 'isnan'
ASSERT_EQ(static_cast<int>(isnan(valid)), 0);
^
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsls2O5CYQx5-GvpS65S781QcfZmfayilKdjaXXFoYyoYEgwW4Z_rtIzw9yko57GUOSTQSwnxUFdSPkvwXMZrJEXWs-sIQ_ZXCbCadbgyRVU87sSbtQ_csdfDKuInC73rdDV7duq8kySVYRJIarHAqQtIiQdIErC4Yf5xF0gfN-JnVBRgn7RqNd2AiBFqskKRguG22iFoFhn32uMxCBh8POl-hLg7wk3-hKwWGjyDiFt6JmSCu00QxGe9i3trW6QWW4F9voEkoCqA8RXA-5dWrUQTSh0AygaLROLM5w-gDkEvhtnjjUjzAN003iNqvVsFAbzdXpCDSIoJIZG_ZxkSwJHLWfjt89Nb6F-MmWJ0Wy2IcxQh-BL8GGFaTg_kUGX9gxRMr3vu6uLe3Kfbaz8Swt_Y6760Z5H7zHXxi2L8P9y8-_JmR9JvFa1tf6nKvaDDC7cfV2s3wB9t7NUzvBy3B_0Ey3T0Y9olinq3J2Miw73_5LRnLsM-xrHfTRfl1sHTJdge5LIw_8GPukPEHoBB8yIM1UkawOkXSikAKjCKXzGgoAMPGRCccw-Yte3h4fj5__Xb5-cywjUkkIy9SxMT4o3EpFxK2d492609be4Qif_mXexRWnf_7NEv8pPlxNCv-SfPjaNblR9E8__pjmldhjfpf82w-eX4oz_bfyPP9R79THVcnfhI76o4NIuKxPlY73dWyRTFUQ6M4H1vEcqyLUXEuTy3JoSl2psMCy6LBU4EV59VhkKMceVmUWDRKtEdWFjQLYw-Z5MGHaWdiXKk7FsWpLndWDGTjXeq90d1EXug28sM6RVYW1sQU_46QTLKbPNwcqidWfXlt631dsuoJZhNjVjzfySeGzXfqCoyD_Mx3ATR7Rbs12E6ntGxSCHuG_WSSXoeD9PO9Cv5ZDFsi-f3vuVw7_CsAAP__wwB4EQ">