Hi, I have successfully built openmpi-1.6.3 and many previous openmpi versions on both RHEL5 and RHEL6, for the new openmpi-1.6.4 I do the same configure, make and install as before, but the resulting mpicc does not compile hello_c.c.
I have PATH and LD_LIBRARY_PATH set correctly. [root@tesla examples]# echo $LD_LIBRARY_PATH /opt/scyld/openmpi/1.6.4/gnu/lib [root@tesla examples]# which mpicc /opt/scyld/openmpi/1.6.4/gnu/bin/mpicc [root@tesla examples]# mpicc -o hello_c hello_c.c /tmp/ccuZg1I9.o: In function `main': hello_c.c:(.text+0x1d): undefined reference to `ompi_mpi_comm_world' hello_c.c:(.text+0x2b): undefined reference to `ompi_mpi_comm_world' collect2: ld returned 1 exit status [root@tesla examples]# But mpicxx does compile: [root@tesla examples]# which mpicxx /opt/scyld/openmpi/1.6.4/gnu/bin/mpicxx [root@tesla examples]# mpicxx -o hello_cxx hello_cxx.cc [root@tesla examples]# Any idea about what is wrong here? I have the same error on both RHEL5 and RHEL6 systems. Thank you! Limin