Message ID | cover.1660919376.git.kaelyn.alexi@protonmail.com |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 99A1A27BBEA; Fri, 19 Aug 2022 15:49:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4AEDA27BBE9 for <patchwork@mira.cbaines.net>; Fri, 19 Aug 2022 15:49:14 +0100 (BST) Received: from localhost ([::1]:33602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1oP3JB-0003Tb-Ex for patchwork@mira.cbaines.net; Fri, 19 Aug 2022 10:49:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oP3J4-0003TA-9x for guix-patches@gnu.org; Fri, 19 Aug 2022 10:49:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41069) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oP3J0-0006aU-OO for guix-patches@gnu.org; Fri, 19 Aug 2022 10:49:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oP3J0-0000Sv-7I for guix-patches@gnu.org; Fri, 19 Aug 2022 10:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57297] [PATCH 0/7] Update vulkan packages and add vulkan-validationlayers Resent-From: Kaelyn Takata <kaelyn.alexi@protonmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Aug 2022 14:49:02 +0000 Resent-Message-ID: <handler.57297.B.16609205411783@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57297 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57297@debbugs.gnu.org Cc: Kaelyn Takata <kaelyn.alexi@protonmail.com> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16609205411783 (code B ref -1); Fri, 19 Aug 2022 14:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Aug 2022 14:49:01 +0000 Received: from localhost ([127.0.0.1]:59051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1oP3Iz-0000Se-7k for submit@debbugs.gnu.org; Fri, 19 Aug 2022 10:49:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:47606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <kaelyn.alexi@protonmail.com>) id 1oP3Iv-0000SV-Pv for submit@debbugs.gnu.org; Fri, 19 Aug 2022 10:48:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <kaelyn.alexi@protonmail.com>) id 1oP3Iv-0003Nu-G9 for guix-patches@gnu.org; Fri, 19 Aug 2022 10:48:57 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:36093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <kaelyn.alexi@protonmail.com>) id 1oP3It-0006Yt-6h for guix-patches@gnu.org; Fri, 19 Aug 2022 10:48:57 -0400 Date: Fri, 19 Aug 2022 14:48:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1660920531; x=1661179731; bh=15b48qHKs089Gf9Tg133dNNofn9i0XeReU58/cFATkY=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:Feedback-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=zSOnWdn2Ov7LbaiQ+9dahtksZ5x+2CpJAYOW9w298iGC65VkaJEgT0xXovTn//7H1 b+zX+p0YXib/8Hfe68iHwovnxzG0lMc0Wom1gBkt7RzqFRgNCvIXo63RAhWTJD14bv k7CGh1cUHXKbsIgjb4oPsRZ+15TcIrdnzQHY9yWEelKeTYdqWUZwBpgyGOwaEcER7f XG3w8wj7ktLcngdshoddIMbexIQLrd54Ak8M3GdyNzQuXNF3qa7XQYmsY728h4q7Hg 8CcTpEuyNr0jEHeZhew2gLqN6qEIP9duR6Ip2dRmvgygZoVduU658wuMyJFAESEitN HZqA6zL+NCgqw== Message-ID: <cover.1660919376.git.kaelyn.alexi@protonmail.com> Feedback-ID: 34709329:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.131; envelope-from=kaelyn.alexi@protonmail.com; helo=mail-40131.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> Reply-to: Kaelyn Takata <kaelyn.alexi@protonmail.com> X-ACL-Warn: , Kaelyn Takata via Guix-patches <guix-patches@gnu.org> From: Kaelyn Takata via Guix-patches via <guix-patches@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
Update vulkan packages and add vulkan-validationlayers
|
|
Message
Kaelyn Takata
Aug. 19, 2022, 2:48 p.m. UTC
Hi, This patch series adds vulkan-validationlayers 1.2.201 and updates the dependent vulkan packages to compatible versions from approximately the same time period. I had added/updated these packages in a local channel about 8 or 9 months ago and have been running multiple systems with them since then. My motivation at the time was to add vulkan-validationlayers for use with the Vulkan tutorial at https://vulkan-tutorial.com. It was only recently that I was able to fix an issue with the tutorial program not finding the .so for the validation layer, by patching the layer manifest file with the full store path of the .so. A similar phase would need to be added to the mesa package definition for its device selection layer to work properly. The error from the mesa layer not being found when I run the basic tutorial program is: !! validation layer: libVkLayer_MESA_device_select.so: cannot open shared object file: No such file or directory The 'set-layer-path-in-manifest phase in vulkan-validationlayers resolved a similar error about libVkLayer_khronos_validation.so. Final note: I went to update these packages to their latest versions before submitting the series, but they trigger warnings when running programs using Vulkan with Mesa 21.3.8 due it not supporting Vulkan 1.3 (I forget the exact warning). Cheers, Kaelyn Kaelyn Takata (7): gnu: spirv-headers: Update to 1.2.198.0. gnu: spirv-tools: Update to 2021.4. gnu: vulkan-headers: Update to 1.2.202. gnu: vulkan-loader: Update to 1.2.202. gnu: vulkan-tools: Update to 1.2.201. gnu: shaderc: Update to 2021.3. gnu: Add vulkan-validationlayers. gnu/packages/vulkan.scm | 94 +++++++++++++++++++++++++++++------------ 1 file changed, 68 insertions(+), 26 deletions(-) base-commit: 65cabb010e3388d10f9b25ec560bfcfab5f810d4 -- 2.37.2
Comments
Thank you for the patches. Overall they look good to me, but I have some comments: - the first patch updates spriv-headers from 1.5.3 to 1.2.198.0. This looks like a downgrade. Is this jump in version numbers expected? - the commit message for the vulkan-loader update should mention the changes in the build system arguments: * gnu/packages/vulkan.scm (vulkan-loader): Update to 1.2.202. [arguments]: Enable tests by removing obsolete build phase 'disable-loader-tests and adjusting configure flags. - in the patch for vulkan-validationlayers I’d use #$output instead of binding out to (assoc-ref outputs "out"). Other than that this all looks good to me!
This is a small V2 update to rebase against master and address review feedback. The changes are: * Update the commit message for the vulkan-loader update to include the [arguments] change. * Use #$output instead of binding (assoc outputs "out") in the package definition for vulkan-validationlayers Also worth noting is that the versioning scheme for spirv-headers has changed; the old version scheme went up to 1.5.4 in late 2020, and starting in 2021 the version tags are the sdk-1.x.y.z tags used with other Vulkan SDK components (ref: https://github.com/KhronosGroup/SPIRV-Headers/tags). Kaelyn Takata (7): gnu: spirv-headers: Update to 1.2.198.0. gnu: spirv-tools: Update to 2021.4. gnu: vulkan-headers: Update to 1.2.202. gnu: vulkan-loader: Update to 1.2.202. gnu: vulkan-tools: Update to 1.2.201. gnu: shaderc: Update to 2021.3. gnu: Add vulkan-validationlayers. gnu/packages/vulkan.scm | 93 +++++++++++++++++++++++++++++------------ 1 file changed, 67 insertions(+), 26 deletions(-) base-commit: c053dfa52dc778eb3d965f58a85c435ae7fab0dd -- 2.37.2
This looks good, thank you! Because updating vulkan-headers leads to rebuilds of 1000+ packages I pushed it all to a new branch update-vulkan-headers and asked ci.guix.gnu.org to build it on x86_64: https://ci.guix.gnu.org/jobset/update-vulkan-headers Once it’s all been built and we see that it doesn’t break any existing packages we can merge it into the “master” branch.
I had rebased this on top of the “staging” branch. It seems that these changes break a lot of downstream packages, such as weston, which builds fine on staging, but fails on update-vulkan-headers-staging. You can see all new failures here: https://ci.guix.gnu.org/jobset/update-vulkan-headers Here is the failing build of weston: https://ci.guix.gnu.org/build/1444003/details (I just restarted it to see if it’s a transient problem.) Could you please take a look?
------- Original Message ------- On Friday, September 16th, 2022 at 6:34 AM, Ricardo Wurmus <rekado@elephly.net> wrote: > I had rebased this on top of the “staging” branch. It seems that these > changes break a lot of downstream packages, such as weston, which builds > fine on staging, but fails on update-vulkan-headers-staging. > > You can see all new failures here: > https://ci.guix.gnu.org/jobset/update-vulkan-headers > > Here is the failing build of weston: > https://ci.guix.gnu.org/build/1444003/details > > (I just restarted it to see if it’s a transient problem.) > > Could you please take a look? > > -- > Ricardo Thank you for rebasing the patches, and for letting me know of the failures. I'm starting to investigate now, and have already reproduced the weston failure locally. At first glance the weston failure at least might be an (unfortunate) incompatibility with the old version of weston--weston 9.0.0 was released just over two years ago, and over a year before the vulkan versions on the branch. Cheers, Kaelyn
Hi, Sorry for the long period of silence on this patch set! I have finally found a fix for the mpv build failure with the updated spirv-headers and spirv-tools (and likely any others that failed with similar undefined symbols as well). While trying to figure out why mpv wasn't building when other distros have been shipping the same version of mpv against updated spirv & vulkan packages, I started examining their package definitions to see why that may be. The fix is to add "-DSPIRV_TOOLS_BUILD_STATIC=OFF" to the configure flags for spirv-tools. Apparently a change to spirv-tools in late 2020 caused issues when statically linking (lost the link to the ML thread), and the common packaging approach seems to be to disable the static libs with that flag[1][2]. Quick question on procedure: would it be better to send to this bug a revised version of the single patch (#2 of 7), or to rebase the set against the tip of the staging branch and send in a v3 of all 7 patches? Cheers, Kaelyn [1] https://github.com/archlinux/svntogit-packages/blob/packages/spirv-tools/trunk/PKGBUILD#L27 [2] https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-util/spirv-tools/spirv-tools-1.3.224.ebuild#n39