|Summary:||dev-qt/qtmultimedia-5.12.3 Build fails for CPU prior to Haswell/Bulldozer|
|Product:||Gentoo Linux||Reporter:||Anthony Segredo <wasaol>|
|Component:||Current packages||Assignee:||Qt Bug Alias <qt>|
|Package list:||Runtime testing required:||---|
Description Anthony Segredo 2019-07-08 14:29:08 UTC
Upstream code contains "always inline" instructions that require AVX Fatal compilation errors with -march=k8-sse3 Builds with -march=native on a Kaveri and bulldozer. This is an upstream bug, but I think the ebuild should test for the existence of the AVX instruction.
Comment 1 Jonas Stein 2019-07-08 18:38:02 UTC
Thank you for the report. Please recompile and *attach* the logfiles and paste the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket The logs must be part of the ticket, but not on external websites. We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks. Please reopen this ticket (Status:unconfirmed) afterwards. Please add also the output of cat /proc/cpuinfo
Comment 2 Brian Evans 2019-07-11 23:47:10 UTC
For what it's worth: I've built dev-qt/qtmultimedia-5.12.3 on an AMD Phenom II X6 1055T without issue and it does not have AVX instructions. -march=native on this machine as well. CPU_FLAGS_X86: mmx mmxext popcnt sse sse2 sse3 sse4a
Comment 3 Anthony Segredo 2019-07-12 00:37:07 UTC
Created attachment 582592 [details] build log Complete build log with CFLAGS="-march=k8-sse3 -O2 -pipe"
Comment 4 Anthony Segredo 2019-07-12 00:45:18 UTC
Created attachment 582594 [details] /proc/cpuinfo Builds as native but not as older cpu
Comment 5 Anthony Segredo 2019-07-12 00:47:57 UTC
(In reply to Brian Evans from comment #2) > For what it's worth: I've built dev-qt/qtmultimedia-5.12.3 on an AMD Phenom > II X6 1055T without issue and it does not have AVX instructions. > -march=native on this machine as well. CPU_FLAGS_X86: mmx mmxext popcnt sse > sse2 sse3 sse4a AVX assumption based on google search. Will attempt to build as k10. Repeat, will not build as k8, but will build as native (bulldozer/kaveri). ebuilds should build on base amd64 or check for instructions needed.
Comment 6 Anthony Segredo 2019-07-12 02:35:30 UTC
Also blows up building with march=amdfam10. Also blows up with no march (should default to minimal x86_64 works with march=bdver1