From nobody Fri Aug 09 17:02:19 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 4WgVZh6gQDz5SRBX 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 4WgVZh2P5Bz40R6 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=GoQVEuizZ8Nc3LS8nOxPS/YZvMdUZ1zk4VBPF75IeTxnKFjOSXaQ8QrYuTqePObXCHLYms JmOB8Z9yIuSt9a5D/2uyKc8WliFU8rBg893XBdqCaBMeasK6Dw1Vg+p4koheF1OjSRJZnQ toPOG6mZEnG+oBN15n2PwJQfc3XFV551iZYSpcxsF2x7xtYf/ICgNyi6QIB1jEXpTOBvUY 7eOLxcPuBN23aHSOGGNxHi4hUS7SHWLu6npxTKEMqb40XgPz9b1vXo1dSIKHEPIo9qwPVs IsvKIvBi1IeWD1EqR3bHoN8kFgHXB0Aso7zUww1D57bb4OtAUO8HVFQY+4P57w== 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=uLgghVSkcJbCAJMBnXyGMJbUhCkesaFNF110MUgUvAt4BehQ+FgHB+hDqRmPFZ98GLL+qi sLs9uHN0iAsvjpkCtPZf+9chg6VQ9OmaV1iLhIPq7fvi2tw6EPBQjNYPwLP/Z3k4xzsZ3q zK4fxfLIvW/XIc0hmbYAYtGpqLqlXXu8j1qOKieO9R7kELQg9FdDFw6q57f7V8pRdzbtRv TLb49cSZhhy4ygogZe+S9tifMtpQNL3jh/w6hSvx4fp5U0Yi4/Yso5b9Q76njS8zyjbqgI bCXGBoENBvpmbczV/vTT3CYMeXrWd3VNy1V5N+n/d5Ax4r9Ih7ndvnrHQZuwlw== 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 4WgVZh1wDNzQ1R for ; 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 479H2KOj080762 for ; 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 479H2Kfd080761 for ports-bugs@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: ports-bugs@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: 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=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.=