Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640836 - sys-apps/pciutils-3.5.6 undefined reference to `pci_filter_match'
Summary: sys-apps/pciutils-3.5.6 undefined reference to `pci_filter_match'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2017-12-12 17:35 UTC by cryptopsy
Modified: 2023-06-11 20:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info,3.24 KB, text/plain)
2017-12-12 17:35 UTC, cryptopsy
Details
build.log (log.log,13.72 KB, text/x-log)
2017-12-12 17:35 UTC, cryptopsy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cryptopsy 2017-12-12 17:35:11 UTC
Created attachment 509618 [details]
emerge --info

/tmp/.portage/portage/sys-apps/pciutils-3.5.6/temp/ccVpo2Ll.ltrans0.ltrans.o: In function `main':
<artificial>:(.text.startup+0x49d): undefined reference to `pci_filter_init'
<artificial>:(.text.startup+0x51a): undefined reference to `pci_filter_parse_slot'
<artificial>:(.text.startup+0xaef): undefined reference to `pci_filter_match'
<artificial>:(.text.startup+0xb32): undefined reference to `pci_filter_match'
<artificial>:(.text.startup+0xc31): undefined reference to `pci_filter_parse_id'
collect2: error: ld returned 1 exit status
make: *** [Makefile:99: setpci] Error 1
make: *** Waiting for unfinished jobs....
/tmp/.portage/portage/sys-apps/pciutils-3.5.6/temp/cclqDIgi.ltrans6.ltrans.o: In function `main':
<artificial>:(.text.startup+0x40): undefined reference to `pci_filter_init'
<artificial>:(.text.startup+0xbf): undefined reference to `pci_filter_parse_slot'
<artificial>:(.text.startup+0x14f): undefined reference to `pci_filter_parse_id'
/tmp/.portage/portage/sys-apps/pciutils-3.5.6/temp/cclqDIgi.ltrans3.ltrans.o: In function `scan_device':
<artificial>:(.text+0x14bb): undefined reference to `pci_filter_match'
Comment 1 cryptopsy 2017-12-12 17:35:59 UTC
Created attachment 509620 [details]
build.log

notice -flto in make.conf
Comment 2 Larry the Git Cow gentoo-dev 2022-07-17 15:24:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=590037827fb0b839373745692ca239609c56562e

commit 590037827fb0b839373745692ca239609c56562e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-17 15:23:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-17 15:23:56 +0000

    sys-apps/pciutils: filter LTO
    
    Similar logic to the alsa-lib commit (31c929441087eb65c4cdcfc61b29acb3a50cb954).
    
    If it works with LTO and not thin LTO, it seems to me it's
    still seriously broken and there may be other issues lurking.
    
    It's a warning sign and we shouldn't ignore it, hence filter
    LTO entirely.
    
    Closes: https://bugs.gentoo.org/852929
    Closes: https://bugs.gentoo.org/640836
    See: 31c929441087eb65c4cdcfc61b29acb3a50cb954
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/pciutils/pciutils-3.8.0-r1.ebuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2023-05-01 18:20:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f6e00fbb2e1491e868b5b10472023fe8854a75b

commit 1f6e00fbb2e1491e868b5b10472023fe8854a75b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-01 18:18:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-01 18:19:56 +0000

    sys-apps/pciutils: add 3.10.0
    
    Drops filtering LTO as https://github.com/pciutils/pciutils/commit/2d16e3a7875a9cb5abd60713bb2e39b536a7dec4
    seems to fix it.
    
    Bug: https://bugs.gentoo.org/640836
    Bug: https://bugs.gentoo.org/852929
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/pciutils/Manifest               |   1 +
 sys-apps/pciutils/pciutils-3.10.0.ebuild | 174 +++++++++++++++++++++++++++++++
 2 files changed, 175 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2023-06-11 20:44:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61452f5cca7c880842782fb1594ef0f22e511859

commit 61452f5cca7c880842782fb1594ef0f22e511859
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-11 20:43:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-11 20:44:04 +0000

    sys-apps/pciutils: put back filter-lto
    
    Naib and username234 pointed this out a while ago but I forgot to restore the filter.
    
    Bug: https://bugs.gentoo.org/640836
    Bug: https://bugs.gentoo.org/852929
    Bug: https://github.com/pciutils/pciutils/pull/144
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/pciutils/pciutils-3.10.0.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)