[MPICH] mpich2 1.0.3, 32 bits build problem on Redhat ES4, amd64

Rajeev Thakur thakur at mcs.anl.gov
Wed Aug 16 21:21:06 CDT 2006


With the --enable-fast build, do the tests in the MPICH2 test directory
compile?

Rajeev


> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of chong tan
> Sent: Wednesday, August 16, 2006 7:22 PM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] mpich2 1.0.3, 32 bits build problem on 
> Redhat ES4, amd64
> 
> using gcc 4.0.2.  The 64bits build works fine.
> 
> I am using 2 csh files to do the build, first is a
> debug build, which works OK :
> 
> -----
> #!/bin/csh -f
> setenv CFLAGS "-g -m32"
> setenv CC gcc
> setenv CXX g++
> setenv CXXFLAGS "-g -m32"
> ./configure -prefix=/usr/local/mpich --enable-cxx
> --disable-f77 --disable-f90
> make
> make install
> ------
> 
> The second, which is the optimized , with no checking:
> ---------
> #!/bin/csh -f
> setenv CFLAGS "-O2 -m32"
> setenv CC gcc
> setenv CXX g++
> setenv CXXFLAGS "-O2 -m32"
> ./configure -prefix=/usr/local/mpich_opt --enable-fast
> --enable-cxx --disable-f77 --disabl
> e-f90
> make
> make install
> --------
> 
> when the library is, libmpichcxx.a, is linked with an
> 32 bit application (co,piled -m32), the one built with
> '--enable-fast' causes :
> 
> -/usr/bin/ld: skipping incompatible
> /usr/local/mpich_opt/lib/libmpichcxx.a when searching
> f
> or -lmpichcxx
> /usr/bin/ld: cannot find -lmpichcxx
> collect2: ld returned 1 exit status
> 
> appearantly the library is built 64bit even with
> "-m32".  
> the difference between the 2 scripts are '-g' and
> '-O2', and this '--enable-fast'.  
> 
> Any suggestion ?
> 
> thanks
> 
> tan
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 




More information about the mpich-discuss mailing list