[MPICH] libmpich.a incompatible

Garrick Staples garrick at usc.edu
Thu Oct 11 16:18:18 CDT 2007


On Thu, Oct 11, 2007 at 02:00:14PM -0400, Venkattraman A alleged:
> Hi,
> 
>     I was trying to compile the example programmes(the f90 file pi3f90.f90)
> in mpich2-1.0.6 and I got an error message
> 
> ld: skipping incompatible /home/xguo/Desktop/mpich2-1.0.6/lib/libmpich.a
> when searching for -lmpich
> ld: skipping incompatible /usr/local/lib/libmpich.a when searching for
> -lmpich
> ld: cannot find -lmpich
> However the corresponding example in cxx works fine. I got the same problem
> with the earlier versions also(2-1.0.5 and 2-1.0.4). I work with Mandriva
> Linux and the processor is a 64 bit AMD.
> 
> Any suggestions?

You've got 32bit versus 64bit conflicts.  You are either building 64bit objects
files and ld is finding a 32bit libmpich.a, or vice versa.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20071011/bf2aa715/attachment.pgp>


More information about the mpich-discuss mailing list