[mpich-discuss] mpicc shell error of some kind

Brian Van Straalen bvstraalen at lbl.gov
Wed Jul 2 17:06:59 CDT 2014


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 -Wl,/opt/pkg/mpich-3.1.1/lib -Wl,--enable-new-dtags -lmpi -lrt -lpthread

>mpicc -DHAVE_CONFIG_H -I. -I.. -I/opt/pkg/lrds-0.5/include -Wall -g -I../include -D_LARGEFILE64_SOURCE -O0 -g -I/opt/pkg/lrds-0.5/include -MT mcs-mutex.lo -MD -MP -MF .deps/mcs-mutex.Tpo -c mcs-mutex.c -fPIC -v -DPIC -o .libs/mcs-mutex.o
///// bunch of stuff about gcc 4.6.3 since I have the -v flag added here, but then you notice this result
COLLECT_GCC_OPTIONS='-D' 'HAVE_CONFIG_H' '-I' '.' '-I' '..' '-I' '/opt/pkg/lrds-0.5/include' '-Wall' '-g' '-I' '../include' '-D' '_LARGEFILE64_SOURCE' '-O0' '-g' '-I' '/opt/pkg/lrds-0.5/include' '-MT' 'mcs-mutex.lo' '-MD' '-MP' '-MF' '.deps/mcs-mutex.Tpo' '-c' '-fPIC' '-v' '-D' 'PIC' '-o' '.libs/mcs-mutex.o' '-I' '/usr/lib/openmpi/include' '-I' '/usr/lib/openmpi/include/openmpi' '-pthread' '-mtune=generic' '-march=x86-64'

what has gone missing is every flag that mpicc thought is was giving gcc.  no mpich-3.1.1/include, no flags, nothing.  it has all been eaten.

as a result I end up picking up an mpi.h sitting in /usr/local/include, and get errors about not finding any one-sided MPI function declarations.

when I substitute the compile-info string in for mpicc things work correctly.    

why is mpicc failing to send it’s flags to gcc correctly?



Brian Van Straalen         Lawrence Berkeley Lab






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140702/f23edbd4/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/f23edbd4/attachment.sig>


More information about the discuss mailing list