GNU bug report logs - #49794
[PATCH core-updates-frozen] fix mesa-opencl and mesa-opencl-icd build failure

Previous Next

Package: guix-patches;

Reported by: John Kehayias <john.kehayias <at> protonmail.com>

Date: Sat, 31 Jul 2021 18:09:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49794 in the body.
You can then email your comments to 49794 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#49794; Package guix-patches. (Sat, 31 Jul 2021 18:09:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Kehayias <john.kehayias <at> protonmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 31 Jul 2021 18:09:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Kehayias <john.kehayias <at> protonmail.com>
To: "guix-patches <at> gnu.org" <guix-patches <at> gnu.org>
Subject: [PATCH core-updates-frozen] fix mesa-opencl and mesa-opencl-icd build
 failure
Date: Sat, 31 Jul 2021 18:08:28 +0000
[Message part 1 (text/plain, inline)]
Hello,

Attached is a patch to fix failures for mesa-opencl and mesa-opencl-icd building with the update to 21.1.6 for Mesa. This is from upstream, a change in meson.build that removed LLVM targets (for CMake users it seems) but then breaks compilation for us on a shared library LLVM build.

https://gitlab.freedesktop.org/mesa/mesa/-/issues/4443

https://gitlab.freedesktop.org/mesa/mesa/-/issues/4302

And the commit that changed it: https://gitlab.freedesktop.org/mesa/mesa/-/commit/80817b6e344258ac9b955f824ebf9019a0fc1610

The patch restores 'all-targets' to llvm_modules and successfully builds. Apologies about the long line and I'm still guessing at some of the scheme patching code. Since Mesa takes a while to build I didn't want to go through many iterations to get the code cleaner. Please feel free to make it better, and I would think mesa-opencl-icu should be able to inherit the patch from mesa-opencl, but I didn't try to do that.

Thanks,
John
[0001-gnu-mesa-fix-mesa-opencl-and-mesa-opencl-icd-21.1.6.patch (text/x-patch, attachment)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Tue, 03 Aug 2021 17:50:02 GMT) Full text and rfc822 format available.

Notification sent to John Kehayias <john.kehayias <at> protonmail.com>:
bug acknowledged by developer. (Tue, 03 Aug 2021 17:50:02 GMT) Full text and rfc822 format available.

Message #10 received at 49794-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: John Kehayias <john.kehayias <at> protonmail.com>
Cc: 49794-done <at> debbugs.gnu.org
Subject: Re: bug#49794: [PATCH core-updates-frozen] fix mesa-opencl and
 mesa-opencl-icd build failure
Date: Tue, 03 Aug 2021 19:49:41 +0200
Hi John,

John Kehayias <john.kehayias <at> protonmail.com> skribis:

> Attached is a patch to fix failures for mesa-opencl and mesa-opencl-icd building with the update to 21.1.6 for Mesa. This is from upstream, a change in meson.build that removed LLVM targets (for CMake users it seems) but then breaks compilation for us on a shared library LLVM build.
>
> https://gitlab.freedesktop.org/mesa/mesa/-/issues/4443
>
> https://gitlab.freedesktop.org/mesa/mesa/-/issues/4302
>
> And the commit that changed it: https://gitlab.freedesktop.org/mesa/mesa/-/commit/80817b6e344258ac9b955f824ebf9019a0fc1610
>
> The patch restores 'all-targets' to llvm_modules and successfully builds. Apologies about the long line and I'm still guessing at some of the scheme patching code. Since Mesa takes a while to build I didn't want to go through many iterations to get the code cleaner. Please feel free to make it better, and I would think mesa-opencl-icu should be able to inherit the patch from mesa-opencl, but I didn't try to do that.

[...]

> +       ((#:phases phases)
> +        `(modify-phases ,phases
> +           (add-after 'unpack 'enable-llvm-platforms
> +             (lambda* (#:key inputs #:allow-other-keys)
> +               ;; Restore all LLVM targets in order to build with our LLVM
> +               ;; as a shared library.
> +               (substitute* "meson.build"
> +                 (("'linker', 'coverage', 'instrumentation', 'ipo', 'irreader',")
> +                  "'all-targets', 'linker', 'coverage', 'instrumentation', 'ipo', 'irreader',"))))))))

I feel this is easier to follow when expressed as a good old patch, so I
took the liberty to do that and pushed it as
1685128e6e1147049feddee617a616ce7f3592c0.

Let me know if anything’s amiss.

Thanks!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#49794; Package guix-patches. (Tue, 03 Aug 2021 18:05:01 GMT) Full text and rfc822 format available.

Message #13 received at 49794-done <at> debbugs.gnu.org (full text, mbox):

From: John Kehayias <john.kehayias <at> protonmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 49794-done <at> debbugs.gnu.org
Subject: Re: bug#49794: [PATCH core-updates-frozen] fix mesa-opencl and
 mesa-opencl-icd build failure
Date: Tue, 03 Aug 2021 18:04:17 +0000
Hi Ludo’,

On Tuesday, August 3rd, 2021 at 1:49 PM, Ludovic Courtès <ludo <at> gnu.org> wrote:

> I feel this is easier to follow when expressed as a good old patch, so I
>
> took the liberty to do that and pushed it as
>
> 1685128e6e1147049feddee617a616ce7f3592c0.
>
> Let me know if anything’s amiss.
>

Looks good to me, thanks! I'll check in on Cuirass later to confirm the 2 mesa-opencl packages built, and report back if something has gone wrong.

Slowly but surely to getting core-updates-frozen done...

John




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 01 Sep 2021 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.