From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/4] package/mesa3d: enable llvm RTTI when needed
Date: Sat, 5 Oct 2019 11:48:16 +0200 [thread overview]
Message-ID: <20191005094818.1956334-2-romain.naour@gmail.com> (raw)
In-Reply-To: <20191005094818.1956334-1-romain.naour@gmail.com>
LLVM must be built with rtti (runtime type information) support
to build the Gallium Nouveau driver or the Clover OpenCL state
tracker when llvm support is enabled in mesa3d.
Fixes the build when BR2_PACKAGE_MESA3D_OPENCL is set:
"The Clover OpenCL state tracker requires rtti, you need to turn off clover or use an LLVM built with LLVM_ENABLE_RTTI."
This check was added by mesa3d 19.1:
https://cgit.freedesktop.org/mesa/mesa/commit/?id=29912f2ea486fb8ffbc98db347679cf542422efe
Fixes the build when BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU and BR2_PACKAGE_MESA3D_LLVM are set
"The Nouveau driver requires rtti. You either need to turn off nouveau or use an LLVM built with LLVM_ENABLE_RTTI."
This check was added by mesa3d 19.0:
https://cgit.freedesktop.org/mesa/mesa/commit/?id=a2596450ac7330c8965c819491038fb1ad454333
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
package/mesa3d/Config.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index d9a705f991..5bec4405b7 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -49,6 +49,7 @@ config BR2_PACKAGE_MESA3D_OPENCL
depends on BR2_PACKAGE_MESA3D_LLVM
depends on BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 || \
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_RADEONSI
+ select BR2_PACKAGE_LLVM_RTTI
select BR2_PACKAGE_CLANG
select BR2_PACKAGE_LIBCLC
select BR2_PACKAGE_HAS_LIBOPENCL
@@ -122,6 +123,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
select BR2_PACKAGE_LIBDRM_NOUVEAU
select BR2_PACKAGE_MESA3D_NEEDS_XA
+ select BR2_PACKAGE_LLVM_RTTI if BR2_PACKAGE_MESA3D_LLVM
help
Supports all Nvidia GPUs.
--
2.23.0
next prev parent reply other threads:[~2019-10-05 9:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-05 9:48 [Buildroot] [PATCH v2 1/4] package/llvm: add llvm RTTI option Romain Naour
2019-10-05 9:48 ` Romain Naour [this message]
2019-10-05 14:18 ` [Buildroot] [PATCH v2 2/4] package/mesa3d: enable llvm RTTI when needed Bernd Kuhls
2019-10-05 9:48 ` [Buildroot] [PATCH v2 3/4] package/mesa3d: add xlib_libXv dependency to mesa3d xvmc Romain Naour
2019-10-05 14:18 ` Bernd Kuhls
2019-10-12 14:04 ` Bernd Kuhls
2019-10-05 9:48 ` [Buildroot] [PATCH v2 4/4] package/x11r7/xlib_libXvMC: remove xlib_libXv dependency Romain Naour
2019-10-05 14:19 ` Bernd Kuhls
2019-10-26 20:55 ` Thomas Petazzoni
2019-10-26 21:10 ` Romain Naour
2019-10-05 14:18 ` [Buildroot] [PATCH v2 1/4] package/llvm: add llvm RTTI option Bernd Kuhls
2019-10-25 19:41 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191005094818.1956334-2-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox