From nobody Mon May 29 14:29:30 2023 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 4QVHwV6DCwz4Xrfk for ; Mon, 29 May 2023 14:29:30 +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 4QVHwV4KvFz3R1g for ; Mon, 29 May 2023 14:29:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685370570; 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=h6mEzivRHGdKr8YzVGfg9nr4mfkjFAgBQCHH4e9o+04=; b=V1iMxS3Yf8vAGe/wlQGw80RSeDwfY7UhtSlV42qSL4cszfvs6QfJLhi15OPXHNVi59PEBT KcgtKEgXhGmdrbhSnOui/UNDEOKfiEej3Y+Ql/f21zzR/IQSMCzMh7iO/knFQ4TSEZxAb0 eNf30/TPsJwVapc5JbOmpUN71DRGVNLXL6izO0yZkC8OxQYfH+dfAdiACKIhRPSLxPOYLN Z1pbKuCvQzaWH5LFrLp/qDjQgmehCdOQTOGvPwPNuQYEwtSqGf24+XQpj6nBVDr9x7asj9 xPcGVXyOqqSjTWSb3onTPc+pli6GdK342g050LAoRvPKJIm9WxNkv0rzYMaxCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685370570; a=rsa-sha256; cv=none; b=S66C+KdQOIHON5Y97SHQ8BEMhXAN5/i8U0B5ESSfSLiIT+rjfQ1+7MiwNvZo0q/ydh5048 M11Ec5Ay2fr9LA7m718F6+LkQjiQ0ibD+hvCyrNKuUyIy4TwIw8JJpyu3zMc+rDKyssZzR 7SYIIMBRd12h1DYdPMAnqdm6g75+6ZgMXOKqCG2GXPcEdN0Ia9Fd/micwDRWl1U3uvEk86 a92UccNZ8tUku/ThWFhh/xgPoIAcsIfQDzSyyMkBacNxNGrSeeM14jcjn7IT6OhHfF/t0U i+g42AwT1wFEj8xgTO3m7Z+1tFK/1SWeU7Hj8uT7vgMUYQVCRB08jE9pRV5gmw== 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 4QVHwV37vYzFFp for ; Mon, 29 May 2023 14:29:30 +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 34TETUbA053801 for ; Mon, 29 May 2023 14:29:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34TETU31053800 for ports-bugs@FreeBSD.org; Mon, 29 May 2023 14:29:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271624] emulators/qmc2: clang crashes during build on (12.4,13.1}-arm64-quarterly Date: Mon, 29 May 2023 14:29:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271624 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D8792c03886d9e6df10fbac825819603dc= 059c7ea commit 8792c03886d9e6df10fbac825819603dc059c7ea Author: Dimitry Andric AuthorDate: 2023-05-29 14:27:58 +0000 Commit: Dimitry Andric CommitDate: 2023-05-29 14:28:18 +0000 Apply clang fixes for crashes compiling ARM/AArch64 CRC intrinsics Merge commit 069ecd0c6e2c from llvm-project (by Fangrui Song): [ARM] Check target feature support for __builtin_arm_crc* `__builtin_arm_crc*` requires the target feature crc which is availab= le on armv8 and above. Calling the fuctions for armv7 leads to a SelectionDAG cra= sh. ``` % clang -c --target=3Darmv7-unknown-linux-gnueabi -c a.c fatal error: error in backend: Cannot select: intrinsic %llvm.arm.crc= 32b PLEASE submit a bug report to ... ``` Add `TARGET_BUILTIN` and define required features for these builtins = to report an error in `CodeGenFunction::checkTargetFeatures`. The proble= m is quite widespread. I will add `TARGET_BUILTIN` for more builtins later. Fix https://github.com/llvm/llvm-project/issues/57802 Differential Revision: https://reviews.llvm.org/D134127 Merge commit b2d7a0dcf1ff from llvm-project (by Fangrui Song): [AArch64] Check target feature support for __builtin_arm_crc* This is the AArch64 counterpart of D134127. Daniel Kiss will change more `BUILTIN` to `TARGET_BUILTIN`. Fix #57802 Note that programs attempting to use ARM/AArch64 CRC intrinsics, when they are not supported by the targeted CPU, will still receive a regular compilation error (instead of a fatal backend error) similar to: 7zCrc.c:4:10: error: '__builtin_arm_crc32b' needs target feature crc return __builtin_arm_crc32b(a, b); ^ Reported by: Alastair Hogge PR: 271624 MFC after: 3 days .../clang/include/clang/Basic/BuiltinsAArch64.def | 20 ++++++++++++----= ---- .../clang/include/clang/Basic/BuiltinsARM.def | 20 ++++++++++++----= ---- .../llvm-project/clang/lib/Basic/Targets/AArch64.cpp | 2 ++ contrib/llvm-project/clang/lib/Basic/Targets/ARM.cpp | 2 ++ 4 files changed, 28 insertions(+), 16 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=