HomeFreeBSD

graphics/bgfx: fix build on i386 with CPUTYPE=nehalem and newer

Description

graphics/bgfx: fix build on i386 with CPUTYPE=nehalem and newer

Build error:
/wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.127.8725-465/bimg/3rdparty/astc-encoder/source/astcenc_vecmathlib_sse_4.h:1313:26: error: use of undeclared identifier '_mm_popcnt_u64'; did you mean '_mm_popcnt_u32'?

return static_cast<int>(_mm_popcnt_u64(v));
                        ^~~~~~~~~~~~~~
                        _mm_popcnt_u32

/usr/lib/clang/14.0.5/include/popcntintrin.h:33:1: note: '_mm_popcnt_u32' declared here
_mm_popcnt_u32(unsigned int __A)
^
1 error generated.

Upstream issues:
https://github.com/ARM-software/astc-encoder/issues/468
https://github.com/bkaradzic/bgfx/pull/2929#issuecomment-2093377116

PR: 278722
Approved by: yuri (maintainer timeout, 15 days)

Details

Provenance
vvdAuthored on Sat, May 18, 2:04 PM
Parents
R11:8cc207c94a7d: security/easy-rsa: update to 3.2.0; fix pkg-message [1]
Branches
Unknown
Tags
Unknown