[libc] libc Build is failing in llvm CI
The LLVM CI failing on Linux, and passing on Windows. The log is: https://github.com/llvm/llvm-project/actions/runs/26032772277/job/76522828958?pr=197554 and it's unrelated to my PR. This issues is present in: https://github.com/llvm/llvm-project/commit/18e5a2dbb47065dd4d9870d71431d715aa76bc14. The issue is:
[3](https://github.com/llvm/llvm-project/actions/runs/26032772277/job/76522828958?pr=197554#step:3:13464)
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/FPUtil/FEnvImpl.h:40:52: error: 'feclearexcept' used without enabling floating-point exception behavior; use 'pragma STDC FENV_ACCESS ON' or compile with '-ffp-exception-behavior=maytrap' [-Werror,-Wfenv-access]
40 | LIBC_INLINE int clear_except(int excepts) { return feclearexcept(excepts); }
| ^~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/FPUtil/FEnvImpl.h:42:51: error: 'fetestexcept' used without enabling floating-point exception behavior; use 'pragma STDC FENV_ACCESS ON' or compile with '-ffp-exception-behavior=maytrap' [-Werror,-Wfenv-access]
42 | LIBC_INLINE int test_except(int excepts) { return fetestexcept(excepts); }
| ^~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/FPUtil/FEnvImpl.h:46:3: error: 'fegetexceptflag' used without enabling floating-point exception behavior; use 'pragma STDC FENV_ACCESS ON' or compile with '-ffp-exception-behavior=maytrap' [-Werror,-Wfenv-access]
46 | fegetexceptflag(&excepts, FE_ALL_EXCEPT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/FPUtil/FEnvImpl.h:52:10: error: 'fesetexceptflag' used without enabling floating-point exception behavior; use 'pragma STDC FENV_ACCESS ON' or compile with '-ffp-exception-behavior=maytrap' [-Werror,-Wfenv-access]
52 | return fesetexceptflag(&exc, FE_ALL_EXCEPT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/FPUtil/FEnvImpl.h:55:52: error: 'feraiseexcept' used without enabling floating-point exception behavior; use 'pragma STDC FENV_ACCESS ON' or compile with '-ffp-exception-behavior=maytrap' [-Werror,-Wfenv-access]
55 | LIBC_INLINE int raise_except(int excepts) { return feraiseexcept(excepts); }
| ^~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/FPUtil/FEnvImpl.h:57:38: error: 'fegetround' used without enabling floating-point exception behavior; use 'pragma STDC FENV_ACCESS ON' or compile with '-ffp-exception-behavior=maytrap' [-Werror,-Wfenv-access]
57 | LIBC_INLINE int get_round() { return fegetround(); }
| ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/libc/src/__support/FPUtil/FEnvImpl.h:60:10: error: 'fesetround' used without enabling floating-point exception behavior; use 'pragma STDC FENV_ACCESS ON' or compile with '-ffp-exception-behavior=maytrap' [-Werror,-Wfenv-access]
60 | return fesetround(rounding_mode);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
7 errors generated.
@llvm/issue-subscribers-libc
Author: earnol
See the same problem with https://github.com/llvm/llvm-project/actions/runs/26033174946/job/76524272809?pr=196558 (failing only for Linux AArch64, passing for Linux x86_64)
Cannot see what the buildbots say there seem to be problems with https://lab.llvm.org/buildbot
Looks like fixed as of https://github.com/llvm/llvm-project/commit/60f40032e00424ace21ae539de02ff227ff8b72e