[OMPI users] Cannot link statically against OpenMPI programs

2006-06-15 Thread Anoop Rajendra
Hi. I'm having trouble compiling applications to link statically The command line and error I receive is [root@Pebble-anoop examples]# mpicc -c cpi.c [root@Pebble-anoop examples]# mpicc -static -o cpi cpi.o /usr/bin/ld: cannot find -lmpi collect2: ld returned 1 exit status Not sure how I can c

[OMPI users] SEGV_MAPERR during execution

2006-06-15 Thread Anoop Rajendra
Hi, I'm trying to run a simple pi program compiled using openmpi. My command line and error message is [mpiuser@Pebble-anoop ~]$ mpirun -n 2 -hostfile /opt/openmpi/openmpi/ etc/openmpi-default-hostfile /home/mpiuser/cpi2 Signal:11 info.si_errno:0(Success) si_code:1(SEGV_MAPERR) Failing at add