[Buildroot] [PATCH 1/1] Enable quadmath on aarch64

Bensuperpc bensuperpc at gmail.com
Sun Aug 22 04:26:46 UTC 2021


Some headers need quadmath to work (Ex: boost::multiprecision::float128),

I am getting following compile error on aarch64 without
*BR2_TOOLCHAIN_HAS_LIBQUADMATH=y *:
*boost/multiprecision/float128.hpp:40:10: fatal error: 'quadmath.h' file
not found*
when I use float128 in boost.

Config file:
https://github.com/dockcross/dockcross/blob/master/linux-arm64-full/buildroot.config

Bensuperpc,


Le sam. 21 août 2021 à 23:27, Thomas Petazzoni <thomas.petazzoni at bootlin.com>
a écrit :

> On Sat, 21 Aug 2021 21:44:01 +0200
> Bensuperpc <bensuperpc at gmail.com> wrote:
>
> > Enable quadmath on aarch64
> >
> > Signed-off-by: Bensuperpc <bensuperpc at gmail.com>
>
> We do need a real name to accept contributions.
>
> > ---
> >  toolchain/Config.in | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/toolchain/Config.in b/toolchain/Config.in
> > index 1d0469a13e..b4cd6d511f 100644
> > --- a/toolchain/Config.in
> > +++ b/toolchain/Config.in
> > @@ -794,6 +794,6 @@ config BR2_TOOLCHAIN_HAS_ATOMIC
> >  # - When available, libquadmath requires wchar support.
> >  config BR2_TOOLCHAIN_HAS_LIBQUADMATH
> >       bool
> > -     default y if BR2_i386 || BR2_x86_64
> > +     default y if BR2_i386 || BR2_x86_64 || BR2_aarch64
>
> This option is not about "enabling" something, but about saying whether
> libquadmath is supported/available on a given CPU architecture. Since
> when is libquadmath available/supported by gcc?
>
> What was the motivation behind this change?
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20210822/625b7058/attachment.html>


More information about the buildroot mailing list