Skip to contentSkip to conversation

valgrind: do not use host mpicc

PATCH New Jérôme Pouiller 2 participants 2 messages Nov 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 valgrind: do not use host mpicc

Valgrind may use 'mpicc' (from openmi project) to compile libmpiwrap-*.so. Without any option, it will detect and use 'mpicc' from host and generate libmpiwrap-*.so for host:

  $ file target/usr/lib/valgrind/libmpiwrap-arm-linux.so
  target/usr/lib/valgrind/libmpiwrap-arm-linux.so: ELF 64-bit LSB  shared object,
  x86-64, version 1 (SYSV), dynamically linked, not stripped

We simply disable openmi support for valgrind.

---
 package/valgrind/valgrind.mk | 2 ++
 1 file changed, 2 insertions(+)
package/valgrind/valgrind.mk +2 -0
index 09f7116..c7ac2a1 100644
@@ -15,6 +15,8 @@ VALGRIND_INSTALL_STAGING = YES
 # patch 0004-Fixes-for-musl-libc.patch touching configure.ac
 VALGRIND_AUTORECONF = YES
 
+VALGRIND_CONF_OPTS += --without-mpicc
+
 # When Valgrind detects a 32-bit MIPS architecture, it forcibly adds
 # -march=mips32 to CFLAGS; when it detects a 64-bit MIPS architecture,
 # it forcibly adds -march=mips64. This causes Valgrind to be built
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 valgrind: do not use host mpicc

Hello,

package/valgrind/valgrind.mk VALGRIND_INSTALL_STAGING = YES · line 18

Quoted 9 lines · J?r?me Pouiller
package/valgrind/valgrind.mk +1 -0
index 09f7116..c7ac2a1 100644
@@ -15,6 +15,8 @@ VALGRIND_INSTALL_STAGING = YES
 # patch 0004-Fixes-for-musl-libc.patch touching configure.ac
 VALGRIND_AUTORECONF = YES
 
+VALGRIND_CONF_OPTS += --without-mpicc

Not sure why you're adding another CONF_OPTS assignment instead of re-using the existing one, so I've refactored that a bit and applied.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com