<!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.16788" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=953181305-02012009><FONT face=Arial 
color=#0000ff size=2>You need to build the MPICH2 library separately for 32-bit 
and 64-bit and install it in separate locations (via the --prefix option to 
configure) so that you can invoke the right mpicxx. Before running configure, 
set the environment variables CFLAGS, CXXFLAGS, FFLAGS, and F90FLAGS to pass the 
requisite compiler options.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=953181305-02012009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=953181305-02012009><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>Kevin Van 
  Workum<BR><B>Sent:</B> Wednesday, December 31, 2008 11:01 AM<BR><B>To:</B> 
  mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss] compiling 32-bit 
  and 64-bit mpich2 applications<BR></FONT><BR></DIV>
  <DIV></DIV>Dear All,<BR><BR>How can I pass the -m32 (gcc) option to mpicxx to 
  build 32-bit applications on my 64-bit machine? I suppose I could have to 
  separate installations of mpich2, but I'd like to be able to use the same 
  installation. This is the error I get now if I try to use -m32:<BR><BR>$ 
  mpicxx -m32 hello.cpp<BR>/usr/bin/ld: skipping incompatible 
  /usr/local/mpich2-1.0.5p4-ssm/lib/libmpichcxx.a when searching for 
  -lmpichcxx<BR>/usr/bin/ld: cannot find -lmpichcxx<BR>collect2: ld returned 1 
  exit status<BR><BR>Thanks,<BR><BR>Kevin<BR 
clear=all><BR></BLOCKQUOTE></BODY></HTML>