Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x
@ 2016-09-08  1:17 Gustavo Zacarias
  2016-09-08  1:17 ` [Buildroot] [PATCH 2/4] glibc: add FTBFS fix patch for recent binutils Gustavo Zacarias
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Gustavo Zacarias @ 2016-09-08  1:17 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/binutils/Config.in.host | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
index 6ef89a5..2333a6e 100644
--- a/package/binutils/Config.in.host
+++ b/package/binutils/Config.in.host
@@ -3,7 +3,7 @@ comment "Binutils Options"
 choice
 	prompt "Binutils Version"
 	depends on !BR2_arc
-	default BR2_BINUTILS_VERSION_2_25_X
+	default BR2_BINUTILS_VERSION_2_26_X
 	help
 	  Select the version of binutils you wish to use.
 
-- 
2.7.3

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

* [Buildroot] [PATCH 2/4] glibc: add FTBFS fix patch for recent binutils
  2016-09-08  1:17 [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x Gustavo Zacarias
@ 2016-09-08  1:17 ` Gustavo Zacarias
  2016-09-08 17:58   ` Peter Korsgaard
  2016-09-08 18:28   ` Peter Korsgaard
  2016-09-08  1:17 ` [Buildroot] [PATCH 3/4] Config.in: Add BR2_DEPRECATED_SINCE_2016_11 Gustavo Zacarias
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 9+ messages in thread
From: Gustavo Zacarias @ 2016-09-08  1:17 UTC (permalink / raw)
  To: buildroot

See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827477

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 .../2.22/0004-fix-FTBFS-recent-binutils.patch      | 67 ++++++++++++++++++++++
 .../2.23/0003-fix-FTBFS-recent-binutils.patch      | 67 ++++++++++++++++++++++
 2 files changed, 134 insertions(+)
 create mode 100644 package/glibc/2.22/0004-fix-FTBFS-recent-binutils.patch
 create mode 100644 package/glibc/2.23/0003-fix-FTBFS-recent-binutils.patch

diff --git a/package/glibc/2.22/0004-fix-FTBFS-recent-binutils.patch b/package/glibc/2.22/0004-fix-FTBFS-recent-binutils.patch
new file mode 100644
index 0000000..598dda8
--- /dev/null
+++ b/package/glibc/2.22/0004-fix-FTBFS-recent-binutils.patch
@@ -0,0 +1,67 @@
+With recent binutils versions the GNU libc fails to build on at least
+MISP and SPARC, with this kind of error:
+
+  /home/aurel32/glibc/glibc-build/nptl/libpthread.so:(*IND*+0x0): multiple definition of `vfork at GLIBC_2.0'
+  /home/aurel32/glibc/glibc-build/nptl/libpthread.so::(.text+0xee50): first defined here
+
+It appears that on these architectures pt-vfork.S includes vfork.S
+(through the alpha version of pt-vfork.S) and that the __vfork aliases
+are not conditionalized on IS_IN (libc) like on other architectures.
+Therefore the aliases are also wrongly included in libpthread.so.
+
+Fix this by properly conditionalizing the aliases like on other
+architectures.
+
+Changelog:
+	* sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
+	hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
+	* sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
+	* sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+From: https://sourceware.org/ml/libc-alpha/2016-06/msg00660.html
+Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827477
+Removed ChangeLog changes to de-debianize the patch.
+
+diff --git a/sysdeps/unix/sysv/linux/mips/vfork.S b/sysdeps/unix/sysv/linux/mips/vfork.S
+index 8c66151..c0c0ce6 100644
+--- a/sysdeps/unix/sysv/linux/mips/vfork.S
++++ b/sysdeps/unix/sysv/linux/mips/vfork.S
+@@ -106,6 +106,8 @@ L(error):
+ #endif
+ 	END(__vfork)
+ 
++#if IS_IN (libc)
+ libc_hidden_def(__vfork)
+ weak_alias (__vfork, vfork)
+ strong_alias (__vfork, __libc_vfork)
++#endif
+diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S b/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
+index dc32e0a..94f2c8d 100644
+--- a/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
++++ b/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
+@@ -44,6 +44,8 @@ ENTRY(__vfork)
+ 	 nop
+ END(__vfork)
+ 
++#if IS_IN (libc)
+ libc_hidden_def (__vfork)
+ weak_alias (__vfork, vfork)
+ strong_alias (__vfork, __libc_vfork)
++#endif
+diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S b/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
+index 05be3c2..a7479e9 100644
+--- a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
++++ b/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
+@@ -44,6 +44,8 @@ ENTRY(__vfork)
+ 	 nop
+ END(__vfork)
+ 
++#if IS_IN (libc)
+ libc_hidden_def (__vfork)
+ weak_alias (__vfork, vfork)
+ strong_alias (__vfork, __libc_vfork)
++#endif
+-- 
+2.8.1
diff --git a/package/glibc/2.23/0003-fix-FTBFS-recent-binutils.patch b/package/glibc/2.23/0003-fix-FTBFS-recent-binutils.patch
new file mode 100644
index 0000000..598dda8
--- /dev/null
+++ b/package/glibc/2.23/0003-fix-FTBFS-recent-binutils.patch
@@ -0,0 +1,67 @@
+With recent binutils versions the GNU libc fails to build on at least
+MISP and SPARC, with this kind of error:
+
+  /home/aurel32/glibc/glibc-build/nptl/libpthread.so:(*IND*+0x0): multiple definition of `vfork at GLIBC_2.0'
+  /home/aurel32/glibc/glibc-build/nptl/libpthread.so::(.text+0xee50): first defined here
+
+It appears that on these architectures pt-vfork.S includes vfork.S
+(through the alpha version of pt-vfork.S) and that the __vfork aliases
+are not conditionalized on IS_IN (libc) like on other architectures.
+Therefore the aliases are also wrongly included in libpthread.so.
+
+Fix this by properly conditionalizing the aliases like on other
+architectures.
+
+Changelog:
+	* sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
+	hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
+	* sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
+	* sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+From: https://sourceware.org/ml/libc-alpha/2016-06/msg00660.html
+Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827477
+Removed ChangeLog changes to de-debianize the patch.
+
+diff --git a/sysdeps/unix/sysv/linux/mips/vfork.S b/sysdeps/unix/sysv/linux/mips/vfork.S
+index 8c66151..c0c0ce6 100644
+--- a/sysdeps/unix/sysv/linux/mips/vfork.S
++++ b/sysdeps/unix/sysv/linux/mips/vfork.S
+@@ -106,6 +106,8 @@ L(error):
+ #endif
+ 	END(__vfork)
+ 
++#if IS_IN (libc)
+ libc_hidden_def(__vfork)
+ weak_alias (__vfork, vfork)
+ strong_alias (__vfork, __libc_vfork)
++#endif
+diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S b/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
+index dc32e0a..94f2c8d 100644
+--- a/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
++++ b/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
+@@ -44,6 +44,8 @@ ENTRY(__vfork)
+ 	 nop
+ END(__vfork)
+ 
++#if IS_IN (libc)
+ libc_hidden_def (__vfork)
+ weak_alias (__vfork, vfork)
+ strong_alias (__vfork, __libc_vfork)
++#endif
+diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S b/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
+index 05be3c2..a7479e9 100644
+--- a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
++++ b/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
+@@ -44,6 +44,8 @@ ENTRY(__vfork)
+ 	 nop
+ END(__vfork)
+ 
++#if IS_IN (libc)
+ libc_hidden_def (__vfork)
+ weak_alias (__vfork, vfork)
+ strong_alias (__vfork, __libc_vfork)
++#endif
+-- 
+2.8.1
-- 
2.7.3

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

* [Buildroot] [PATCH 3/4] Config.in: Add BR2_DEPRECATED_SINCE_2016_11
  2016-09-08  1:17 [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x Gustavo Zacarias
  2016-09-08  1:17 ` [Buildroot] [PATCH 2/4] glibc: add FTBFS fix patch for recent binutils Gustavo Zacarias
@ 2016-09-08  1:17 ` Gustavo Zacarias
  2016-09-08 18:29   ` Peter Korsgaard
  2016-09-08  1:17 ` [Buildroot] [PATCH 4/4] binutils: deprecate 2.24.x Gustavo Zacarias
  2016-09-08 17:54 ` [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x Peter Korsgaard
  3 siblings, 1 reply; 9+ messages in thread
From: Gustavo Zacarias @ 2016-09-08  1:17 UTC (permalink / raw)
  To: buildroot

In preparation for new deprecated features/symbols.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 Config.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Config.in b/Config.in
index d9b1df8..e1c16c0 100644
--- a/Config.in
+++ b/Config.in
@@ -393,6 +393,10 @@ config BR2_DEPRECATED_SINCE_2016_08
 	bool
 	default y
 
+config BR2_DEPRECATED_SINCE_2016_11
+	bool
+	default y
+
 endif
 
 config BR2_ENABLE_DEBUG
-- 
2.7.3

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

* [Buildroot] [PATCH 4/4] binutils: deprecate 2.24.x
  2016-09-08  1:17 [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x Gustavo Zacarias
  2016-09-08  1:17 ` [Buildroot] [PATCH 2/4] glibc: add FTBFS fix patch for recent binutils Gustavo Zacarias
  2016-09-08  1:17 ` [Buildroot] [PATCH 3/4] Config.in: Add BR2_DEPRECATED_SINCE_2016_11 Gustavo Zacarias
@ 2016-09-08  1:17 ` Gustavo Zacarias
  2016-09-08 18:29   ` Peter Korsgaard
  2016-09-08 17:54 ` [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x Peter Korsgaard
  3 siblings, 1 reply; 9+ messages in thread
From: Gustavo Zacarias @ 2016-09-08  1:17 UTC (permalink / raw)
  To: buildroot

Now that 2.26.x is stable and there's 2.25.x to fallback for whatever
reason it makes no sense to keep two versions back from default.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/binutils/Config.in.host | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
index 2333a6e..6e3f824 100644
--- a/package/binutils/Config.in.host
+++ b/package/binutils/Config.in.host
@@ -8,6 +8,7 @@ choice
 	  Select the version of binutils you wish to use.
 
 	config BR2_BINUTILS_VERSION_2_24_X
+		depends on BR2_DEPRECATED_SINCE_2016_11
 		# supported, but broken on Nios-II, Blackfin and powerpc64le
 		depends on !BR2_nios2 && !BR2_powerpc64le && !BR2_bfin
 		# Unsupported for MIPS R6
-- 
2.7.3

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

* [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x
  2016-09-08  1:17 [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x Gustavo Zacarias
                   ` (2 preceding siblings ...)
  2016-09-08  1:17 ` [Buildroot] [PATCH 4/4] binutils: deprecate 2.24.x Gustavo Zacarias
@ 2016-09-08 17:54 ` Peter Korsgaard
  3 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2016-09-08 17:54 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/4] glibc: add FTBFS fix patch for recent binutils
  2016-09-08  1:17 ` [Buildroot] [PATCH 2/4] glibc: add FTBFS fix patch for recent binutils Gustavo Zacarias
@ 2016-09-08 17:58   ` Peter Korsgaard
  2016-09-08 18:28   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2016-09-08 17:58 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 > See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827477
 > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
 > ---
 >  .../2.22/0004-fix-FTBFS-recent-binutils.patch      | 67 ++++++++++++++++++++++
 >  .../2.23/0003-fix-FTBFS-recent-binutils.patch      | 67 ++++++++++++++++++++++
 >  2 files changed, 134 insertions(+)
 >  create mode 100644 package/glibc/2.22/0004-fix-FTBFS-recent-binutils.patch
 >  create mode 100644 package/glibc/2.23/0003-fix-FTBFS-recent-binutils.patch

 > diff --git a/package/glibc/2.22/0004-fix-FTBFS-recent-binutils.patch
 > b/package/glibc/2.22/0004-fix-FTBFS-recent-binutils.patch
 > new file mode 100644
 > index 0000000..598dda8
 > --- /dev/null
 > +++ b/package/glibc/2.22/0004-fix-FTBFS-recent-binutils.patch
 > @@ -0,0 +1,67 @@
 > +With recent binutils versions the GNU libc fails to build on at least
 > +MISP and SPARC, with this kind of error:

s/MISP/MIPS/

This has now been applied upstream, so I would prefer to use the git
formatted patch:

https://sourceware.org/git/?p=glibc.git;a=commit;h=43c29487

The email thread also talks about a followup patch, shouldn't we add
that as well?

https://sourceware.org/ml/libc-alpha/2016-06/msg00827.html

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 2/4] glibc: add FTBFS fix patch for recent binutils
  2016-09-08  1:17 ` [Buildroot] [PATCH 2/4] glibc: add FTBFS fix patch for recent binutils Gustavo Zacarias
  2016-09-08 17:58   ` Peter Korsgaard
@ 2016-09-08 18:28   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2016-09-08 18:28 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 > See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827477
 > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

I've committed Vicente's version instead as it was more complete and
from git.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 3/4] Config.in: Add BR2_DEPRECATED_SINCE_2016_11
  2016-09-08  1:17 ` [Buildroot] [PATCH 3/4] Config.in: Add BR2_DEPRECATED_SINCE_2016_11 Gustavo Zacarias
@ 2016-09-08 18:29   ` Peter Korsgaard
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2016-09-08 18:29 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 > In preparation for new deprecated features/symbols.
 > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 4/4] binutils: deprecate 2.24.x
  2016-09-08  1:17 ` [Buildroot] [PATCH 4/4] binutils: deprecate 2.24.x Gustavo Zacarias
@ 2016-09-08 18:29   ` Peter Korsgaard
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2016-09-08 18:29 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 > Now that 2.26.x is stable and there's 2.25.x to fallback for whatever
 > reason it makes no sense to keep two versions back from default.

 > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2016-09-08 18:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-08  1:17 [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x Gustavo Zacarias
2016-09-08  1:17 ` [Buildroot] [PATCH 2/4] glibc: add FTBFS fix patch for recent binutils Gustavo Zacarias
2016-09-08 17:58   ` Peter Korsgaard
2016-09-08 18:28   ` Peter Korsgaard
2016-09-08  1:17 ` [Buildroot] [PATCH 3/4] Config.in: Add BR2_DEPRECATED_SINCE_2016_11 Gustavo Zacarias
2016-09-08 18:29   ` Peter Korsgaard
2016-09-08  1:17 ` [Buildroot] [PATCH 4/4] binutils: deprecate 2.24.x Gustavo Zacarias
2016-09-08 18:29   ` Peter Korsgaard
2016-09-08 17:54 ` [Buildroot] [PATCH 1/4] binutils: bump default to version 2.26.x Peter Korsgaard

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