<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/118964>118964</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
libc: FEnvImpl.h `error: static assertion failed due to requirement`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
build-problem,
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
```
FAILED: projects/libc/utils/gpu/server/CMakeFiles/llvmlibc_rpc_server.dir/build/source/libc/src/stdio/printf_core/converter.cpp.o
/opt/sccache//sccache /build/source/build-llvm/bin/clang++ -DLIBC_COPT_ARRAY_ARG_LIST -DLIBC_COPT_MEMCPY_USE_EMBEDDED_TINY -DLIBC_COPT_PRINTF_DISABLE_INDEX_MODE -DLIBC_COPT_PRINTF_DISABLE_STRERROR -DLIBC_COPT_PRINTF_DISABLE_WRITE_INT -DLIBC_COPT_USE_C_ASSERT -DLIBC_NAMESPACE=__llvm_libc_20_0_0_ -DLIBC_TYPES_LONG_DOUBLE_IS_FLOAT64 -I/build/source/build-llvm/tools/clang/stage2-bins/projects/libc/utils/gpu/server -I/build/source/libc/utils/gpu/server -I/build/source/libc -I/build/source/libc/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=../../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -O2 -DNDEBUG -g1 -std=c++17 -MD -MT projects/libc/utils/gpu/server/CMakeFiles/llvmlibc_rpc_server.dir/build/source/libc/src/stdio/printf_core/converter.cpp.o -MF projects/libc/utils/gpu/server/CMakeFiles/llvmlibc_rpc_server.dir/build/source/libc/src/stdio/printf_core/converter.cpp.o.d -o projects/libc/utils/gpu/server/CMakeFiles/llvmlibc_rpc_server.dir/build/source/libc/src/stdio/printf_core/converter.cpp.o -c /build/source/libc/src/stdio/printf_core/converter.cpp
In file included from /build/source/libc/src/stdio/printf_core/converter.cpp:20:
In file included from /build/source/libc/src/stdio/printf_core/converter_atlas.h:29:
In file included from /build/source/libc/src/stdio/printf_core/float_dec_converter.h:17:
In file included from /build/source/libc/src/__support/float_to_string.h:17:
In file included from /build/source/libc/src/__support/FPUtil/dyadic_float.h:12:
In file included from /build/source/libc/src/__support/FPUtil/FEnvImpl.h:31:
/build/source/libc/src/__support/FPUtil/x86_64/FEnvImpl.h:377:5: error: static assertion failed due to requirement 'sizeof(fenv_t) == sizeof(__llvm_libc_20_0_0_::fputil::internal::FPState)': Internal floating point state does not match the public fenv_t type.
377 | sizeof(fenv_t) == sizeof(internal::FPState),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/source/libc/src/__support/FPUtil/x86_64/FEnvImpl.h:377:20: note: expression evaluates to '28 == 32'
377 | sizeof(fenv_t) == sizeof(internal::FPState),
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
full log: https://llvm-jenkins.debian.net/job/llvm-toolchain-binaries/architecture=i386,distribution=unstable,label=i386/2194/console
Regression range: 9a4c5a59d4ec..dd7a3d4d798e
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMV81u2zoWfhp6Q9CQKduyF14ollUYiOPAduHJSqDJI5ktReqSlJvcxTz7gJLzd6e30-ltgSqBEpKH33f-dHjInJO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