[mpich-discuss] mpicc shell error of some kind

Brian Van Straalen bvstraalen at lbl.gov
Wed Jul 2 19:59:41 CDT 2014

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 at cisco.com> wrote:

> On Jul 2, 2014, at 3:06 PM, Brian Van Straalen <bvstraalen at 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 at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140702/880675a5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140702/880675a5/attachment.sig>

More information about the discuss mailing list