maintainer-feedback requested: [Bug 267593] devel/qt6-base: fails to build with -march=bdver2
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Nov 6 12:49:49 GMT 2022
Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-kde (Team)
<kde at FreeBSD.org> for maintainer-feedback:
Bug 267593: devel/qt6-base: fails to build with -march=bdver2
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267593
--- Description ---
src/corelib/global/qsimd_p.h has the following check:
214 # define ARCH_HASWELL_MACROS (__AVX2__ + __BMI__ + __BMI2__ +
__F16C__ + __FMA__ + __LZCNT__)
215 # if ARCH_HASWELL_MACROS != 0
216 # if ARCH_HASWELL_MACROS != 6
217 # error "Please enable all x86-64-v3 extensions; you probably want
to use -march=haswell or -march=x86-64-v3 instead of -mavx2"
218 # endif
On bdver2 chips, __BMI__, __F16C__, __FMA__ and __LZCNT__ are defined. __AVX2__
and __BMI2__ are not. This causes the build with -march=bdver2 to fail.
More information about the kde-freebsd
mailing list