* [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC
@ 2015-04-16 20:55 Gustavo Zacarias
2015-04-16 20:55 ` [Buildroot] [PATCH 2/2] uclibc: drop -ng 1.0.0 stray patch Gustavo Zacarias
2015-04-18 13:36 ` [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC Thomas Petazzoni
0 siblings, 2 replies; 6+ messages in thread
From: Gustavo Zacarias @ 2015-04-16 20:55 UTC (permalink / raw)
To: buildroot
The patch from commit 200aad4f3206c9f151f15922dd02b01f474a5503 broke sh
and sparc builds.
Add and adjust a patch from uClibc master that fixes this.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
...-honor-NO_LONG_DOUBLE-in-ldouble_wrappers.patch | 89 ++++++++++++++++++++++
1 file changed, 89 insertions(+)
create mode 100644 package/uclibc/0.9.33.2/0070-libm-honor-NO_LONG_DOUBLE-in-ldouble_wrappers.patch
diff --git a/package/uclibc/0.9.33.2/0070-libm-honor-NO_LONG_DOUBLE-in-ldouble_wrappers.patch b/package/uclibc/0.9.33.2/0070-libm-honor-NO_LONG_DOUBLE-in-ldouble_wrappers.patch
new file mode 100644
index 0000000..1b6ea6d
--- /dev/null
+++ b/package/uclibc/0.9.33.2/0070-libm-honor-NO_LONG_DOUBLE-in-ldouble_wrappers.patch
@@ -0,0 +1,89 @@
+From 730db44f0824f505a31822e250b9f04b9f8e7a1b Mon Sep 17 00:00:00 2001
+From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
+Date: Tue, 24 Mar 2015 00:11:47 +0100
+Subject: [PATCH] libm: honor NO_LONG_DOUBLE in ldouble_wrappers
+
+Fixes SH build breakage due to attempts to define hidden defs for
+unavailable long double functions.
+
+Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
+[Gustavo: adapt to 0.9.33.2]
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+ extra/Configs/Config.in.arch | 2 +-
+ ldso/ldso/sh/dl-syscalls.h | 2 +-
+ libm/ldouble_wrappers.c | 15 +++++++++------
+ 3 files changed, 11 insertions(+), 8 deletions(-)
+
+diff --git a/extra/Configs/Config.in.arch b/extra/Configs/Config.in.arch
+index 68e03bf..0dae84b 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_aarch64 || TARGET_alpha || TARGET_i386 || TARGET_ia64 || TARGET_m68k || TARGET_powerpc || TARGET_s390 || TARGET_sparc || TARGET_tile || TARGET_x86_64
+ default y
+ help
+ If you want the uClibc math library to contain the full set of C99
+diff --git a/ldso/ldso/sh/dl-syscalls.h b/ldso/ldso/sh/dl-syscalls.h
+index f9f13c7..b99a9b5 100644
+--- a/ldso/ldso/sh/dl-syscalls.h
++++ b/ldso/ldso/sh/dl-syscalls.h
+@@ -1,4 +1,4 @@
+-#if __GNUC_PREREQ (4, 1)
++#if __GNUC_PREREQ (4, 1) && !__GNUC_PREREQ (4, 9)
+ #warning !!! gcc 4.1 and later have problems with __always_inline so redefined as inline
+ # ifdef __always_inline
+ # undef __always_inline
+diff --git a/libm/ldouble_wrappers.c b/libm/ldouble_wrappers.c
+index b4215cb..840293f 100644
+--- a/libm/ldouble_wrappers.c
++++ b/libm/ldouble_wrappers.c
+@@ -16,27 +16,28 @@
+ #include "math.h"
+ #include <complex.h>
+
+-#define WRAPPER1(func) \
++#if !defined __NO_LONG_DOUBLE_MATH
++# define WRAPPER1(func) \
+ long double func##l(long double x) \
+ { \
+ return (long double) func((double) x); \
+ }
+-#define WRAPPER2(func) \
++# define WRAPPER2(func) \
+ long double func##l(long double x, long double y) \
+ { \
+ return (long double) func((double) x, (double) y); \
+ }
+-#define int_WRAPPER1(func) \
++# define int_WRAPPER1(func) \
+ int func##l(long double x) \
+ { \
+ return func((double) x); \
+ }
+-#define long_WRAPPER1(func) \
++# define long_WRAPPER1(func) \
+ long func##l(long double x) \
+ { \
+ return func((double) x); \
+ }
+-#define long_long_WRAPPER1(func) \
++# define long_long_WRAPPER1(func) \
+ long long func##l(long double x) \
+ { \
+ return func((double) x); \
+@@ -447,4 +448,6 @@ int_WRAPPER1(__isinf)
+ libm_hidden_def(__isinfl)
+ # endif
+
+-#endif
++#endif /* __DO_C99_MATH__ */
++
++#endif /* __NO_LONG_DOUBLE_MATH */
+--
+2.0.5
+
--
2.0.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 2/2] uclibc: drop -ng 1.0.0 stray patch
2015-04-16 20:55 [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC Gustavo Zacarias
@ 2015-04-16 20:55 ` Gustavo Zacarias
2015-04-18 13:37 ` Thomas Petazzoni
2015-04-18 13:36 ` [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC Thomas Petazzoni
1 sibling, 1 reply; 6+ messages in thread
From: Gustavo Zacarias @ 2015-04-16 20:55 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
...-guard-tcb-offsets.h-include-with-RESET_P.patch | 31 ----------------------
1 file changed, 31 deletions(-)
delete mode 100644 package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
diff --git a/package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch b/package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
deleted file mode 100644
index a98ee68..0000000
--- a/package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 857420a3271dc5bbddbe45a9e9878b9dc88fd143 Mon Sep 17 00:00:00 2001
-From: Gustavo Zacarias <gustavo@zacarias.com.ar>
-Date: Tue, 3 Mar 2015 14:56:17 -0300
-Subject: [PATCH] sparc/clone.S: guard tcb-offsets.h include with RESET_PID
-
-Status: upstream [uClibc]
-
-Otherwise we have a broken scenario with non-threading builds.
-
-Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
----
- libc/sysdeps/linux/sparc/clone.S | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/libc/sysdeps/linux/sparc/clone.S b/libc/sysdeps/linux/sparc/clone.S
-index 8d9da5a..1d0e3e6 100644
---- a/libc/sysdeps/linux/sparc/clone.S
-+++ b/libc/sysdeps/linux/sparc/clone.S
-@@ -22,7 +22,9 @@
-
- #include <asm/errno.h>
- #include <asm/unistd.h>
-+#ifdef RESET_PID
- #include <tcb-offsets.h>
-+#endif
- #include <sysdep.h>
-
- #define CLONE_VM 0x00000100
---
-2.0.5
-
--
2.0.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC
2015-04-16 20:55 [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC Gustavo Zacarias
2015-04-16 20:55 ` [Buildroot] [PATCH 2/2] uclibc: drop -ng 1.0.0 stray patch Gustavo Zacarias
@ 2015-04-18 13:36 ` Thomas Petazzoni
2015-04-18 21:05 ` Gustavo Zacarias
1 sibling, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2015-04-18 13:36 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Thu, 16 Apr 2015 17:55:44 -0300, Gustavo Zacarias wrote:
> The patch from commit 200aad4f3206c9f151f15922dd02b01f474a5503 broke sh
> and sparc builds.
> Add and adjust a patch from uClibc master that fixes this.
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> ...-honor-NO_LONG_DOUBLE-in-ldouble_wrappers.patch | 89 ++++++++++++++++++++++
> 1 file changed, 89 insertions(+)
> create mode 100644 package/uclibc/0.9.33.2/0070-libm-honor-NO_LONG_DOUBLE-in-ldouble_wrappers.patch
Applied, thanks.
Waldemar, is this patch also needed for uClibc-ng ?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 2/2] uclibc: drop -ng 1.0.0 stray patch
2015-04-16 20:55 ` [Buildroot] [PATCH 2/2] uclibc: drop -ng 1.0.0 stray patch Gustavo Zacarias
@ 2015-04-18 13:37 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2015-04-18 13:37 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Thu, 16 Apr 2015 17:55:45 -0300, Gustavo Zacarias wrote:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> ...-guard-tcb-offsets.h-include-with-RESET_P.patch | 31 ----------------------
> 1 file changed, 31 deletions(-)
> delete mode 100644 package/uclibc/1.0.0/0001-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC
2015-04-18 13:36 ` [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC Thomas Petazzoni
@ 2015-04-18 21:05 ` Gustavo Zacarias
2015-04-18 21:31 ` Thomas Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: Gustavo Zacarias @ 2015-04-18 21:05 UTC (permalink / raw)
To: buildroot
On 04/18/2015 10:36 AM, Thomas Petazzoni wrote:
> Applied, thanks.
>
> Waldemar, is this patch also needed for uClibc-ng ?
1.0.1 didn't have the offending patch applied, and 1.0.2 already
includes it, so no need to touch anything for -ng.
Regards.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC
2015-04-18 21:05 ` Gustavo Zacarias
@ 2015-04-18 21:31 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2015-04-18 21:31 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Sat, 18 Apr 2015 18:05:35 -0300, Gustavo Zacarias wrote:
> 1.0.1 didn't have the offending patch applied, and 1.0.2 already
> includes it, so no need to touch anything for -ng.
Great, thanks for the confirmation!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-04-18 21:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 20:55 [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC Gustavo Zacarias
2015-04-16 20:55 ` [Buildroot] [PATCH 2/2] uclibc: drop -ng 1.0.0 stray patch Gustavo Zacarias
2015-04-18 13:37 ` Thomas Petazzoni
2015-04-18 13:36 ` [Buildroot] [PATCH 1/2] uclibc: unbreak SH & SPARC Thomas Petazzoni
2015-04-18 21:05 ` Gustavo Zacarias
2015-04-18 21:31 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox