[Bug 267593] devel/qt6-base: fails to build with -march=bdver2

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 06 Nov 2022 12:49:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267593

            Bug ID: 267593
           Summary: devel/qt6-base: fails to build with -march=bdver2
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org
          Assignee: kde@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.