Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failures on Opensuse Tumbleweed caused by FLOAT128 detection in gcc #503

Open
jcelerier opened this issue Sep 1, 2024 · 0 comments

Comments

@jcelerier
Copy link
Contributor

GCC 14 does not seem to ship quadmath.h by default.
If a library wants to do FLOAT128 (for instance: boost multiprecision) they must check for __has_include(<quadmath.h>) - checking for BOOST_HAS_FLOAT128 ought to be enough:

https://github.com/boostorg/multiprecision/blob/develop/include/boost/multiprecision/cpp_bin_float.hpp#L39-L44

This causes for instance build errors for boost <= 1.85 there.

To be more robust, this code here:
https://github.com/boostorg/config/blob/develop/include/boost/config/compiler/gcc.hpp#L164-L172

should have the same check for <quadmath.h> that clang has:
https://github.com/boostorg/config/blob/develop/include/boost/config/compiler/clang.hpp#L60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant