conf/nonclangable.conf: Always build mesa with gcc
PATCH 1/1 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.
--- conf/nonclangable.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
conf/nonclangable.conf +3 -4
@@ -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
Signature · 1 line
2.24.1
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:
Quoted 43 lines
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.soand
"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 <[email protected]>--- conf/nonclangable.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)conf/nonclangable.conf +3
-4@@ -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
Can you send it via github pull request please
Quoted 54 lines · Böszörményi Zoltán via Openembedded-core
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:
Quoted 33 lines
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.soand
"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 <[email protected]>--- conf/nonclangable.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)conf/nonclangable.conf +0
-0@@ -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 mips32conf/nonclangable.conf TOOLCHAIN_pn-libssp-nonshared = "gcc" · line 53
Quoted 10 lines
conf/nonclangable.conf +3
-4-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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
2020. 02. 27. 8:44 keltezéssel, Khem Raj írta:
Quoted 1 line
Can you send it via github pull request please
Sure.
Quoted 57 lines
Quoted 54 lines · Böszörményi Zoltán via Openembedded-core
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:
Quoted 33 lines
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.soand
"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 <[email protected]>--- conf/nonclangable.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)conf/nonclangable.conf +0
-0@@ -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 mips32conf/nonclangable.conf TOOLCHAIN_pn-libssp-nonshared = "gcc" · line 53
Quoted 10 lines
conf/nonclangable.conf +3
-4-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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
✗ patchtest: failure for conf/nonclangable.conf: Always build mesa with gcc
In reply to Böszörményi Zoltán== 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 ([email protected]) 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