Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] valgrind: Do not use outline-atomics on aarch64
@ 2020-05-14 17:30 Khem Raj
  2020-05-14 17:30 ` [PATCH 2/2] gcc: Drop reverting __getauxval patch Khem Raj
  2020-05-14 18:02 ` ✗ patchtest: failure for "valgrind: Do not use outline-a..." and 1 more Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Khem Raj @ 2020-05-14 17:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

This avoids the __getauxval undefined reference error seen with gcc10 on
doing static linking with -nodefaultlibs, which is uncommon usecase
anyway, disabling outline-atomics is not a huge deal for OE in terms of
performance as we already use -mcpu which is tuned enough to the SOC the
code is being generated for

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/valgrind/valgrind_3.15.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/valgrind/valgrind_3.15.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.15.0.bb
index 7954437a1a..25837e4b44 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.15.0.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.15.0.bb
@@ -74,6 +74,8 @@ EXTRA_OECONF += "${@['--enable-only32bit','--enable-only64bit'][d.getVar('SITEIN
 # valgrind checks host_cpu "armv7*)", so we need to over-ride the autotools.bbclass default --host option
 EXTRA_OECONF_append_arm = " --host=armv7${HOST_VENDOR}-${HOST_OS}"
 
+CFLAGS_append_aarch64 = " -mno-outline-atomics "
+
 EXTRA_OEMAKE = "-w"
 
 CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl'"
-- 
2.26.2


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

end of thread, other threads:[~2020-05-14 18:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-14 17:30 [PATCH 1/2] valgrind: Do not use outline-atomics on aarch64 Khem Raj
2020-05-14 17:30 ` [PATCH 2/2] gcc: Drop reverting __getauxval patch Khem Raj
2020-05-14 18:02 ` ✗ patchtest: failure for "valgrind: Do not use outline-a..." and 1 more Patchwork

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