[mpich-discuss] Build x86 version mpich2 on x86_64 Linux Boxfailed ...
Gus Correa
gus at ldeo.columbia.edu
Tue May 5 11:14:06 CDT 2009
Hi Seifer
Seifer Lin wrote:
> Hi:
>
> For mpich2-1.0.8p1, it's OK!
Then think about sticking to mpich2-1.0.8p1,
which is the right and wise thing to do,
and of rebuilding your programs with it.
I would suggest building with the ch3:nemesis communication channel,
instead of ch3:sock, which seems to be the default.
Some people reported problems with ch3:sock on current Linux kernels
and some types of Ethernet cards on this list and elsewhere.
However, I am not sure about nemesis in your case
just because you seem to prefer the smpd (--with-pm=smpd --with-pmi-=smpd).
I don't know if nemesis may conflict with smpd.
I never used smpd.
The MPICH2 developers may clarify this point.
If you rebuild with nemesis, follow Rajeev's suggestion also:
delete the directory tree, untar again, and start fresh,
to avoid old object files on your way.
I hope this helps.
Gus Correa
---------------------------------------------------------------------
Gustavo Correa
Lamont-Doherty Earth Observatory - Columbia University
Palisades, NY, 10964-8000 - USA
---------------------------------------------------------------------
>
> But for mpich2-1.0.3 (which I used), it's failed to build.
>
> regards,
> Seifer
>
> 2009/5/5 Rajeev Thakur <thakur at mcs.anl.gov <mailto:thakur at mcs.anl.gov>>
>
> Delete the whole directory and try with a fresh untar of the tar file.
>
> Rajeev
>
> ------------------------------------------------------------------------
> *From:* mpich-discuss-bounces at mcs.anl.gov
> <mailto:mpich-discuss-bounces at mcs.anl.gov>
> [mailto:mpich-discuss-bounces at mcs.anl.gov
> <mailto:mpich-discuss-bounces at mcs.anl.gov>] *On Behalf Of
> *Seifer Lin
> *Sent:* Monday, May 04, 2009 8:53 PM
> *To:* mpich-discuss at mcs.anl.gov <mailto:mpich-discuss at mcs.anl.gov>
> *Subject:* Re: [mpich-discuss] Build x86 version mpich2 on
> x86_64 Linux Boxfailed ...
>
> Hi Gus:
>
> Thank you for the advice.
> But it still doesn't work. :(
> regards,
> Seifer
> 2009/5/4 Gus Correa <gus at ldeo.columbia.edu
> <mailto:gus at ldeo.columbia.edu>>
>
> Deji Akingunola wrote:
>
> On Sun, May 3, 2009 at 11:48 PM, Seifer Lin
> <seiferlin at gmail.com <mailto:seiferlin at gmail.com>> wrote:
>
> Hi all:
>
> I use the following command to configure a x86
> version mpich2 on a x86_64
> Linux Box (Feroda Core 10 x86_64)
>
> ./configure CFLAGS="-m32 -fPIC" CXXFLAGS="-m32
> -fPIC" FFLAGS="-m32 -fPIC"
> LDFLAGS="-m32" --enable-sharedlibs=gcc --enable-mpe
> --with-pm=smpd
> --with-pmi-=smpd
>
> The configure step is OK.
>
> But when doing make, I get the following error...
>
> /usr/bin/ld: i386 architecture of input file
> `.tmp/ibsendf.o' is
> incompatible with i386:x86-64 output
> ...
>
>
> Does anyone know the way to build x86 version mpich2
> on x64 Linux Box ?
> Thanks.
>
> On Fedora 10 you have 2 options involving building rpms
> (I'm assuming
> you know how to build rpms). Grab the MPICH2 rpm spec
> file for Fedora
> 10 from
> http://cvs.fedoraproject.org/viewvc/rpms/mpich2/F-10/,
> modify
> the configure options to suit your needs, and then
> rebuild the source
> rpm.
> i. Install mock and then run; 'mock -r fedora-10-i386
> --resultdir=./my-results /path/to/your.mpich2.src.rpm'
> ii. Run 'setarch i386 rpmbuild --rebuild
> /path/to/your.mpich2.src.rpm'
> (Assuming you have all the right 32bit buildchain installed)
>
> Option (i) is more likely to get the job done for you
> easily.
>
> Cheers,
> Deji
>
> regards,
> Seifer Lin
>
>
>
> Hi Seifer
>
> Two guesses.
> Have you tried a "make distclean" before "configure"?
> You may have leftover x86_64 object files from previous builds
> hanging around.
> You may need also F90FLAGS="-m32 -fPIC".
>
> I hope this helps,
> Gus Correa
> ---------------------------------------------------------------------
> Gustavo Correa
> Lamont-Doherty Earth Observatory - Columbia University
> Palisades, NY, 10964-8000 - USA
> ---------------------------------------------------------------------
>
>
>
More information about the mpich-discuss
mailing list