x11-libs/libva-intel-media-driver-20.4.5 fails to compile on amd64 with repeating error: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include/smmintrin.h:582:1: error: inlining failed in call to ‘always_inline’ ‘__m128i _mm_stream_load_si128(__m128i*)’: target specific option mismatch 582 | _mm_stream_load_si128 (__m128i *__X) Probably related to: https://bugs.gentoo.org/765055 ?
Could you attach full build.log and emerge --info's output? Also, are you building this under a VM by any chances? Like virtualbox?
(In reply to Ionen Wolkens from comment #1) > Could you attach full build.log Oh, feel free to compress it with xz. I forget this one is fairly big.
Created attachment 682978 [details] build.log
Created attachment 682981 [details] emerge --info output
Created attachment 682984 [details] build.log compressed ;)
Comment on attachment 682984 [details] build.log compressed ;) I guess it was fine since failed early, mine was 22MB.
The fix is here: https://github.com/gentoo/gentoo/pull/19046 It's waiting to be merged.
(In reply to Karlson2k from comment #7) > The fix is here: > https://github.com/gentoo/gentoo/pull/19046 > > It's waiting to be merged. Thanks, -march=native was working for me but it did fail with -march=x86-64
(In reply to Ionen Wolkens from comment #8) > (In reply to Karlson2k from comment #7) > > The fix is here: > > https://github.com/gentoo/gentoo/pull/19046 > > > > It's waiting to be merged. > Thanks, -march=native was working for me but it did fail with -march=x86-64 Did you test with referenced patch?
(In reply to Karlson2k from comment #9) > Did you test with referenced patch? Haven't fully checked it but it does allow building with -march=x86-64
(In reply to Ionen Wolkens from comment #10) > (In reply to Karlson2k from comment #9) > > Did you test with referenced patch? > Haven't fully checked it but it does allow building with -march=x86-64 Yes, the package can be built with any (valid) compiler flags, including "-march=x86-64" or no flags at all.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f93bbe16831b01a0f6619957afaac8e0195a603 commit 3f93bbe16831b01a0f6619957afaac8e0195a603 Author: Karlson2k (Evgeny Grin) <k2k@narod.ru> AuthorDate: 2021-01-12 19:07:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-01-17 02:38:22 +0000 x11-libs/libva-intel-media-driver: fixed build Fixed build with user CFLAGS Closes: https://bugs.gentoo.org/765511 Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru> Signed-off-by: Sam James <sam@gentoo.org> ...ntel-media-driver-20.4.5_custom_cflags_v2.patch | 136 +++++++++++++++++++++ .../libva-intel-media-driver-20.4.5.ebuild | 2 +- .../libva-intel-media-driver-9999.ebuild | 2 +- 3 files changed, 138 insertions(+), 2 deletions(-)