Re: [mpich-discuss] cross comiling MPICH
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, <[email protected]> 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 [[email protected]] *Gesendet:* Donnerstag, 10. Dezember 2015 15:29 *An:* [email protected] *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 [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
participants (1)
-
Doha Ehab