problems when i execute make in mpich2...

Hi, I have a cluster with 8 intel xeon processor to 3.16 Ghz, with red hat enterpriser linux v. 5 cluster and pgi 8.0(32 and 64 bits but i use 32) and the cluster is a x86-64. The problem is that i want to run mm5 in 4 processor, first i download mpich2 and install using pgi, i write this:

CFLAGS="-fast " CXXFLAGS="-fast" FFLAGS="-fast " F90FLAGS="-fast " LDFLAGS="-fast " OPTFLAGS="-fast " CC=“pgcc” CXX=“pgCC” F90=“pgf90” FC=“pgf77” CPP=“pgCC -E” ./configure --prefix=/usr/local/mpich --disable-f90

after this a write:

make 2>&1 | tee make.log

but in make.log i have this error:

/home/jose/mpich2/mpich2-1.0.8/bin/mpicc -I… -I…/…/… -I…/include -I…/include -I/home/jose/mpich2/mpich2-1.0.8/src/mpe2/include -I…/…/…/include -O2 -c clog_buffer.c
clog_buffer.c(209): error: identifier “O_LARGEFILE” is undefined
buffer->local_fd = OPEN( buffer->local_filename,
^

compilation aborted for clog_buffer.c (code 2)
make[5]: *** [clog_buffer.po] Error 2
make[4]: *** [default] Error 2
make[3]: *** [build_lib_bin] Error 2

**** Making src/wrappers …

Questions…

1.- This is correct?

CFLAGS="-fast " CXXFLAGS="-fast" FFLAGS="-fast " F90FLAGS="-fast " LDFLAGS="-fast " OPTFLAGS="-fast " CC=“pgcc” CXX=“pgCC” F90=“pgf90” FC=“pgf77” CPP=“pgCC -E” ./configure --prefix=/usr/local/mpich --disable-f90

  1. have idea to resolve this problem…

clog_buffer.c(209): error: identifier “O_LARGEFILE” is undefined
buffer->local_fd = OPEN( buffer->local_filename,
^

Thak´s for all, and im sorry for my english.

Hi inda,


We have help page on building MPICH-2 found at: http://www.pgroup.com/resources/mpich/mpich2_104_pgi71.htm. It’s for a slightly older compiler version but should still work.

I think all you need to do is either add “env” in front of your configure command or set all the variables in your environment before invoking configure. Example:

env CFLAGS="-O2 " CXXFLAGS="-O2" FFLAGS="-O2 " F90FLAGS="-O2 " LDFLAGS="-O2 " OPTFLAGS="-O2 "  CC="pgcc" CXX="pgCC"  F90="pgf90"  FC="pgf77"  CPP="pgCC -E" ./configure --prefix=/path/to/install/dir

This should also take care of the second issue.

Hope this helps,
Mat

Thank you mkcolg, try to run with your instruction:

env CFLAGS="-O2 " CXXFLAGS="-O2" FFLAGS="-O2 " F90FLAGS="-O2 " LDFLAGS="-O2 " OPTFLAGS="-O2 "  CC="pgcc" CXX="pgCC"  F90="pgf90"  FC="pgf77"  CPP="pgCC -E" ./configure --prefix=/path/to/install/dir

but the Error is the same, do you have another idea?, I’m gonna try to run with 64 bits, but i dont know that is correct.

When i use pgi x86-64 i heve this error:

../bin/mpicc -I../src/include -I../src/include -c cpi.c
../bin/mpicc   -o cpi cpi.o  -lm
ld: skipping incompatible /home/jose/mpich2/mpich2-1.0.8/lib/libmpich.a when searching for -lmpich
ld: cannot find -lmpich
make[1]: *** [cpi] Error 1
make[1]: se sale del directorio `/home/jose/mpich2/mpich2-1.0.8/examples'
make: *** [all-redirect] Error 2

do you have idea, what use x86 or x86-64…Thank you for all

Hi inda,

It appears that you were able to successfully build MPICH. The current error is because your library is built in 32-bits which can not be linked with a 64-bit object. Try compiling with a the 32-bit compilers or re-build using the 64-bit compilers.

  • Mat

Thank for all mkcolg, re-build using the 32-bits compilers and result it.

I´m going to build my mpp.

Thank you so much