Bugzilla Automation <[email protected]> has asked freebsd-kde (Team)
<[email protected]> 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.

Reply via email to