problems compiling NAMD with mpicxx from mvapich2

From: Jose Borreguero (borreguero_at_gmail.com)
Date: Sat Jan 24 2015 - 11:49:02 CST

Dear NAMD gurus,

This is my problem when compiling NAMD on a Linux cluster:

module load mvapich2-x86_64
...
cd charm-6.4.0/
env MPICXX=mpicxx ./build charm++ mpi-linux-amd64 --with-production
..

checking "C++ compiler as"... "mpicxx -m64 -fPIC -DCMK_GFORTRAN
-optimize -production "
checking "whether C++ compiler works"... "ok"
checking "C++ linker as"... "mpicxx -m64 -fPIC -DCMK_GFORTRAN "
checking "whether linker works"... "no"

*Cannot link C++ programs with mpicxx -m64 -fPIC -DCMK_GFORTRAN *
The final lines of charm-6.4.0/mpi-linux-amd64/tmp/charmconfig.out:

### whether linker works
#include <stdio.h>
int main() {
    printf("Hello, world!\n");
    return 0;
}
mpicxx -m64 -fPIC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
mpicxx -m64 -fPIC -DCMK_GFORTRAN -o testlink test.o
*/usr/bin/ld: cannot find -lmpichcxx*
collect2: ld returned 1 exit status

It would seem a problem of not finding the mpichcxx libraries, however:
$> echo $LD_LIBRARY_PATH
/usr/lib64/mvapich2/lib
$> ls /usr/lib64/mvapich2/lib/libmpichcxx*
/usr/lib64/mvapich2/lib/libmpichcxx.so.3
/usr/lib64/mvapich2/lib/libmpichcxx.so.3.3

Please, any help is much appreciated.
-Jose

This archive was generated by hypermail 2.1.6 : Thu Dec 31 2015 - 23:21:35 CST