Skip to contentSkip to conversation

package/libiberty: bump version to 2.40

PATCH Applied Bernd Kuhls 2 participants 2 messages Jul 30, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libiberty: bump version to 2.40

From: Akshay Bhat <[email protected]>

If the libiberty package is not the same version as the one packaged with binutils AND if libiberty is installed before binutils, then the below error is observed. Hence for now let us keep the versions in sync.

/usr/bin/ld: ../libiberty/libiberty.a(hashtab.o):(.data.rel.local+0x0) : multiple definition of `htab_eq_pointer'

Fixes:
http://autobuild.buildroot.net/results/f07/f077ec588b395102ad501a18c85d5030c0765031/

Build-tested using these four defconfigs:
----------
BR2_arceb=y
----------
BR2_BINUTILS_VERSION_2_38_X=y
----------
(empty defconfig meaning binutils-2.39)
----------
BR2_BINUTILS_VERSION_2_40_X=y
----------
each using these commands:

$ make host-libiberty
$ make host-binutils
[Bernd: bump to version 2.40, replace hash file with link to binutils]
---
 package/libiberty/libiberty.hash | 6 +-----
 package/libiberty/libiberty.mk   | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)
 mode change 100644 => 120000 package/libiberty/libiberty.hash
package/libiberty/libiberty.hash deleted +0 -5
deleted file mode 100644
index 0dafcea520..0000000000
@@ -1,5 +0,0 @@
-# From ftp://gcc.gnu.org/pub/binutils/releases/sha512.sum
-sha512  d326408f12a03d9a61a9de56584c2af12f81c2e50d2d7e835d51565df8314df01575724afa1e43bd0db45cfc9916b41519b67dfce03232aa4978704492a6994a  binutils-2.32.tar.xz
-
-# Locally computed, same as binutils.hash
-sha256  56bdea73b6145ef6ac5259b3da390b981d840c24cb03b8e1cbc678de7ecfa18d  COPYING.LIB
package/libiberty/libiberty.hash new file +1 -0
new file mode 120000
index 0000000000..e0655d3af3
@@ -0,0 +1 @@
+../binutils/binutils.hash
\ No newline at end of file
package/libiberty/libiberty.mk +1 -1
index 6235a8b956..e7a02c963a 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBIBERTY_VERSION = 2.32
+LIBIBERTY_VERSION = 2.40
 LIBIBERTY_SOURCE = binutils-$(LIBIBERTY_VERSION).tar.xz
 LIBIBERTY_SITE = $(BR2_GNU_MIRROR)/binutils
 HOST_LIBIBERTY_DL_SUBDIR = binutils
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 12 lines · On Sun, 30 Jul 2023 20:55:26 +0200 Bernd Kuhls <[email protected]> wrote:

From: Akshay Bhat <[email protected]>

If the libiberty package is not the same version as the one packaged with binutils AND if libiberty is installed before binutils, then the below error is observed. Hence for now let us keep the versions in sync.

/usr/bin/ld: ../libiberty/libiberty.a(hashtab.o):(.data.rel.local+0x0) : multiple definition of `htab_eq_pointer'

Fixes:
http://autobuild.buildroot.net/results/f07/f077ec588b395102ad501a18c85d5030c0765031/

Quoted 11 lines

Build-tested using these four defconfigs:
----------
BR2_arceb=y
----------
BR2_BINUTILS_VERSION_2_38_X=y
----------
(empty defconfig meaning binutils-2.39)
----------
BR2_BINUTILS_VERSION_2_40_X=y
----------
each using these commands:

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot