[mpich-discuss] Build x86 version mpich2 on x86_64 Linux Box failed ...
Deji Akingunola
dakingun at gmail.com
Mon May 4 04:45:18 CDT 2009
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
>
>
>
More information about the mpich-discuss
mailing list