<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/122500>122500</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc] gcc errors related to complex floats
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
lntue,
Sh0g0-1758
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nickdesaulniers
</td>
</tr>
</table>
<pre>
```
$ gcc --version | head -n1
gcc (Debian 14.2.0-3+build3) 14.2.0
$ cmake ../runtimes -G Ninja -DLLVM_ENABLE_RUNTIMES="libc" -DCMAKE_BUILD_TYPE=Release -DLLVM_LIBC_FULL_BUILD=ON
$ ninja libc-unit-tests
...
/android0/llvm-project/libc/src/complex/generic/cimagf128.cpp:16:42: error: ‘cfloat128’ was not declared in this scope; did you mean ‘float128’?
16 | LLVM_LIBC_FUNCTION(float128, cimagf128, (cfloat128 x)) {
| ^~~~~~~~~
/android0/llvm-project/libc/src/__support/common.h:49:64: note: in definition of macro ‘LLVM_LIBC_FUNCTION_IMPL’
49 | #define LLVM_LIBC_FUNCTION_IMPL(type, name, arglist) type name arglist
| ^~~~~~~
/android0/llvm-project/libc/src/complex/generic/cimagf128.cpp:16:1: note: in expansion of macro ‘LLVM_LIBC_FUNCTION’
16 | LLVM_LIBC_FUNCTION(float128, cimagf128, (cfloat128 x)) {
| ^~~~~~~~~~~~~~~~~~
...
```
is our compiler detection for complex float support broken?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0lM-O2zYQxp9mfBlIoCjLlg46yP8Ko14nSHYL9GRQ1NhmViIFktruXvLsBWVvvM0WaBoggmFZI_LjzG8-j3BOnTRRCdkCOG-1Hwg4B74Ezj-f2YlFyTzLQyhbTcTgz8aWWsnHhpwYWq3IukltmpcSZuz6YRXwKZ6kxCh6IuuU0QjzJZ5JNBjpBIFV4S3wfEW1EhqTacxjFqXAF_Wg2iYFXlyDVzXZiUfCOAa-sYP2qiOH0W-4V_qLwGi12_1xd1jvq8Vuffj0sL_f3q0_Q7oKFalaAucYrZZ31e_rw-Jhu1sd7v_8uIZ09YlaEo5eBXbbxfKwedjtLqsgXX3YX8_X40FBLBq08pEn5x2wKo7jccVG6MYa1TDgm7Z96qLemi8kfXgcM9g4G76l6fqWnoFvTqTJqjGmOnE6JjyPZd9DWiUzSKsph7RCstbY8APWHHIGRS6PrRE-4flrpMC_hENtPDYkW2GpQaXRn5VDJ01PkC6wUQ2-mAE7Evom9U4J0g2wChGT2diwt1D2y_vthz3w2y6-xG-Zhwfgt-TwGXgRmgjzxUUScZT84Quy9dfr9b8AHw5u6Htj_QV2Z3R8DjgLSKvZNKDUxlO4K40NHZVWPhjUHLET0pobnvfVH7Z3H3c3WmNd02KsC3g6itG_QLts47l_6SmA0qIb78KeWuV8wBRejfFvwZ-C9h8of41Tk--g0nMvtPtRpt_h_HXOe2Oor2-cdf0DvxleyqEZLIb6VUsWG_IkR48czSXc0jOO5-HVa1hb80ga0s2kKdOmSAsxoTKZp7MsZXnGJuey5rw5inwuecLqpJF5IqZNPSsKWee5lPOJKjnjGUsSlsynLGNxIWaMCdZIcUwTWSQwZdQJ1caha7Gxp4lybqAy4TxjbNKKmlr3OscvUy_MbFuOXa6Hk4MpC95yNwWvfDvO_nFDthqn9jh0HFpqhacGvfln0W4y2LY8e987SIOhgkWUPw91LE13ddV7c43JOuCba75PJf87AAD__yEZ5RM">