From nobody Fri Aug  9 17:02:19 2024
X-Original-To: python@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 4WgVZh6c0qz5SQw9
	for <python@mlmmj.nyi.freebsd.org>; Fri, 09 Aug 2024 17:02:20 +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 "R11" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4WgVZh1dQZz40R5
	for <python@FreeBSD.org>; Fri,  9 Aug 2024 17:02:20 +0000 (UTC)
	(envelope-from bugzilla-noreply@freebsd.org)
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723222940; a=rsa-sha256; cv=none;
	b=K11r3NLagR1+2xmctmmpsyrCm3z+vqSs3WS0oig267IBjB91lV/xPq6z42POVOasW07nZA
	vJfXnYiMPC/xF9ocd/q3jLR/OfyncOg6RiWiqKsLwgvTypfeyKyBzLDBzGH6VtLmZh0ZZU
	UYat2sv7JLbdW54ibrO4N/fV9I0Akiztj1/6yL7xaR7MzuSYvmr8oeoa9uFd85hcoL9ZxK
	oHZQvDffwL/Jps+pxyHfSUWRnSd1DwEHMzFeNQS4bgMSItWXLxbCeIlgie3SNGA6FkpkAK
	mQi2L+KMafS4lJeqtBiMZybc9OaTxdNGL5ffIgHWEf0wKFgvXzWEOBU71CKFqw==
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=1723222940;
	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=Oi0VF98iwv0LaHGJCUnbht1MJAwWtW66p7EvWrd9kyI=;
	b=aWmPhQcjPi2q81dGsu4KggmYKcwBkxxOCGSKogpTHexG7a6y5uBFVpibzGA6G1gio8N1Xp
	L3ngmbmEEcAOY2uCL//bJGgTCWkzXUP58ef3dl/gmVdpTlBKYaiqGGl4bVneyzNMf0wSAw
	7i9t3MXAshTzbSKPD3W4Kzqg1/zIFzv1i8MRfgPgwQEm1U8Qd6iE5cy0YnXDI3CQ9bvn3J
	H3l0rjZiSdf4qtJG4d0hQWg1Ic6WQPeI1/RXdX02aerPngHKEQpp8zeco6GGngIvO7dGRB
	8OS/M8pNAlYXu0yA4qH1U7xV7pONQ9tULmBIsr4/2OwLJ7GZsc4mzDYr13Sbtg==
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 4WgVZh18LYzPmQ
	for <python@FreeBSD.org>; Fri,  9 Aug 2024 17:02:20 +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 479H2KNg080754
	for <python@FreeBSD.org>; Fri, 9 Aug 2024 17:02:20 GMT
	(envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
	by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 479H2KAp080749
	for python@FreeBSD.org; Fri, 9 Aug 2024 17:02:20 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: python@FreeBSD.org
Subject: [Bug 280715] math/py-numpy: remove clang error condition in
 distutils check
Date: Fri, 09 Aug 2024 17:02:19 +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: dim@FreeBSD.org
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: python@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
Message-ID: <bug-280715-21822@https.bugs.freebsd.org/bugzilla/>
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: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-python
List-Help: <mailto:python+help@freebsd.org>
List-Post: <mailto:python@freebsd.org>
List-Subscribe: <mailto:python+subscribe@freebsd.org>
List-Unsubscribe: <mailto:python+unsubscribe@freebsd.org>
X-BeenThere: freebsd-python@freebsd.org
Sender: owner-freebsd-python@FreeBSD.org
MIME-Version: 1.0

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280715

            Bug ID: 280715
           Summary: math/py-numpy: remove clang error condition in
                    distutils check
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(python@FreeBSD.org)
          Assignee: python@FreeBSD.org

numpy has a C source file in their distutils checks, which is supposed
to check for AVX512FP16, but for apparently historical reasons, it has:

    /* clang has a bug regarding our spr coode, see gh-23730. */
    #if __clang__
    #error
    #endif

Since clang 19 now supports the -mavx512fp16 flag, other ports such as
science/py-scipy (which depend on numpy) then bomb out in their
configure scripts with:

    WARN: CCompilerOpt.dist_test[637] : CCompilerOpt._dist_test_spawn[771] :
Command (cc -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC -c
/usr/local/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_s=
pr.c
-o
/tmp/tmp_dkw8pp0/usr/local/lib/python3.11/site-packages/numpy/distutils/che=
cks/cpu_avx512_spr.o
-MMD -MF
/tmp/tmp_dkw8pp0/usr/local/lib/python3.11/site-packages/numpy/distutils/che=
cks/cpu_avx512_spr.o.d
-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma
-mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq
-mavx512vnni -mavx512ifma -mavx512vbmi -mavx512vbmi2 -mavx512bitalg
-mavx512vpopcntdq -mavx512fp16 -Werror) failed with exit status 1 output ->
=20=20=20
/usr/local/lib/python3.11/site-packages/numpy/distutils/checks/cpu_avx512_s=
pr.c:20:2:
error:
       20 | #error
          |  ^
    1 error generated.

I have tried clang 15 through 19 on cpu_avx512_spr.c with the #error
removed, and none of them crashed or otherwise got an error. So I think
we should simply remove the whole #if / #endif part.

Also bump the portrevision, to force dependencies to configure against
the new cpu_avx512_spr.c file.

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