[mpich-discuss] cross comiling MPICH

Doha Ehab dohaehab at gmail.com
Thu Dec 10 08:42:29 CST 2015


when I add -lpthread gives the following error

checking whether the C compiler works... no
configure: error: C compiler cannot create executables


On Thu, Dec 10, 2015 at 4:37 PM, <Florian.Willich at dlr.de> wrote:

> Does it work to just add the pthread lib to your libs?:
>
> ./configure --host=arm-linux-androideabi
>  --prefix=/Crosscompile2/jni/mpich/ LIBS="-lc -lgcc -lpthread"
> --disable-shared --disable-fortran --disable-cxx
>
> ------------------------------
> *Von:* Doha Ehab [dohaehab at gmail.com]
> *Gesendet:* Donnerstag, 10. Dezember 2015 15:29
> *An:* discuss at mpich.org
> *Betreff:* [mpich-discuss] cross comiling MPICH
>
> Hello ,
> I'm trying to use Android toolchain to cross compile mpi using the
> following commands:
>
> export
> PATH="$NDK_ROOT/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/:$PATH"
> export SYS_ROOT="$NDK_ROOT/platforms/android-8/arch-arm/"
> export CC="arm-linux-androideabi-gcc --sysroot=$SYS_ROOT"
> export LD="arm-linux-androideabi-ld"
> export AR="arm-linux-androideabi-ar"
>
>
> ./configure --host=arm-linux-androideabi
>  --prefix=/Crosscompile2/jni/mpich/ LIBS="-lc -lgcc " --disable-shared
> --disable-fortran --disable-cxx
>
> but I got the following error
>
> checking for pthread_key_create in -lpthread... no
> checking checkpointing library... configure: error: pthreads is required
> for checkpointing, but was not found
> configure: error: src/pm/hydra configure failed
>
> I also have attached the config.log but I don't know what is the problem.
>
> Thanks
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20151210/21a1fb65/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list