<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Does it work to just add the pthread lib to your libs?:<br>
<br>
./configure --host=arm-linux-androideabi --prefix=/Crosscompile2/jni/mpich/ LIBS="-lc -lgcc -lpthread" --disable-shared --disable-fortran --disable-cxx
<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF338012"><font face="Tahoma" size="2" color="#000000"><b>Von:</b> Doha Ehab [dohaehab@gmail.com]<br>
<b>Gesendet:</b> Donnerstag, 10. Dezember 2015 15:29<br>
<b>An:</b> discuss@mpich.org<br>
<b>Betreff:</b> [mpich-discuss] cross comiling MPICH<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hello ,
<div>I'm trying to use Android toolchain to cross compile mpi using the following commands:</div>
<div><br>
</div>
<div>
<div>export PATH="$NDK_ROOT/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/:$PATH"</div>
<div>export SYS_ROOT="$NDK_ROOT/platforms/android-8/arch-arm/"</div>
<div>export CC="arm-linux-androideabi-gcc --sysroot=$SYS_ROOT"</div>
<div>export LD="arm-linux-androideabi-ld"</div>
<div>export AR="arm-linux-androideabi-ar"</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>./configure --host=arm-linux-androideabi --prefix=/Crosscompile2/jni/mpich/ LIBS="-lc -lgcc " --disable-shared --disable-fortran --disable-cxx </div>
</div>
<div><br>
</div>
<div>but I got the following error</div>
<div><br>
</div>
<div>
<div>checking for pthread_key_create in -lpthread... no</div>
<div>checking checkpointing library... configure: error: pthreads is required for checkpointing, but was not found</div>
<div>configure: error: src/pm/hydra configure failed</div>
</div>
<div><br>
</div>
<div>I also have attached the config.log but I don't know what is the problem.</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>