Skip to contentSkip to conversation

Build fixed for riscv64

PATCH New Khem Raj 1 participant 4 messages Mar 9, 2018

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover Build fixed for riscv64

These packages found failing on building extended images on riscv64

The following changes since commit e4da78229f0bd67fd34928eafe48dbdc9e8da050:

e2fsprogs: Add comment on why touch is needed (2018-03-09 11:09:39 -0800)

are available in the Git repository at:

git://git.openembedded.org/openembedded-core-contrib kraj/riscv64-fixes
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=kraj/riscv64-fixes

Khem Raj (3):
packagegroup-core-sdk: Disable SANITIZERS for riscv64
liburcu: Explicitly add pthread options to cflags
recipes: Disable lttng for riscv

 meta/recipes-core/packagegroups/packagegroup-core-sdk.bb           | 1 +
 meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb | 2 ++
 meta/recipes-devtools/gdb/gdb-common.inc                           | 1 +
 meta/recipes-kernel/lttng/lttng-tools_2.10.2.bb                    | 1 +
 meta/recipes-support/liburcu/liburcu_0.10.1.bb                     | 2 ++
 5 files changed, 7 insertions(+)
Signature · 1 line
2.16.2
author
#1 lore raw

PATCH 1/3 packagegroup-core-sdk: Disable SANITIZERS for riscv64

Dont build yet

---
 meta/recipes-core/packagegroups/packagegroup-core-sdk.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/packagegroups/packagegroup-core-sdk.bb +1 -0
index 393f0d3d13..a137e7748f 100644
@@ -33,6 +33,7 @@ SANITIZERS_mipsarch = ""
 SANITIZERS_nios2 = ""
 SANITIZERS_powerpc64 = ""
 SANITIZERS_sparc = ""
+SANITIZERS_riscv64 = ""
 SANITIZERS_libc-musl = ""
 
 RRECOMMENDS_packagegroup-core-sdk = "\
Signature · 1 line
2.16.2
author
#2 lore raw

PATCH 2/3 liburcu: Explicitly add pthread options to cflags

In reply to Khem Raj

Some architectures e.g. riscv gcc does not add -D_REENTRANT when enabling pthreads. Help it here by adding these options while gcc gets fixed

---
 meta/recipes-support/liburcu/liburcu_0.10.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-support/liburcu/liburcu_0.10.1.bb +2 -0
index 0c8cd3571a..459c04a7a1 100644
@@ -15,3 +15,5 @@ SRC_URI[sha256sum] = "9c09220be4435dc27fcd22d291707b94b97f159e0c442fbcd60c168f8f
 
 S = "${WORKDIR}/userspace-rcu-${PV}"
 inherit autotools
+
+CPPFLAGS_append_riscv64  = " -pthread -D_REENTRANT"
Signature · 1 line
2.16.2
author
#3 lore raw

PATCH 3/3 recipes: Disable lttng for riscv

In reply to Khem Raj
---
 meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb | 2 ++
 meta/recipes-devtools/gdb/gdb-common.inc                           | 1 +
 meta/recipes-kernel/lttng/lttng-tools_2.10.2.bb                    | 1 +
 3 files changed, 4 insertions(+)
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +2 -0
index e3814a44bc..554f529889 100644
@@ -40,9 +40,11 @@ SYSTEMTAP_aarch64 = ""
 # lttng-ust uses sched_getcpu() which is not there on for some platforms.
 LTTNGUST = "lttng-ust"
 LTTNGUST_libc-musl = ""
+LTTNGUST_riscv64 = ""
 
 LTTNGTOOLS = "lttng-tools"
 LTTNGTOOLS_libc-musl = ""
+LTTNGTOOLS_riscv64 = ""
 
 LTTNGMODULES = "lttng-modules"
 
meta/recipes-devtools/gdb/gdb-common.inc +1 -0
index 9164a2bba4..039577b8e2 100644
@@ -5,6 +5,7 @@ DEPENDS = "expat zlib ncurses virtual/libiconv ${LTTNGUST}"
 
 LTTNGUST = "lttng-ust"
 LTTNGUST_aarch64 = ""
+LTTNGUST_riscv64 = ""
 LTTNGUST_mipsarch = ""
 LTTNGUST_sh4 = ""
 LTTNGUST_libc-musl = ""
meta/recipes-kernel/lttng/lttng-tools_2.10.2.bb +1 -0
index e8d041d1c6..fd5abbb113 100644
@@ -25,6 +25,7 @@ PACKAGECONFIG[lttng-ust] = "--with-lttng-ust, --without-lttng-ust, lttng-ust"
 PACKAGECONFIG[kmod] = "--with-kmod, --without-kmod, kmod"
 PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native"
 PACKAGECONFIG_remove_libc-musl = "lttng-ust"
+PACKAGECONFIG_remove_riscv64 = "lttng-ust"
 
 SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \
            file://x32.patch \
Signature · 1 line
2.16.2