And when I set the --with-device=ch3:shm, there comes the new configure error:<br><br>checking for x86 mfence instruction using __asm__... configure: error: in `/home/junligu/shared/mpich2-1.2/src/mpid/ch3/channels/shm':<br>
configure: error: cannot run test program while cross compiling<br>See `config.log' for more details.<br>configure: error: ./configure failed for channels/shm<br>configure: error: Configure of src/mpid/ch3 failed!<br>
<br><br><div class="gmail_quote">2009/11/11 junli gu <span dir="ltr"><<a href="mailto:gujunli@gmail.com">gujunli@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone!<br><br> 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:<br>
<br> I read the installation file of MPICH for the cross compiled information. I write a build file like this:<br><br> "export DRIVER_PATH=/opt/crosstool/gcc-3.4.3-glibc-2.3.5/alpha-unknown-linux-gnu/alpha-unknown-linux-gnu/<br>
export GCC=${DRIVER_PATH}/bin/alpha-gcc<br> export CC=${DRIVER_PATH}/bin/alpha-gcc<br> export CXX=${DRIVER_PATH}/bin/g++<br> export AR=${DRIVER_PATH}/bin/ar<br> export LD=${DRIVER_PATH}/bin/ld<br> ./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 "<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. 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"><font color="#888888"><br>-- <br>************************************************<br>Gu Junli--¹È¿¡Àö<br>PHD Candidate of Tsinghua University<br>Beijing 100084,China<br>Tel: 86-10-62795139<br>
<br>************************************************<br>
</font></blockquote></div><br><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>