Openembedded Core Discussions
 help / color / mirror / Atom feed
* [meta-clang][PATCH] conf/nonclangable.conf: Always build mesa with gcc
@ 2020-02-27  6:16 Böszörményi Zoltán
  2020-02-27  6:21 ` Böszörményi Zoltán
  2020-02-27  6:32 ` ✗ patchtest: failure for " Patchwork
  0 siblings, 2 replies; 5+ messages in thread
From: Böszörményi Zoltán @ 2020-02-27  6:16 UTC (permalink / raw)
  To: openembedded-core

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>
---
 conf/nonclangable.conf | 7 +++----
 1 file 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"
 TOOLCHAIN_pn-libstd-rs = "gcc"
 TOOLCHAIN_pn-m4_powerpc = "gcc"
 # clang does not have 64bit atomics on mips32
-TOOLCHAIN_pn-mesa_mips = "gcc"
-TOOLCHAIN_pn-mesa_mipsel = "gcc"
-TOOLCHAIN_pn-mesa_riscv64 = "gcc"
-TOOLCHAIN_pn-mesa_powerpc = "gcc"
+# building Mesa 19.3.x with clang causes linker errors on x86/x86-64
+# See https://gitlab.freedesktop.org/mesa/mesa/issues/2533
+TOOLCHAIN_pn-mesa = "gcc"
 # multiple definition of 'mongo::error_details::isNamedCode<0>'
 TOOLCHAIN_pn-mongodb = "gcc"
 # variant-impl.hpp:309:36: error: 'is_variant' does not name a template but is followed by template arguments
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [meta-clang][PATCH] conf/nonclangable.conf: Always build mesa with gcc
  2020-02-27  6:16 [meta-clang][PATCH] conf/nonclangable.conf: Always build mesa with gcc Böszörményi Zoltán
@ 2020-02-27  6:21 ` Böszörményi Zoltán
  2020-02-27  7:44   ` Khem Raj
  2020-02-27  6:32 ` ✗ patchtest: failure for " Patchwork
  1 sibling, 1 reply; 5+ messages in thread
From: Böszörményi Zoltán @ 2020-02-27  6:21 UTC (permalink / raw)
  To: OpenEmbedded Core Mailing List

Ignore this, the patch is against the zeus branch.
Re-sent with the proper subject.

2020. 02. 27. 7:16 keltezéssel, Böszörményi Zoltán írta:
> 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>
> ---
>   conf/nonclangable.conf | 7 +++----
>   1 file 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"
>   TOOLCHAIN_pn-libstd-rs = "gcc"
>   TOOLCHAIN_pn-m4_powerpc = "gcc"
>   # clang does not have 64bit atomics on mips32
> -TOOLCHAIN_pn-mesa_mips = "gcc"
> -TOOLCHAIN_pn-mesa_mipsel = "gcc"
> -TOOLCHAIN_pn-mesa_riscv64 = "gcc"
> -TOOLCHAIN_pn-mesa_powerpc = "gcc"
> +# building Mesa 19.3.x with clang causes linker errors on x86/x86-64
> +# See https://gitlab.freedesktop.org/mesa/mesa/issues/2533
> +TOOLCHAIN_pn-mesa = "gcc"
>   # multiple definition of 'mongo::error_details::isNamedCode<0>'
>   TOOLCHAIN_pn-mongodb = "gcc"
>   # variant-impl.hpp:309:36: error: 'is_variant' does not name a template but is followed by template arguments
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* ✗ patchtest: failure for conf/nonclangable.conf: Always build mesa with gcc
  2020-02-27  6:16 [meta-clang][PATCH] conf/nonclangable.conf: Always build mesa with gcc Böszörményi Zoltán
  2020-02-27  6:21 ` Böszörményi Zoltán
@ 2020-02-27  6:32 ` Patchwork
  1 sibling, 0 replies; 5+ messages in thread
From: Patchwork @ 2020-02-27  6:32 UTC (permalink / raw)
  To: Andrii Bordunov via Openembedded-core; +Cc: openembedded-core

== Series Details ==

Series: conf/nonclangable.conf: Always build mesa with gcc
Revision: 1
URL   : https://patchwork.openembedded.org/series/22979/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch            [meta-clang] conf/nonclangable.conf: Always build mesa with gcc
 Issue             Series sent to the wrong mailing list [test_target_mailing_list] 
  Suggested fix    Check the project's README (meta-clang) and send the patch to the indicated list

* Issue             Series does not apply on top of target branch [test_series_merge_on_head] 
  Suggested fix    Rebase your series on top of targeted branch
  Targeted branch  master (currently at 23ad05b98a)



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-clang][PATCH] conf/nonclangable.conf: Always build mesa with gcc
  2020-02-27  6:21 ` Böszörményi Zoltán
@ 2020-02-27  7:44   ` Khem Raj
  2020-02-27  8:41     ` Böszörményi Zoltán
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2020-02-27  7:44 UTC (permalink / raw)
  To: Böszörményi Zoltán; +Cc: OpenEmbedded Core Mailing List

Can you send it via github pull request please

On Wed, Feb 26, 2020 at 10:21 PM Böszörményi Zoltán via
Openembedded-core <openembedded-core@lists.openembedded.org> wrote:
>
> Ignore this, the patch is against the zeus branch.
> Re-sent with the proper subject.
>
> 2020. 02. 27. 7:16 keltezéssel, Böszörményi Zoltán írta:
> > 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>
> > ---
> >   conf/nonclangable.conf | 7 +++----
> >   1 file 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"
> >   TOOLCHAIN_pn-libstd-rs = "gcc"
> >   TOOLCHAIN_pn-m4_powerpc = "gcc"
> >   # clang does not have 64bit atomics on mips32
> > -TOOLCHAIN_pn-mesa_mips = "gcc"
> > -TOOLCHAIN_pn-mesa_mipsel = "gcc"
> > -TOOLCHAIN_pn-mesa_riscv64 = "gcc"
> > -TOOLCHAIN_pn-mesa_powerpc = "gcc"
> > +# building Mesa 19.3.x with clang causes linker errors on x86/x86-64
> > +# See https://gitlab.freedesktop.org/mesa/mesa/issues/2533
> > +TOOLCHAIN_pn-mesa = "gcc"
> >   # multiple definition of 'mongo::error_details::isNamedCode<0>'
> >   TOOLCHAIN_pn-mongodb = "gcc"
> >   # variant-impl.hpp:309:36: error: 'is_variant' does not name a template but is followed by template arguments
> >
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-clang][PATCH] conf/nonclangable.conf: Always build mesa with gcc
  2020-02-27  7:44   ` Khem Raj
@ 2020-02-27  8:41     ` Böszörményi Zoltán
  0 siblings, 0 replies; 5+ messages in thread
From: Böszörményi Zoltán @ 2020-02-27  8:41 UTC (permalink / raw)
  To: Khem Raj; +Cc: OpenEmbedded Core Mailing List

2020. 02. 27. 8:44 keltezéssel, Khem Raj írta:
> Can you send it via github pull request please

Sure.

> 
> On Wed, Feb 26, 2020 at 10:21 PM Böszörményi Zoltán via
> Openembedded-core <openembedded-core@lists.openembedded.org> wrote:
>>
>> Ignore this, the patch is against the zeus branch.
>> Re-sent with the proper subject.
>>
>> 2020. 02. 27. 7:16 keltezéssel, Böszörményi Zoltán írta:
>>> 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>
>>> ---
>>>    conf/nonclangable.conf | 7 +++----
>>>    1 file 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"
>>>    TOOLCHAIN_pn-libstd-rs = "gcc"
>>>    TOOLCHAIN_pn-m4_powerpc = "gcc"
>>>    # clang does not have 64bit atomics on mips32
>>> -TOOLCHAIN_pn-mesa_mips = "gcc"
>>> -TOOLCHAIN_pn-mesa_mipsel = "gcc"
>>> -TOOLCHAIN_pn-mesa_riscv64 = "gcc"
>>> -TOOLCHAIN_pn-mesa_powerpc = "gcc"
>>> +# building Mesa 19.3.x with clang causes linker errors on x86/x86-64
>>> +# See https://gitlab.freedesktop.org/mesa/mesa/issues/2533
>>> +TOOLCHAIN_pn-mesa = "gcc"
>>>    # multiple definition of 'mongo::error_details::isNamedCode<0>'
>>>    TOOLCHAIN_pn-mongodb = "gcc"
>>>    # variant-impl.hpp:309:36: error: 'is_variant' does not name a template but is followed by template arguments
>>>
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-02-27  8:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-27  6:16 [meta-clang][PATCH] conf/nonclangable.conf: Always build mesa with gcc Böszörményi Zoltán
2020-02-27  6:21 ` Böszörményi Zoltán
2020-02-27  7:44   ` Khem Raj
2020-02-27  8:41     ` Böszörményi Zoltán
2020-02-27  6:32 ` ✗ patchtest: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox