Re: [OMPI users] openmpi-1.6.4 mpicc fails to compile hello_c.c

2013-03-08 Thread Limin Gu
Thanks Jeff! When I was trying to produce clean config.log files, I think I have found what caused my problem. Limin On Thu, Mar 7, 2013 at 5:42 PM, Jeff Squyres (jsquyres) wrote: > > Huh! This is surprising. > > Can you send me the config.log from each of your 1.6.3 and

Re: [OMPI users] openmpi-1.6.4 mpicc fails to compile hello_c.c

2013-03-07 Thread Jeff Squyres (jsquyres)
On Mar 7, 2013, at 5:24 PM, Limin Gu wrote: > On the same system, > with 1.6.3: > [root@tesla examples]# mpicc --showme hello_c.c > gcc hello_c.c -I/opt/scyld/openmpi/1.6.3/gnu/include -pthread > -L/opt/scyld/openmpi/1.6.3/gnu/lib -lmpi -libverbs -ldat -lrt -lnsl

Re: [OMPI users] openmpi-1.6.4 mpicc fails to compile hello_c.c

2013-03-07 Thread Limin Gu
On Thu, Mar 7, 2013 at 4:01 PM, Jeff Squyres (jsquyres) wrote: > > This doesn't sound right -- I don't think we changed how linking worked in > 1.6.3 and 1.6.4. > > Are you sure that, on that same machine with MPICH installed in > /usr/lib64, you're also able to

Re: [OMPI users] openmpi-1.6.4 mpicc fails to compile hello_c.c

2013-03-07 Thread Jeff Squyres (jsquyres)
On Mar 7, 2013, at 1:16 PM, Limin Gu wrote: > "ldd hello_cxx" gave me some clue, and I found it was linked to some mpich > library which was installed under/usr/lib64. When I removed mpich libraries, > and recompile, everything includes mpicc and mpirun worked fine.

Re: [OMPI users] openmpi-1.6.4 mpicc fails to compile hello_c.c

2013-03-07 Thread Limin Gu
Hi Jeff and Reuti, thank you for your responds. "ldd hello_cxx" gave me some clue, and I found it was linked to some mpich library which was installed under/usr/lib64. When I removed mpich libraries, and recompile, everything includes mpicc and mpirun worked fine. I didn't have that problem with

Re: [OMPI users] openmpi-1.6.4 mpicc fails to compile hello_c.c

2013-03-07 Thread Jeff Squyres (jsquyres)
On Mar 7, 2013, at 9:31 AM, Reuti wrote: >> [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 >>

Re: [OMPI users] openmpi-1.6.4 mpicc fails to compile hello_c.c

2013-03-07 Thread Reuti
Am 06.03.2013 um 18:55 schrieb Limin Gu: > 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

[OMPI users] openmpi-1.6.4 mpicc fails to compile hello_c.c

2013-03-06 Thread Limin Gu
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