Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/uclibc: enable long double math for xtensa
@ 2014-10-25 10:57 Max Filippov
  2014-10-25 16:58 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Max Filippov @ 2014-10-25 10:57 UTC (permalink / raw)
  To: buildroot

It fixes the following build failure for packages that expect long
double support in libm:

  Linking C executable winpr-hash
  ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `powl'
  ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `fmodl'
  ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `ceill'
  ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `log10l'
  ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `floorl'

Fixes:
  http://autobuild.buildroot.net/results/323/3236ddfe8eaf89f05f84db60eb42583cca397464/

Mainline status: patch submitted.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 ...n.arch-enable-long-double-math-for-xtensa.patch | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/0003-Config.in.arch-enable-long-double-math-for-xtensa.patch

diff --git a/package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/0003-Config.in.arch-enable-long-double-math-for-xtensa.patch b/package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/0003-Config.in.arch-enable-long-double-math-for-xtensa.patch
new file mode 100644
index 0000000..2aa7ac8
--- /dev/null
+++ b/package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/0003-Config.in.arch-enable-long-double-math-for-xtensa.patch
@@ -0,0 +1,26 @@
+From b0fb0d1f69ceaceba05500602747d9f85f360fb9 Mon Sep 17 00:00:00 2001
+From: Max Filippov <jcmvbkbc@gmail.com>
+Date: Sat, 25 Oct 2014 14:29:08 +0400
+Subject: [PATCH] Config.in.arch: enable long double math for xtensa
+
+Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
+---
+ extra/Configs/Config.in.arch | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/extra/Configs/Config.in.arch b/extra/Configs/Config.in.arch
+index 2338e3c..68e03bf 100644
+--- a/extra/Configs/Config.in.arch
++++ b/extra/Configs/Config.in.arch
+@@ -191,7 +191,7 @@ config UCLIBC_HAS_FENV
+ config UCLIBC_HAS_LONG_DOUBLE_MATH
+ 	bool "Enable long double support"
+ 	depends on DO_C99_MATH
+-	depends on TARGET_i386 || TARGET_m68k || TARGET_sparc || TARGET_x86_64 || TARGET_powerpc || TARGET_sh || TARGET_microblaze
++	depends on TARGET_i386 || TARGET_m68k || TARGET_sparc || TARGET_x86_64 || TARGET_powerpc || TARGET_sh || TARGET_microblaze || TARGET_xtensa
+ 	default y
+ 	help
+ 	  If you want the uClibc math library to contain the full set of C99
+-- 
+1.8.1.4
+
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] package/uclibc: enable long double math for xtensa
  2014-10-25 10:57 [Buildroot] [PATCH] package/uclibc: enable long double math for xtensa Max Filippov
@ 2014-10-25 16:58 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-10-25 16:58 UTC (permalink / raw)
  To: buildroot

Dear Max Filippov,

On Sat, 25 Oct 2014 14:57:33 +0400, Max Filippov wrote:
> It fixes the following build failure for packages that expect long
> double support in libm:
> 
>   Linking C executable winpr-hash
>   ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `powl'
>   ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `fmodl'
>   ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `ceill'
>   ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `log10l'
>   ../../libwinpr/utils/libwinpr-utils.so.0.1.0: undefined reference to `floorl'
> 
> Fixes:
>   http://autobuild.buildroot.net/results/323/3236ddfe8eaf89f05f84db60eb42583cca397464/
> 
> Mainline status: patch submitted.
> 
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
> ---
>  ...n.arch-enable-long-double-math-for-xtensa.patch | 26 ++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>  create mode 100644 package/uclibc/7bf35c8b7d4a1f97174eb49f47f33946b282114c/0003-Config.in.arch-enable-long-double-math-for-xtensa.patch

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-25 16:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-25 10:57 [Buildroot] [PATCH] package/uclibc: enable long double math for xtensa Max Filippov
2014-10-25 16:58 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox