I honestly don’t know how GCC is finding openmpi.   Yes, my Ubuntu ships with OpenMPI on it, but how is my mpich mpicc shell script removing mpich from the compile command?

hmmm, unless make is not taking my environment with it when sub make commands for some of my packages….. I get mpicc from mpich-3.1.1 through my modules, but openmpi is installed in the default /usr/local location….  I think I see the drift of the problem.





On Jul 2, 2014, at 5:33 PM, Dave Goodell (dgoodell) <dgoodell@cisco.com> wrote:

On Jul 2, 2014, at 3:06 PM, Brian Van Straalen <bvstraalen@lbl.gov> wrote:


an interesting error while using mpicc with mpich-3.1.1

which mpicc
/opt/pkg/mpich-3.1.1/bin/mpicc
mpicc -compile-info
gcc -I/opt/pkg/mpich-3.1.1/include -L/opt/pkg/mpich-3.1.1/lib -Wl,-rpath
[...]
'/usr/lib/openmpi/include' '-I' '/usr/lib/openmpi/include/openmpi' '-pthread'

That line looks awfully suspicious to me.  You probably have a conflicting installation of Open MPI.  Maybe this is an older version of OS X that came with Open MPI installed in /usr?

-Dave

_______________________________________________
discuss mailing list     discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss

Brian Van Straalen         Lawrence Berkeley Lab
BVStraalen@lbl.gov         Computational Research
(510) 486-4976             Division (crd.lbl.gov)