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

chan at mcs.anl.gov chan at mcs.anl.gov
Wed Nov 11 13:45:35 CST 2009


----- "junli gu" <gujunli at gmail.com> wrote:


>   "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  "
>

It seems you might have specified --host incorrectly, replace
your --host and --target options by the followings:

--build=i386-unknown-linux-gnu --host=alpha-unknown-linux-gnu

(see 
http://www.gnu.org/software/autoconf/manual/autoconf.html#Specifying-Target-Triplets)

Be sure to do a "make distclean" before reconfiguring mpich2.
If the problem persists, send us the configure and make outputs
as seen on your terminal (It is possible that cross-compile support
is still buggy)

BTW, your stderr message should be piped to the configure output
file as it will help us to identify any potential problem/bug faster.
If you are not familiar with piping stderr and stdout to 1 file,
see the mpich2's README or installer's guide.  

A.Chan


More information about the mpich-discuss mailing list