You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this is platform-specific and compilation fails on aarch64 linux:
/build/source/src/monosat/Main.cc:550:27: error: '_FPU_EXTENDED' was not declared in this scope
550 | newcw = (oldcw & ~_FPU_EXTENDED) | _FPU_DOUBLE;
| ^~~~~~~~~~~~~
/build/source/src/monosat/Main.cc:550:44: error: '_FPU_DOUBLE' was not declared in this scope
550 | newcw = (oldcw & ~_FPU_EXTENDED) | _FPU_DOUBLE;
| ^~~~~~~~~~~
I've worked around it by patching it out, but it would be better to detect this somehow. Platforms like aarch64 do seem to have an fpu_control.h, possibly for backward compatibility, but they don't seem to have _FPU_EXTENDED or _FPU_DOUBLE defined. So possibly you could actually check for those being defined to enable/disable this block.
Although documentation around this suggests that the C99 standard fenv.h should be used these days in preference to use of fpu_control.h at all, so.. 🤷
The text was updated successfully, but these errors were encountered:
Hi,
Main.cc
tries to disable the x87 extended precision mode @monosat/src/monosat/Main.cc
Line 550 in 55af2fb
But this is platform-specific and compilation fails on aarch64 linux:
Full build log: https://hydra.nixos.org/log/gdvq3inxzcyinf032y7vwrdm1lncnw4z-monosat-1.8.0.drv
I've worked around it by patching it out, but it would be better to detect this somehow. Platforms like aarch64 do seem to have an
fpu_control.h
, possibly for backward compatibility, but they don't seem to have_FPU_EXTENDED
or_FPU_DOUBLE
defined. So possibly you could actually check for those being defined to enable/disable this block.Although documentation around this suggests that the C99 standard
fenv.h
should be used these days in preference to use offpu_control.h
at all, so.. 🤷The text was updated successfully, but these errors were encountered: