[mpich-discuss] Build x86 version mpich2 on x86_64 Linux Boxfailed ...
Rajeev Thakur
thakur at mcs.anl.gov
Mon May 4 20:59:15 CDT 2009
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] On Behalf Of Seifer Lin
Sent: Monday, May 04, 2009 8:53 PM
To: 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>
Deji Akingunola wrote:
On Sun, May 3, 2009 at 11:48 PM, Seifer Lin <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
---------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090504/ae5cabed/attachment.htm>
More information about the mpich-discuss
mailing list