Hi everyone!<br><br>&nbsp;&nbsp; I am doing some research work on running MPI on simulator. The simulator requires that the binaries of mpi program must be alpha machine&#39;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:<br>
<br>&nbsp;I read the installation file of MPICH for the cross compiled information. I write a build file like this:<br><br>&nbsp; &quot;export DRIVER_PATH=/opt/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/alpha-unknown-linux-gnu/<br>
&nbsp; export GCC=${DRIVER_PATH}/bin/alpha-gcc<br>&nbsp; export CC=${DRIVER_PATH}/bin/alpha-gcc<br>&nbsp; export CXX=${DRIVER_PATH}/bin/g++<br>&nbsp; export AR=${DRIVER_PATH}/bin/ar<br>&nbsp; export LD=${DRIVER_PATH}/bin/ld<br>&nbsp; ./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&nbsp; &quot;<br>
<br>DRIVER_PATH is the path of cross compiler.<br><br>And there is configuaratuin error:<br>./configure: line 40902: ./conftest: cannot execute binary file<br>configure: WARNING: Unable to run the program to determine the size of MPI_Offset<br>
configure: error: Unable to convert MPI_SIZEOF_OFFSET to a hex string.&nbsp; This is either because we are building on a very strange platform or there is a bug somewhere in configure.<br><br>I have the output of cinfugre in tee.txt. The other file is config.log.<br>
<br>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.<br><br>Does the configure of MPICH2-1.2 mot support cross compile well or I missed something?<br>
<br>Please help!<br clear="all"><br>-- <br>************************************************<br>Gu Junli--¹È¿¡Àö<br>PHD Candidate of Tsinghua University<br>Beijing 100084,China<br>Tel: 86-10-62795139<br><br>************************************************<br>