Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765511 - x11-libs/libva-intel-media-driver-20.4.5 error: inlining failed in call to ‘always_inline’ ‘__m128i _mm_stream_load_si128(__m128i*)’
Summary: x11-libs/libva-intel-media-driver-20.4.5 error: inlining failed in call to ‘a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-15 06:08 UTC by mummenschanz
Modified: 2021-01-17 02:38 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,625.07 KB, text/plain)
2021-01-15 07:21 UTC, mummenschanz
Details
emerge --info output (emerge.info.txt,5.27 KB, text/plain)
2021-01-15 07:21 UTC, mummenschanz
Details
build.log compressed ;) (build.log.tar.bz2,7.78 KB, application/x-bzip)
2021-01-15 07:23 UTC, mummenschanz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mummenschanz 2021-01-15 06:08:04 UTC
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 ?
Comment 1 Ionen Wolkens gentoo-dev 2021-01-15 06:45:22 UTC
Could you attach full build.log and emerge --info's output?

Also, are you building this under a VM by any chances? Like virtualbox?
Comment 2 Ionen Wolkens gentoo-dev 2021-01-15 06:50:26 UTC
(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.
Comment 3 mummenschanz 2021-01-15 07:21:06 UTC
Created attachment 682978 [details]
build.log
Comment 4 mummenschanz 2021-01-15 07:21:57 UTC
Created attachment 682981 [details]
emerge --info output
Comment 5 mummenschanz 2021-01-15 07:23:13 UTC
Created attachment 682984 [details]
build.log compressed ;)
Comment 6 Ionen Wolkens gentoo-dev 2021-01-15 07:37:12 UTC
Comment on attachment 682984 [details]
build.log compressed ;)

I guess it was fine since failed early, mine was 22MB.
Comment 7 Karlson2k 2021-01-15 07:39:37 UTC
The fix is here:
https://github.com/gentoo/gentoo/pull/19046

It's waiting to be merged.
Comment 8 Ionen Wolkens gentoo-dev 2021-01-15 07:47:16 UTC
(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
Comment 9 Karlson2k 2021-01-15 08:19:05 UTC
(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?
Comment 10 Ionen Wolkens gentoo-dev 2021-01-15 08:44:47 UTC
(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
Comment 11 Karlson2k 2021-01-15 12:33:51 UTC
(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.
Comment 12 Larry the Git Cow gentoo-dev 2021-01-17 02:38:27 UTC
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(-)