<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">when I add -lpthread gives the following error<div><br></div><div><div>checking whether the C compiler works... no</div><div>configure: error: C compiler cannot create executables<br></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 10, 2015 at 4:37 PM, <span dir="ltr"><<a href="mailto:Florian.Willich@dlr.de" target="_blank">Florian.Willich@dlr.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<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>
<div style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>Von:</b> Doha Ehab [<a href="mailto:dohaehab@gmail.com" target="_blank">dohaehab@gmail.com</a>]<br>
<b>Gesendet:</b> Donnerstag, 10. Dezember 2015 15:29<br>
<b>An:</b> <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
<b>Betreff:</b> [mpich-discuss] cross comiling MPICH<br>
</font><br>
</div><div><div class="h5">
<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></div>
</div>
</div>
<br>_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div>