emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49794: closed ([PATCH core-updates-frozen] fix mesa-opencl and mesa-


From: GNU bug Tracking System
Subject: bug#49794: closed ([PATCH core-updates-frozen] fix mesa-opencl and mesa-opencl-icd build failure)
Date: Tue, 03 Aug 2021 17:50:02 +0000

Your message dated Tue, 03 Aug 2021 19:49:41 +0200
with message-id <87tuk6s9je.fsf@gnu.org>
and subject line Re: bug#49794: [PATCH core-updates-frozen] fix mesa-opencl and 
mesa-opencl-icd build failure
has caused the debbugs.gnu.org bug report #49794,
regarding [PATCH core-updates-frozen] fix mesa-opencl and mesa-opencl-icd build 
failure
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
49794: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49794
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH core-updates-frozen] fix mesa-opencl and mesa-opencl-icd build failure Date: Sat, 31 Jul 2021 18:08:28 +0000
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

Attachment: 0001-gnu-mesa-fix-mesa-opencl-and-mesa-opencl-icd-21.1.6.patch
Description: Text Data


--- End Message ---
--- Begin Message --- 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 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hi John,

John Kehayias <john.kehayias@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’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]