Bug 256152 - graphics/qt5-3d: fails to work on processors with CPU < haswell (anything without AVX2)
Summary: graphics/qt5-3d: fails to work on processors with CPU < haswell (anything wit...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-25 15:52 UTC by crahman
Modified: 2021-05-27 16:14 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crahman 2021-05-25 15:52:23 UTC
The fix to bug#248155 forces the build of qt5-3d to generate AVX2 instructions even on systems that do not support it.

On a Q9650 penryn (which does not support AVX2), with or without CPUTYPE set to core2:

  Use SSE2 instructions .................. yes
  Use AVX2 instructions .................. yes

results during configuration.

As a result, use of qt5-3d after building it on a pre-AVX2 machine results in failure via SIGILL.  This includes attempting to build the dependent port pyside2, and is the source of bug#255753.

The problem is related to comment#6 in bug#248155:
 "Yeah, someone should invest some time in why the AVX2 detection fails."

However, until that problem is fixed it would be better to tolerate the diminished performance resulting from underestimating CPU capabilities than the cryptic failure of dependent systems to run at all.  Perhaps in the meanwhile the use of AVX2 instructions should be made a port configuration option?

Thanks!
Comment 1 crahman 2021-05-27 16:14:12 UTC
Fixed by revision of fix to bug#255753.