From nobody Fri Aug 09 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 4WgVZh2JVJz5SR6B for ; 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 4WgVZh0Cwsz40Tt for ; 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=aFndkn7Gn9RnIAwXnGCAaX6KrseNtUpFN41QHThs0ITGiUOlacFcAOlrm3INa8UIE+jLog lWUlxDi4OdbGdBOtLYMzlqvPo613cE1oOu735Ux8DudWTItI2e2zGU4CI7nxA4YP2bteGG nqB/nyq4naQcQWlKsNutyS0JBD0waE2Tg1Ecd1rFhRSSaw/823tqbdYAGn9aAejuM4rT8t 7FyExrhW9ZGus9VXXeg1v3mbelcl5F+DvpCT2tKJB1J8cMW9UMB5CAKnJgdWHktWo5Ce30 a+5a5Oghp5oow2d343GXRdgYydWZg4/Takk8YZGfJUunczMxmuGInQMuMY9p0w== 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: in-reply-to:in-reply-to:references:references; bh=iHsKhAY+dWY+DKdolJui8hDn8Z5og2ejX+TSm/qmPp0=; b=LA+YS7pjLJ9h7yvwzjrXzY3nXp5B4kaqRji26fylrxPqC9capLR64otuRYo6Ozk/x4+2sc dw2/kG0T6A3wbEUTUM2oSIXmn2Mf9Yg+RT0XRLcxNTgM3qY6gMcdgmn8Sb08Nl9umqYCF4 xq9eWFQZ1163jjU4at0Xo9mArABzSdoBSi62ltMjAxRJgTDdDUcsOAev97Mk56yaWObkdk wEQ2o09cica7dknVapvsgwTpO3M0Ks0SvGPWiMda/icopvvPwe5z2Vddr8MXst0pTwE3U9 22+o9K8n6w50Ye9vKAWlIVRXirfKV4WB2LAPY46u3Jb0S8le8i6MBJ9+j8/d/A== 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 4WgVZg6sWGzPrZ for ; Fri, 9 Aug 2024 17:02:19 +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 479H2JCY080723 for ; Fri, 9 Aug 2024 17:02:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 479H2J5Z080722 for python@FreeBSD.org; Fri, 9 Aug 2024 17:02:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 280715] math/py-numpy: remove clang error condition in distutils check Date: Fri, 09 Aug 2024 17:02:19 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-python@freebsd.org Sender: owner-freebsd-python@FreeBSD.org MIME-Version: 1.0 Bugzilla Automation has asked freebsd-python (Nobody) for maintainer-feedback: Bug 280715: math/py-numpy: remove clang error condition in distutils check https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280715 --- Description --- 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.