[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-devel
Subject:    [oe] [meta-python][PATCH] python3-matplotlib: Disable LTO for clang/riscv
From:       "Khem Raj" <raj.khem () gmail ! com>
Date:       2020-11-30 2:27:55
Message-ID: 20201130022755.3534198-1-raj.khem () gmail ! com
[Download RAW message or body]

Content-Transfer-Encoding: 8bit

LTO fails to link on RV32/RV64

> Hard-float 'd' ABI can't be used for a target that doesn't support the D \
> instruction set extension (
ignoring target-abi)
> riscv64-yoe-linux-ld.lld: error: lto.tmp: cannot link object files with different \
> floating-point ABI

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../recipes-devtools/python/python3-matplotlib_3.3.2.bb        | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-matplotlib_3.3.2.bb \
b/meta-python/recipes-devtools/python/python3-matplotlib_3.3.2.bb index \
                a2e7074d78..3cfa3f31f4 100644
--- a/meta-python/recipes-devtools/python/python3-matplotlib_3.3.2.bb
+++ b/meta-python/recipes-devtools/python/python3-matplotlib_3.3.2.bb
@@ -38,9 +38,12 @@ RDEPENDS_${PN} = "\
     python3-pytz \
 "
 
+ENABLELTO_toolchain-clang_riscv64 = "echo enable_lto = False >> ${S}/setup.cfg"
+ENABLELTO_toolchain-clang_riscv32 = "echo enable_lto = False >> ${S}/setup.cfg"
 do_compile_prepend() {
     echo [libs] > ${S}/setup.cfg
     echo system_freetype = true >> ${S}/setup.cfg
+    ${ENABLELTO}
 }
 
 BBCLASSEXTEND = "native"
-- 
2.29.2



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#88172): https://lists.openembedded.org/g/openembedded-devel/message/88172
Mute This Topic: https://lists.openembedded.org/mt/78599875/4455120
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [openembedded-devel@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic