From nobody Fri May 3 17:38:31 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VWJ1j1v7Pz5J9pL for ; Fri, 3 May 2024 17:38:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VWJ1h4d97z4Bqf for ; Fri, 3 May 2024 17:38:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714757912; a=rsa-sha256; cv=none; b=tx74EcIfArxsyXs3GAiihrMvAe8CqAZdj4D45onRUKI1G7YnLRhs6qPaV/PR2ehI9G8HxZ sjF26SVPjemr8Ajok6onTYTCNKQPbH4TjwmuJi4GnUf+FOKe3nwr0gtGhYoJF/vvZF0KNd 1vKAQ5clpfTHV22YIQImeA8j4oGlgIxGglvIBgcoxyGsPHgucHKjJfLp3t+XpGpMpvve+Y tbKyhE9apfHcdOY615c4v/E3TddkgjrcMID09en5g0xOeoLF8fbrM/HyIdb57wMlJYWSC7 xj8H2T0OXHnS7Ry7URSw7IcCCsSEFSAdWfGHo1ZdLCW5bt19JKAzOOCWkeL3VA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714757912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pphJU6bqlmRxIOW+Yco1zwYUBT6apNhAP/CFwi5pdNs=; b=i80N1C7v6tX61nXQiGERyvDDBjAVw4RhPobaQAsMzf1Jw43pdmRHw+EACK39IZ/EysbuAY WW7zwVCpFr7OljUvtIHOXLF+N/6/VoXXY83M4oCNIgAMtPHx6QN+8ZxDMqu4dyY4cXB+PS m0WNd3bsFpWg6MMzS2Q1IimntI+1/Xm10auIxEYiKITRd8fSxN/Q6W4eBMlYSTmoxZGLxk nNMNGFaDoSZ9w444aIwDitusalB257IR0jTacG41dlHI+WIlbxZr85ItpRvXZRGDIRvQSc zF4fLW3aBAlj37XzPGf+JmZZxDkitTW1TO0Y9RB+o83C2qYBM/EeCwBRlHIn8Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VWJ1h47Cbzvy5 for ; Fri, 3 May 2024 17:38:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 443HcW2H079713 for ; Fri, 3 May 2024 17:38:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 443HcW0F079709 for ports-bugs@FreeBSD.org; Fri, 3 May 2024 17:38:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 278722] graphics/bgfx: build error on i386 with CPUTYPE=nehalem and newer Date: Fri, 03 May 2024 17:38:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vvd@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: yuri@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278722 Bug ID: 278722 Summary: graphics/bgfx: build error on i386 with CPUTYPE=3Dnehalem and newer Product: Ports & Packages Version: Latest Hardware: i386 OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: yuri@freebsd.org Reporter: vvd@FreeBSD.org Assignee: yuri@freebsd.org Flags: maintainer-feedback?(yuri@freebsd.org) Attachment #250356 maintainer-approval? Flags: Created attachment 250356 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D250356&action= =3Dedit Fix build error on i386 with CPUTYPE=3Dnehalem and newer Tested on 13.2 i386 with CPUTYPE=3Dnehalem and newer: /wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.127.8725-465/bimg/3rdpar= ty/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(_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. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D This patch work for me: --- bimg/3rdparty/astc-encoder/source/astcenc_vecmathlib_sse_4.h.orig +++ bimg/3rdparty/astc-encoder/source/astcenc_vecmathlib_sse_4.h @@ -1309,5 +1309,7 @@ ASTCENC_SIMD_INLINE int popcount(uint64_t v) { #if defined(__MINGW32__) return static_cast(__builtin_popcountll(v)); +#elif defined(__FreeBSD__) && !defined(__x86_64__) + return static_cast(_mm_popcnt_u32(static_cast(v))); #else return static_cast(_mm_popcnt_u64(v)); #endif // defined(__MINGW32__) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Reported upstream: https://github.com/bkaradzic/bgfx/pull/2929#issuecomment-2093377116 --=20 You are receiving this mail because: You are the assignee for the bug.=