<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/147879>147879</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc] Bazel Builds not Working Properly
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bassiounix
</td>
</tr>
</table>
<pre>
There's a problem with `mpfr` and `libgmp` builds with bazel in libc, I could only compile libc by disabling `mpfr`, which in turn causes many tests to have `NO STATUS` or just fail.
The issue is known on Fedora Linux and Mac, reported to work on Debian and it was ok with `mpfr=system`. These are the tested platform so far.
How to get it to work is by:
```sh
bazel build --features=layering_check --config=generic_clang --@llvm-project//libc:mpfr=disable @llvm-project//libc/...
```
indide `llvm-project/utils/bazel/`.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0k1uL2zoQxz-N_DLEKPIlmwc_ZE8I58DpBTalj4suY1sbWTKSnKz76YuUXbotFEKM5bn85v_X8BD0YBE70jyS5ljwJY7OdyKdu8Xq10I4tXbnET0StgvAYfZOGJzgpuMIpKXT3HvSUuBWpVejxTDN6UAs2qhwjxP8BxrQFowWkrB_4D-QbjEKnDUrSDfN2mD-CGIFpQMXRtvhQ_2UdBu1HFOVuHgLki8BA0zcrhAxxADRwcivmLI-f4Gn8-H87SmROA8vS4jQc21KQg-EHs4jgg5hSf9wse5mwVk4oXKew__aLq95oE8803qcnY-oUoeb85cUe0Shuc1ROsKNB3CX30WpjmENESfS0hLOIwYE7hHiiJkXFcyGx975CYKDnvs3tn_dLTUaMKbK7y11ALGSKgUkOfIvjIQe7tpmtWGz6ZHHxWMg1dHwFb22w7McUV5gs5HO9nog1XFAi17LZ2m4HWCzITU15jptZu9eUEbCToSdslXV4W2UuycI8PdYdirL8iMeoQdtlVbZkT-SlqhNIOyU6VORlpaF6iq1r_a8wG67a9h2u2_quhg7VssH2rdUtQ1X9Rards8btm_aljd8_0AL3THKGrrbUlo1jNWlEKphquml7LGWckdqilOyP2GUzg9Fdr_b1ruH3b4wXKAJeQsYuw_D0j74LmOLZQhpbh1i-FUh6mjy5uSE5giP2YnH-723LsJ35y_pGn_1bkZv1mLxphtjnEMyMis36DguopRuSjKa6_vjg1SZNGn1Bnvt2M8AAAD__2D8NPI">