Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918894 - www-client/chromium fails to compile with -march=native
Summary: www-client/chromium fails to compile with -march=native
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-30 11:08 UTC by Agostino Sarubbo
Modified: 2023-12-04 11:46 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-11-30 11:08:02 UTC
This bug has been filed in agreement with Matt Jolly on irc.

My -march=native expandes as:
-march=skylake -mmmx -mpopcnt -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mno-sse4a -mno-fma4 -mno-xop -mfma -mno-avx512f -mbmi -mbmi2 -maes -mpclmul -mno-avx512vl -mno-avx512bw -mno-avx512dq -mno-avx512cd -mno-avx512er -mno-avx512pf -mno-avx512vbmi -mno-avx512ifma -mno-avx5124vnniw -mno-avx5124fmaps -mno-avx512vpopcntdq -mno-avx512vbmi2 -mno-gfni -mno-vpclmulqdq -mno-avx512vnni -mno-avx512bitalg -mno-avx512bf16 -mno-avx512vp2intersect -mno-3dnow -madx -mabm -mno-cldemote -mclflushopt -mno-clwb -mno-clzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mlzcnt -mmovbe -mno-movdir64b -mno-movdiri -mno-mwaitx -mno-pconfig -mno-pku -mno-prefetchwt1 -mprfchw -mno-ptwrite -mno-rdpid -mrdrnd -mrdseed -mno-rtm -mno-serialize -msgx -mno-sha -mno-shstk -mno-tbm -mno-tsxldtrk -mno-vaes -mno-waitpkg -mno-wbnoinvd -mxsave -mxsavec -mxsaveopt -mxsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl -mno-avxvnni -mno-avx512fp16 -mno-avxifma -mno-avxvnniint8 -mno-avxneconvert -mno-cmpccxadd -mno-amx-fp16 -mno-prefetchi -mno-raoint -mno-amx-complex --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=skylake -dumpbase -

It looks like -mno-avx512* are causing failures, the specific error is:

/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/avx512fintrin.h:6499:1: error: inlining failed in call to 'always_inline' '_mm512_loadu_si512': target specific option mismatch   

If I can do more, please let me know.
Comment 1 Ionen Wolkens gentoo-dev 2023-11-30 11:42:58 UTC
>My -march=native expands as:
I didn't see the IRC convo, but do you mean that you've expanded it, or it fails with -march=native passed as-is?

There's a big difference given *passing* -mno- will override chromium's flags, while -march=native does not.

In qtwebengine:6, we've patched things in a way that ensure chromium's -mflags (only used when compiling code meant for detection at runtime) will come *after* user flags. And so they are preserved.
Comment 2 Agostino Sarubbo gentoo-dev 2023-11-30 11:56:26 UTC
(In reply to Ionen Wolkens from comment #1)
>  do you mean that you've expanded it, or it
> fails with -march=native passed as-is?

I mean I have expanded it to get a list common flags between a client and a binhost server.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-01 04:55:50 UTC
(In reply to Agostino Sarubbo from comment #0)
> 
> If I can do more, please let me know.

A full log and emerge --info?

You've also not CCed the other maintainer (.. Matt).