Skip to contentSkip to conversation

pciutils build failure with older binutils

DISCUSSION Baruch Siach 1 participant 1 message May 12, 2022 PCI

lore
Share & tools
lore
#0 lore raw

Hi Martin,

Since commit 511122b83c12 ("Filters now support partially specified classes and also prog-if's") binutils older than 2.35 can't build pciutils 3.8.0 when SHARED=yes.

cc -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -fPIC -fvisibility=hidden -c -o filter.o filter.c
/tmp/ccLtucRG.s: Assembler messages:
/tmp/ccLtucRG.s:6: Error: multiple versions [pci_filter_init@@LIBPCI_3.8'|pci_filter_init@LIBPCI_3.3'] for symbol pci_filter_init_v38' /tmp/ccLtucRG.s:8: Error: multiple versions [pci_filter_parse_slot@@LIBPCI_3.8'|pci_filter_parse_slot@LIBPCI_3.3'] for symbol pci_filter_parse_slot_v38' /tmp/ccLtucRG.s:10: Error: multiple versions [pci_filter_parse_id@@LIBPCI_3.8'|pci_filter_parse_id@LIBPCI_3.3'] for symbol pci_filter_parse_id_v38' /tmp/ccLtucRG.s:12: Error: multiple versions [pci_filter_match@@LIBPCI_3.8'|pci_filter_match@LIBPCI_3.3'] for symbol pci_filter_match_v38'

The bug appears to be gas/23840[1].

binutils 2.35 was released on July 2020, so many production systems still use broken toolchains.

Any suggestion?

Thanks,
baruch

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=23840

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -