Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689490 - dev-qt/qtmultimedia-5.12.3 Build fails for CPU prior to Haswell/Bulldozer
Summary: dev-qt/qtmultimedia-5.12.3 Build fails for CPU prior to Haswell/Bulldozer
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-08 14:29 UTC by Anthony Segredo
Modified: 2019-07-12 12:37 UTC (History)
2 users (show)

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


Attachments
build log (build.log,310.11 KB, text/plain)
2019-07-12 00:37 UTC, Anthony Segredo
Details
/proc/cpuinfo (kaveri_proc_cpu_info.txt,4.99 KB, text/plain)
2019-07-12 00:45 UTC, Anthony Segredo
Details

Note You need to log in before you can comment on or make changes to this bug.
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 gentoo-dev 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 Gentoo Infrastructure gentoo-dev 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