Skip to contentSkip to conversation

gperftools: add the setting of COMPATIBLE_HOST back

PATCH In review [email protected] 2 participants 2 messages Apr 10, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gperftools: add the setting of COMPATIBLE_HOST back

From: Chen Qi <[email protected]>

This setting was deleted, but on mips and glibc, we still have this problem. So add this setting back, but limit it to glibc.

---
 meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb +4 -0
index ecac6c5cc..1d562adda 100644
@@ -19,6 +19,10 @@ inherit autotools
 
 S = "${WORKDIR}/git"
 
+# On mips, we have the following error.
+#   do_page_fault(): sending SIGSEGV to ls for invalid read access from 00000008
+#   Segmentation fault (core dumped)
+COMPATIBLE_HOST_libc-glibc = "(i.86|x86_64|powerpc|powerpc64|arm|aarch64).*-linux*"
 # Disable thumb1
 # {standard input}: Assembler messages:
 # {standard input}:434: Error: lo register required -- `ldr pc,[sp]'
Signature · 1 line
2.11.0
#1 lore raw
Quoted 15 lines · On 4/9/18 7:46 PM, [email protected] wrote:

From: Chen Qi <[email protected]>

This setting was deleted, but on mips and glibc, we still have this problem. So add this setting back, but limit it to glibc.

---
 meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb +0 -0
index ecac6c5cc..1d562adda 100644

meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb inherit autotools · line 25

Quoted 7 lines
meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb +4 -0
@@ -19,6 +19,10 @@ inherit autotools
 
 S = "${WORKDIR}/git"
 
+# On mips, we have the following error.
+#   do_page_fault(): sending SIGSEGV to ls for invalid read access from 00000008
+#   Segmentation fault (core dumped)
+COMPATIBLE_HOST_libc-glibc = "(i.86|x86_64|powerpc|powerpc64|arm|aarch64).*-linux*"

perhaps setting compatible host to null when its mips is better option since everything else is there in this regexp

COMPATIBLE_HOST_mipsarch_libc-glibc = "null"

Quoted 4 lines
meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb +0 -0
 # Disable thumb1
 # {standard input}: Assembler messages:
 # {standard input}:434: Error: lo register required -- `ldr pc,[sp]'