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

chong tan chong_guan_tan at yahoo.com
Wed Aug 16 19:21:58 CDT 2006


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