[mpich2-dev] want to cross compile mpich2
Anthony Chan
chan at mcs.anl.gov
Mon Oct 18 14:56:57 CDT 2010
I've created a ticket for this issue.
https://trac.mcs.anl.gov/projects/mpich2/ticket/1121
A.Chan
----- chan at mcs.anl.gov wrote:
> This is a cross-compile bug in mpich2 configure.
>
> The temporary workaround is look upi MPI_OFFSET_TYPE in
> <mpich2_build_dir>/src/mpi/romio/localdefs, and define
> MPI_SIZEOF_OFFSET=sizeof($MPI_OFFSET_TYPE) as part of
> configure command. Setting MPI_SIZEOF_OFFSET in configure
> will avoid the runtime test and so configure should run to
> completion.
>
> Could you file a bug report at
> https://trac.mcs.anl.gov/projects/mpich2/newticket ?
>
> A.Chan
>
> ----- "郭沐Sn4+" <maxgreg13625 at gmail.com> wrote:
>
> > Dear all
> >
> >
> >
> > I downloaded a tool chain from this website
> >
> >
> http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite
> >
> >
> >
> > I have try the follow steps to configure mpich2
> >
> >
> >
> > $export
> > CC=/home/sn/multiARM/arm-2010q1/bin/arm-none-linux-gnueabi-gcc
> >
> > $export
> AR=/home/sn/multiARM/arm-2010q1/bin/arm-none-linux-gnueabi-ar
> >
> > $export
> >
> RANLIB=/home/sn/multiARM/arm-2010q1/bin/arm-none-linux-gnueabi-ranlib
> >
> > $export
> AS=/home/sn/multiARM/arm-2010q1/bin/arm-none-linux-gnueabi-as
> >
> > $export
> LD=/home/sn/multiARM/arm-2010q1/bin/arm-none-linux-gnueabi-ld
> >
> > $export
> NM=/home/sn/multiARM/arm-2010q1/bin/arm-none-linux-gnueabi-nm
> >
> >
> >
> > $/home/sn/mpich2/libraries/mpich2-1.2.1p1/configure --disable-f77
> > --disable-f90 --disable-cxx --disable-sharedlibs
> > --prefix=/home/sn/mpich2/mpich2-install --build=i686-pc-linux-gnu
> > --host=arm-none-linux-gnueabi 2>&1 | tee c.txt
> >
> >
> >
> > However the terminal will generate this error message as follow
> >
> >
> >
> > configure: WARNING: Could not define Fortran MPI datatypes for C
> >
> > checking the sizeof MPI_Offset…
> > /home/sn/mpich2/libraries/mpich2-1.2.1p1/configure: line 41544:
> > ./conftest:
> > cannot execute binary file
> >
> > configure: WARNING: Unable to run the program to determine the size
> > of
> > MPI_Offset
> >
> > unknown
> >
> > 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 some in configure.
> >
> >
> >
> > Is there any steps I tried was wrong!?
> >
> > I don’t why the terminal generate this message.
> >
> >
> >
> > Thanks a lot
> >
> > Best Regards
More information about the mpich2-dev
mailing list