<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62448>62448</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Build error in libc
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dtometzki
</td>
</tr>
</table>
<pre>
Hello,
i build llvm from current git llvm 17 and i got the following error:
/home/damian/kernel/llvm-project/libc/src/__support/CPP/new.cpp:14:64: error: no type named 'free' in the global namespace
void operator delete(void *mem, std::align_val_t) noexcept { ::free(mem); }
~~^
^
/home/damian/kernel/llvm-project/libc/src/__support/CPP/new.cpp:16:54: error: no type named 'free' in the global namespace
void operator delete(void *mem, size_t) noexcept { ::free(mem); }
~~^
^
/home/damian/kernel/llvm-project/libc/src/__support/CPP/new.cpp:19:5: error: no type named 'free' in the global namespace
::free(mem);
~~^
^
/home/damian/kernel/llvm-project/libc/src/__support/CPP/new.cpp:22:48: error: no type named 'free' in the global namespace
void operator delete[](void *mem) noexcept { ::free(mem); }
What can i do ?
best regards
Damian
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMlE1vnDwQxz_NcBk9KxizC3vgwGYf1GNuPa4MngU3xka2SZoc8tkrIGqiRj1UaqJeRmbGzMv_Z40MQfeWuYL9CfbnRM5xcL5S0Y0cn-500jr1WH1hYxzQDaRnSOvNamxnbRQacz_i1bsRu9l7thF7HTdvVqC0CjX2LmIcGK_OGPegbY_svfMganybEqgZ3MhAjZKjlhaouWNv2QA1S8L_Ju--cReXT912QE3wi71cwjxNzi-Bm9tboMbyw66bJhB1loOoD4t5rWkdxseJ0cqRFQIVV88MVKC2a5u9ca00azhMsuOtu3unFbqJvYzOo2LDkYHK1Q1UjzwC3WCICkQNopZG9_ZyL80lAh3ROv7e8RQRihNuN7aq5frjEcQJoThvpfD5Gfb_v5x_nj5EngOIev-J8ugn_rcFOS6C_AU98DdDvR_oM8YiAlHn5UdxXpfHr7T_kPFmvw4yYictalQOQTRvgy2HiJ576VXYPOdNoTd3ElUJdRRHmXCVHUoq9qXI8mSoWBRZRmknOr4SX0mUhWivBR9k2ious0RXlJJIczqm5T7b5zuZsuyy8kqdIO7oAHnKo9Rmt1DYOd8nOoSZqwPleZkY2bIJ6yIlsvyAaxCIlr3qq5VcO_cB8tToEMNrlqij4eq0rtOVzkJgQZvM3lRDjFNYxKMGqOl1HOZ217nx5TW8fxRr3QDUrH39CAAA__-ZrdCM">