<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=046515801-05052009><FONT face=Arial
color=#0000ff size=2>Delete the whole directory and try with a fresh untar of
the tar file.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=046515801-05052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=046515801-05052009><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>Seifer
Lin<BR><B>Sent:</B> Monday, May 04, 2009 8:53 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [mpich-discuss] Build x86
version mpich2 on x86_64 Linux Boxfailed ...<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi Gus:</DIV>
<DIV> </DIV>
<DIV>Thank you for the advice.</DIV>
<DIV>But it still doesn't work. :(<BR></DIV>
<DIV>regards,</DIV>
<DIV>Seifer<BR></DIV>
<DIV class=gmail_quote>2009/5/4 Gus Correa <SPAN dir=ltr><<A
href="mailto:gus@ldeo.columbia.edu">gus@ldeo.columbia.edu</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>
<DIV></DIV>
<DIV class=h5>Deji Akingunola wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On
Sun, May 3, 2009 at 11:48 PM, Seifer Lin <<A
href="mailto:seiferlin@gmail.com"
target=_blank>seiferlin@gmail.com</A>> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi
all:<BR><BR>I use the following command to configure a x86 version
mpich2 on a x86_64<BR>Linux Box (Feroda Core 10
x86_64)<BR><BR>./configure CFLAGS="-m32 -fPIC" CXXFLAGS="-m32 -fPIC"
FFLAGS="-m32 -fPIC"<BR>LDFLAGS="-m32" --enable-sharedlibs=gcc
--enable-mpe --with-pm=smpd<BR>--with-pmi-=smpd<BR><BR>The configure
step is OK.<BR><BR>But when doing make, I get the following
error...<BR><BR>/usr/bin/ld: i386 architecture of input file
`.tmp/ibsendf.o' is<BR>incompatible with i386:x86-64
output<BR>...<BR><BR><BR>Does anyone know the way to build x86 version
mpich2 on x64 Linux Box ?<BR>Thanks.<BR><BR></BLOCKQUOTE>On Fedora 10 you
have 2 options involving building rpms (I'm assuming<BR>you know how to
build rpms). Grab the MPICH2 rpm spec file for Fedora<BR>10 from <A
href="http://cvs.fedoraproject.org/viewvc/rpms/mpich2/F-10/"
target=_blank>http://cvs.fedoraproject.org/viewvc/rpms/mpich2/F-10/</A>,
modify<BR>the configure options to suit your needs, and then rebuild the
source<BR>rpm.<BR>i. Install mock and then run; 'mock -r
fedora-10-i386<BR>--resultdir=./my-results
/path/to/your.mpich2.src.rpm'<BR>ii. Run 'setarch i386 rpmbuild
--rebuild /path/to/your.mpich2.src.rpm'<BR>(Assuming you have all the
right 32bit buildchain installed)<BR><BR>Option (i) is more likely to get
the job done for you easily.<BR><BR>Cheers,<BR>Deji<BR><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">regards,<BR>Seifer
Lin<BR><BR><BR><BR></BLOCKQUOTE></BLOCKQUOTE></DIV></DIV>Hi
Seifer<BR><BR>Two guesses.<BR>Have you tried a "make distclean" before
"configure"?<BR>You may have leftover x86_64 object files from previous
builds<BR>hanging around.<BR>You may need also F90FLAGS="-m32
-fPIC".<BR><BR>I hope this helps,<BR><FONT color=#888888>Gus
Correa<BR>---------------------------------------------------------------------<BR>Gustavo
Correa<BR>Lamont-Doherty Earth Observatory - Columbia
University<BR>Palisades, NY, 10964-8000 -
USA<BR>---------------------------------------------------------------------<BR></FONT></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>