media-libs/gst-plugins-good-1.18.4 fails to link with the following errors: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/media-libs/gst-plugins-good-1.18.4/temp/cci2JleS.ltrans1.ltr ans.o: in function `gst_deinterlace_method_yadif_init': <artificial>:(.text+0x4c2c): undefined reference to `gst_yadif_filter_line_mode0_ssse3' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x4c33): undefined reference to `gst_yadif_filter_line_mo de2_ssse3' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x4c93): undefined reference to `gst_yadif_filter_line_mode0_sse2' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: <artificial>:(.text+0x4c9a): undefined reference to `gst_yadif_filter_line_mode2_sse2' collect2: error: ld returned 1 exit status $ emerge -pqv '=media-libs/gst-plugins-good-1.18.4::gentoo' [ebuild U ] media-libs/gst-plugins-good-1.18.4 [1.16.3] USE="nls orc -test%" ABI_X86="32 (64) (-x32)" Reproducible: Always Steps to Reproduce: 1. Unmask media-libs/gst-plugins-good-1.18.4 2. Try to emerge it.
Created attachment 723040 [details] full build.log
Created attachment 723043 [details] emerge --info '=media-libs/gst-plugins-good-1.18.4::gentoo'
https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/909#note_1006399
I can reproduce by using -fplugin=annobin
(In reply to Alessandro Barbieri from comment #4) > I can reproduce by using -fplugin=annobin The issue is well understood to be about LTO.
Can't reproduce this with media-libs/gst-plugins-good-1.22.3-r2 and gcc (Gentoo 13.1.1_p20230527 p3) 13.1.1 20230527
This got forwarded to meson and fixed in 2022.