Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 826922 - media-libs/embree-3.13.0-r2 : inlining failed in call to always_inline
Summary: media-libs/embree-3.13.0-r2 : inlining failed in call to always_inline
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Parborg
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-23 15:17 UTC by Helmut Jarausch
Modified: 2022-02-18 11:03 UTC (History)
3 users (show)

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


Attachments
emerge --info (embree-3.info,21.55 KB, text/plain)
2021-11-23 15:17 UTC, Helmut Jarausch
Details
build log (embree-3.13.0-r2.build,117.89 KB, text/plain)
2021-11-23 15:17 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2021-11-23 15:17:12 UTC
Created attachment 755582 [details]
emerge --info

Compilation fails with
/usr/lib/gcc/x86_64-pc-linux-gnu/9.4.0/include/bmiintrin.h: In function 'unsigned int embree::bsf(unsigned int)':
/usr/lib/gcc/x86_64-pc-linux-gnu/9.4.0/include/bmiintrin.h:104:1: error: inlining failed in call to always_inline 'unsigned int _tzcnt_u32(unsigned int)': target specific option mismatch
  104 | _tzcnt_u32 (unsigned int __X)
      | ^~~~~~~~~~
Comment 1 Helmut Jarausch 2021-11-23 15:17:37 UTC
Created attachment 755586 [details]
build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-23 21:18:18 UTC
This is going to be because of CFLAGS:
>CFLAGS="-march=native -O3  -maes -mavx -mavx2 -mf16c -mfma -mmmx -mpclmul -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4a -mssse3 -pipe"

For now, drop the explicit -m* for aes, etc (you shouldn't need them anyway with -march=native).
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-23 21:19:43 UTC
Also:
- Why do you have so many GCCs installed?
- Why aren't you using GCC 10/11 (which is now stable)?
- Why do you have _9999 GCC installed?
- Why aren't you using the latest Binutils?

Please do depclean after world upgrades too.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-23 21:25:51 UTC
(In reply to Sam James from comment #2)
> This is going to be because of CFLAGS:
> >CFLAGS="-march=native -O3  -maes -mavx -mavx2 -mf16c -mfma -mmmx -mpclmul -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4a -mssse3 -pipe"
> 
> For now, drop the explicit -m* for aes, etc (you shouldn't need them anyway
> with -march=native).

... and the build system and ebuild already support passing in SIMD flags properly with CPU_FLAGS_*. It should avoid passing e.g. -mavx2 when it doesn't want it for a certain unit, but I think this is partially self-inflicted.

I'd report this upstream.
Comment 5 Sebastian Parborg 2022-02-18 11:03:16 UTC
This has been "fixed" in that we now strip out all "-m*" flags.