Skip to contentSkip to conversation

Enable quadmath on aarch64

PATCH Thomas Petazzoni 3 participants 3 messages Aug 21, 2021 – Aug 22, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 3 lines · On Sat, 21 Aug 2021 21:44:01 +0200 Bensuperpc <[email protected]> wrote:

Enable quadmath on aarch64

We do need a real name to accept contributions.

Quoted 9 lines
---
 toolchain/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/Config.in +0 -0
index 1d0469a13e..b4cd6d511f 100644

toolchain/Config.in config BR2_TOOLCHAIN_HAS_ATOMIC · line 797

Quoted 5 lines
toolchain/Config.in +1 -1
@@ -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

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot
#2 lore raw

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,

Quoted 30 lines · Thomas Petazzoni
Quoted 3 lines · On Sat, 21 Aug 2021 21:44:01 +0200 Bensuperpc <[email protected]> wrote:

Enable quadmath on aarch64

We do need a real name to accept contributions.

Quoted 9 lines
---
 toolchain/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/Config.in +0 -0
index 1d0469a13e..b4cd6d511f 100644

toolchain/Config.in config BR2_TOOLCHAIN_HAS_ATOMIC · line 797

Quoted 5 lines
toolchain/Config.in +1 -1
@@ -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?

Quoted 8 lines

Thanks!

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

Hi Bensuperpc,

you have to use your real name. Then you have to use plain text, no html at all in Mailing List. This commit log seems written directly in email client, instead you should write it during git commit.

Also, you need to send v2 patch, so pass -v2 to git format-patch and indicate V1->V2 changes(basically you’re written the commit log).

Best regards
Giulio Benetti

Inviato da iPhone

Quoted 5 lines

Il giorno 22 ago 2021, alle ore 06:27, Bensuperpc <[email protected]> ha scritto:


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

Quoted 47 lines

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,

Quoted 38 lines · Thomas Petazzoni
Quoted 3 lines · On Sat, 21 Aug 2021 21:44:01 +0200 Bensuperpc <[email protected]> wrote:

Enable quadmath on aarch64

We do need a real name to accept contributions.

Quoted 9 lines
---
 toolchain/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/Config.in +0 -0
index 1d0469a13e..b4cd6d511f 100644

toolchain/Config.in config BR2_TOOLCHAIN_HAS_ATOMIC · line 797

Quoted 5 lines
toolchain/Config.in +1 -1
@@ -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

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot