Skip to contentSkip to conversation

lvm2: use bfd even with ld-is-gold in DISTRO_FEATURES

PATCH Superseded Martin Jansa 2 participants 3 messages Sep 11, 2022 – Sep 12, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lvm2: use bfd even with ld-is-gold in DISTRO_FEATURES

---
 meta-oe/recipes-support/lvm2/lvm2.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/lvm2/lvm2.inc +4 -0
index 34e57ec7a5..dfabf11e2f 100644
@@ -57,3 +57,7 @@ EXTRA_OECONF = "--with-user= \
                 --with-thin-repair=${sbindir}/thin_repair \
                 --with-thin-restore=${sbindir}/thin_restore \
 "
+
+# gold doesn't like multiple dm_bitset_parse_list definitions in libdm/.exported_symbols.DM_1_02_138 and libdm/.exported_symbols.DM_1_02_129
+# after it was uncommented in the later in 2.03.12 with https://github.com/lvmteam/lvm2/commit/60eb608d66c2056a78e81f27db3da14139d9faab
+LDFLAGS += "-fuse-ld=bfd"
Signature · 1 line
2.37.3
#1 lore raw

Hi Martin

Quoted 11 lines · Martin Jansa
---
 meta-oe/recipes-support/lvm2/lvm2.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/lvm2/lvm2.inc +0 -0
index 34e57ec7a5..dfabf11e2f 100644

meta-oe/recipes-support/lvm2/lvm2.inc EXTRA_OECONF = "--with-user= \ · line 63

Quoted 7 lines
meta-oe/recipes-support/lvm2/lvm2.inc +4 -0
@@ -57,3 +57,7 @@ EXTRA_OECONF = "--with-user= \
                 --with-thin-repair=${sbindir}/thin_repair \
                 --with-thin-restore=${sbindir}/thin_restore \
 "
+
+# gold doesn't like multiple dm_bitset_parse_list definitions in libdm/.exported_symbols.DM_1_02_138 and libdm/.exported_symbols.DM_1_02_129
+# after it was uncommented in the later in 2.03.12 with https://github.com/lvmteam/lvm2/commit/60eb608d66c2056a78e81f27db3da14139d9faab
+LDFLAGS += "-fuse-ld=bfd"

We do have third player in the game, lld and this would mean that even lld is disabled. so perhaps its better apply this only when ld-is-gold distro feature is on.

Quoted 12 lines

--
2.37.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#98737): https://lists.openembedded.org/g/openembedded-devel/message/98737
Mute This Topic: https://lists.openembedded.org/mt/93618041/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

PATCH v2 1/1 lvm2: use bfd even with ld-is-gold in DISTRO_FEATURES

---
 meta-oe/recipes-support/lvm2/lvm2.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/lvm2/lvm2.inc +4 -0
index 34e57ec7a5..277e76f0d2 100644
@@ -57,3 +57,7 @@ EXTRA_OECONF = "--with-user= \
                 --with-thin-repair=${sbindir}/thin_repair \
                 --with-thin-restore=${sbindir}/thin_restore \
 "
+
+# gold doesn't like multiple dm_bitset_parse_list definitions in libdm/.exported_symbols.DM_1_02_138 and libdm/.exported_symbols.DM_1_02_129
+# after it was uncommented in the later in 2.03.12 with https://github.com/lvmteam/lvm2/commit/60eb608d66c2056a78e81f27db3da14139d9faab
+LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', " -fuse-ld=bfd", '', d)}"
Signature · 1 line
2.37.3