HomeFreeBSD

graphics/openexr: fix build on Sandy Bridge CPUs

Description

graphics/openexr: fix build on Sandy Bridge CPUs

OpenEXR attempts to use F16C intrinsics when AVX available and
at least one of these is true: F16C available, GCC used, or clang used.

Intel Sandy Bridge processors do have AVX extensions,
but no F16C instruction set extension, so compilers (clang 19, 20, gcc 14)
complain:

work/openexr-3.4.4/src/lib/OpenEXRCore/unpack.c:37:18:

error: always_inline function '_mm256_cvtph_ps' requires target feature 'f16c',
but would be inlined into function 'half_to_float_buffer'
that is compiled without support for 'f16c'
 37 |             out, _mm256_cvtph_ps (_mm_loadu_si128 ((const __m128i*) in)));
    |                  ^

Not bumping PORTREVISION because this is not a supported configuration.

https://github.com/AcademySoftwareFoundation/openexr/issues/2231

Reported by: "UnitedMarsupials"
MFH: 2025Q4

(cherry picked from commit 90d4fc1621bb463d19be5a6459f90d644258188d)

Details

Provenance
mandreeAuthored on Jan 5 2026, 11:24 PM
Parents
R11:305ef2ab20d2: x11/xdg-user-dirs-gtk: update to 0.16
Branches
Unknown
Tags
Unknown