diff options
author | Böszörményi Zoltán <zboszor@pr.hu> | 2020-02-27 10:39:49 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-02-27 07:30:36 -0800 |
commit | 81ba160c95b12b2922f99b60bef25ab37a5e2f0e (patch) | |
tree | e44e36af4889c9d878ba80a4df1de78473312378 | |
parent | 9cab6bc46cf44d13f8fea3b827e298a4f6e16b17 (diff) | |
download | meta-clang-81ba160c95b12b2922f99b60bef25ab37a5e2f0e.tar.gz |
conf/nonclangable.conf: Always build mesa with gcc
Building mesa (at least version 19.3.4) with clang 9.0.1 leads
to linker errors on x86/x86-64:
"undefined reference to `typeinfo for llvm::raw_pwrite_stream'"
in libvulkan_radeon.so
and
"undefined reference to `typeinfo for llvm::RTDyldMemoryManager'"
in libgallium.a.
It was reported at https://gitlab.freedesktop.org/mesa/mesa/issues/2533
It seems it is related to rtti not being enabled, at least reports
from a few years ago on forums lead to that conclusion.
But enabling rtti for clang in PACKAGECONFIG doesn't help.
Just build mesa with gcc, it fixes the linker errors.
Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu>
-rw-r--r-- | conf/nonclangable.conf | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 70336bb..91b9965 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
@@ -45,10 +45,9 @@ TOOLCHAIN_pn-libssp-nonshared = "gcc" | |||
45 | TOOLCHAIN_pn-libstd-rs = "gcc" | 45 | TOOLCHAIN_pn-libstd-rs = "gcc" |
46 | TOOLCHAIN_pn-m4_powerpc = "gcc" | 46 | TOOLCHAIN_pn-m4_powerpc = "gcc" |
47 | # clang does not have 64bit atomics on mips32 | 47 | # clang does not have 64bit atomics on mips32 |
48 | TOOLCHAIN_pn-mesa_mips = "gcc" | 48 | # building Mesa 19.3.x with clang causes linker errors on x86/x86-64 |
49 | TOOLCHAIN_pn-mesa_mipsel = "gcc" | 49 | # See https://gitlab.freedesktop.org/mesa/mesa/issues/2533 |
50 | TOOLCHAIN_pn-mesa_riscv64 = "gcc" | 50 | TOOLCHAIN_pn-mesa = "gcc" |
51 | TOOLCHAIN_pn-mesa_powerpc = "gcc" | ||
52 | # multiple definition of 'mongo::error_details::isNamedCode<0>' | 51 | # multiple definition of 'mongo::error_details::isNamedCode<0>' |
53 | TOOLCHAIN_pn-mongodb = "gcc" | 52 | TOOLCHAIN_pn-mongodb = "gcc" |
54 | # variant-impl.hpp:309:36: error: 'is_variant' does not name a template but is followed by template arguments | 53 | # variant-impl.hpp:309:36: error: 'is_variant' does not name a template but is followed by template arguments |