[mpich-discuss] Problems with configuring MPICH with cross compiler

junli gu gujunli at gmail.com
Wed Nov 11 12:50:50 CST 2009

And when I set the --with-device=ch3:shm, there comes the new configure

checking for x86 mfence instruction using __asm__... configure: error: in
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for channels/shm
configure: error: Configure of src/mpid/ch3 failed!

2009/11/11 junli gu <gujunli at gmail.com>

> Hi everyone!
>    I am doing some research work on running MPI on simulator. The simulator
> requires that the binaries of mpi program must be alpha machine's. So I am
> trying to configure MPICH with a cross compiler called alpha-gcc. THe cross
> compiler works well. But it seems that the MPICH2-1.2 does not support cross
> compiling set up:
>  I read the installation file of MPICH for the cross compiled information.
> I write a build file like this:
>   "export
> DRIVER_PATH=/opt/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/alpha-unknown-linux-gnu/
>   export GCC=${DRIVER_PATH}/bin/alpha-gcc
>   export CC=${DRIVER_PATH}/bin/alpha-gcc
>   export CXX=${DRIVER_PATH}/bin/g++
>   export AR=${DRIVER_PATH}/bin/ar
>   export LD=${DRIVER_PATH}/bin/ld
>   ./configure --prefix=/home/junligu/shared/MPICH_alpha2 --enable-cxx
> --disable-f77 --with-device=ch3:nemesis --with-atomic-primitives=no
> --target=alpha-unknown-linux-gnu --host=i386-unknown-linux-gnu  "
> DRIVER_PATH is the path of cross compiler.
> And there is configuaratuin error:
> ./configure: line 40902: ./conftest: cannot execute binary file
> configure: WARNING: Unable to run the program to determine the size of
> MPI_Offset
> configure: error: Unable to convert MPI_SIZEOF_OFFSET to a hex string.
> This is either because we are building on a very strange platform or there
> is a bug somewhere in configure.
> I have the output of cinfugre in tee.txt. The other file is config.log.
> It seems whether the communication channel is nemesis or shm, there will be
> configure error. It keeps on checking the X86 system instead of the target
> alpha system.
> Does the configure of MPICH2-1.2 mot support cross compile well or I missed
> something?
> Please help!
> --
> ************************************************
> Gu Junli--谷俊丽
> PHD Candidate of Tsinghua University
> Beijing 100084,China
> Tel: 86-10-62795139
> ************************************************

Gu Junli--谷俊丽
PHD Candidate of Tsinghua University
Beijing 100084,China
Tel: 86-10-62795139

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20091111/f6a78606/attachment.htm>

More information about the mpich-discuss mailing list