From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 549CF158064 for ; Wed, 8 May 2024 16:18:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D0432BC01D; Wed, 8 May 2024 16:18:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 476902BC01D for ; Wed, 8 May 2024 16:18:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02F323431C9 for ; Wed, 8 May 2024 16:18:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 959281355 for ; Wed, 8 May 2024 16:18:42 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1715185064.7f3dcfe18e8f64b9f69ff8b16a2e5bfe440473a9.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtwebengine/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild dev-qt/qtwebengine/qtwebengine-6.9999.ebuild X-VCS-Directories: dev-qt/qtwebengine/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 7f3dcfe18e8f64b9f69ff8b16a2e5bfe440473a9 X-VCS-Branch: master Date: Wed, 8 May 2024 16:18:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4ba23d13-8416-411f-8989-32615a4b66d1 X-Archives-Hash: e1e08a41300c4a343c9f93ba9498df22 commit: 7f3dcfe18e8f64b9f69ff8b16a2e5bfe440473a9 Author: Ionen Wolkens gentoo org> AuthorDate: Wed May 8 08:54:14 2024 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Wed May 8 16:17:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f3dcfe1 dev-qt/qtwebengine: "fix" build with clang-18 + -march=native (qt6) Needs more looking into but want a quick workaround before 6.7.1 releases with clang users having started to use 18. Signed-off-by: Ionen Wolkens gentoo.org> dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild | 11 +++++++++++ dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild | 11 +++++++++++ dev-qt/qtwebengine/qtwebengine-6.9999.ebuild | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild b/dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild index 997dbaf4ec5f..0829dcfa3b22 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.7.0.ebuild @@ -239,6 +239,17 @@ src_configure() { # for simplicity. Override with USE=custom-cflags if wanted, please # report if above -march works again so can cleanup. use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*' + + # skia and xnnpack fail with clang-18 + some(?) -march=native while + # can't reproduce with seemingly equivalent =skylake), needs more + # looking into as there may be something odd going on (clang bug?). + # Note that upstream Qt disallows custom *FLAGS on qtwebengine meaning + # we are not supposed to pass -march=native in the first place. + # TODO: try dropping this on major Qt and clang bumps + # See also: https://groups.google.com/g/skia-discuss/c/DNW4oq3W2fI + # (Transform_inl.h:769:21: error: AVX vector without 'evex512') + use amd64 && tc-is-clang && [[ $(clang-major-version) -ge 18 ]] && + filter-flags -march=native fi export NINJA NINJAFLAGS=$(get_NINJAOPTS) diff --git a/dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild index 6dc080fed1e4..750f700160b2 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild @@ -236,6 +236,17 @@ src_configure() { # for simplicity. Override with USE=custom-cflags if wanted, please # report if above -march works again so can cleanup. use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*' + + # skia and xnnpack fail with clang-18 + some(?) -march=native while + # can't reproduce with seemingly equivalent =skylake), needs more + # looking into as there may be something odd going on (clang bug?). + # Note that upstream Qt disallows custom *FLAGS on qtwebengine meaning + # we are not supposed to pass -march=native in the first place. + # TODO: try dropping this on major Qt and clang bumps + # See also: https://groups.google.com/g/skia-discuss/c/DNW4oq3W2fI + # (Transform_inl.h:769:21: error: AVX vector without 'evex512') + use amd64 && tc-is-clang && [[ $(clang-major-version) -ge 18 ]] && + filter-flags -march=native fi export NINJA NINJAFLAGS=$(get_NINJAOPTS) diff --git a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild index 6dc080fed1e4..750f700160b2 100644 --- a/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild +++ b/dev-qt/qtwebengine/qtwebengine-6.9999.ebuild @@ -236,6 +236,17 @@ src_configure() { # for simplicity. Override with USE=custom-cflags if wanted, please # report if above -march works again so can cleanup. use arm64 && tc-is-gcc && filter-flags '-march=*' '-mcpu=*' + + # skia and xnnpack fail with clang-18 + some(?) -march=native while + # can't reproduce with seemingly equivalent =skylake), needs more + # looking into as there may be something odd going on (clang bug?). + # Note that upstream Qt disallows custom *FLAGS on qtwebengine meaning + # we are not supposed to pass -march=native in the first place. + # TODO: try dropping this on major Qt and clang bumps + # See also: https://groups.google.com/g/skia-discuss/c/DNW4oq3W2fI + # (Transform_inl.h:769:21: error: AVX vector without 'evex512') + use amd64 && tc-is-clang && [[ $(clang-major-version) -ge 18 ]] && + filter-flags -march=native fi export NINJA NINJAFLAGS=$(get_NINJAOPTS)