Hi,<div><br></div><div>I'm having problems building MPICH2 with debugging symbols. I'm using OS X Lion on an 86x64 box using PGI 10.9 as my compiler.</div><div><br></div><div>As far as I can tell, the issue is that the builder wants me to use the flag -fpic to produce position independent code, but PGI doesn't support the -fpic flag for OS X on a 64 bit machine.</div>
<div><br></div><div>My problem is with <font class="Apple-style-span" face="'courier new', monospace">./src/mpi/debugger/dll_mpich2.c</font>, specifically, here is the line the fails while i'm make'ing it.</div>
<div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">/opt/pgi/osx86-64/10.9/bin/pgcc <b>-fPIC</b> -DHAVE_CONFIG_H -I. -I. -I../../include -I../../../src/include -O2 -Msignextend -V -g -DNDEBUG -DpgiFortran -I/Users/matt/software/mpich2/mpich2-1.4/src/mpl/include -I/Users/matt/software/mpich2/mpich2-1.4/src/mpl/include -I/Users/matt/software/mpich2/mpich2-1.4/src/openpa/src -I/Users/matt/software/mpich2/mpich2-1.4/src/openpa/src -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/ch3/include -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/ch3/include -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/common/datatype -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/common/datatype -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/common/locks -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/common/locks -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/ch3/channels/nemesis/include -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/ch3/channels/nemesis/include -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/ch3/channels/nemesis/nemesis/include -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/ch3/channels/nemesis/nemesis/include -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/ch3/channels/nemesis/nemesis/utils/monitor -I/Users/matt/software/mpich2/mpich2-1.4/src/mpid/ch3/channels/nemesis/nemesis/utils/monitor -I/Users/matt/software/mpich2/mpich2-1.4/src/util/wrappers -I/Users/matt/software/mpich2/mpich2-1.4/src/util/wrappers -g -c ./<b>dll_mpich2.c</b> -o _sdll_mpich2.o</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><b>pgcc-Error-Unknown switch: -fPIC</b></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">pgcc 10.9-0 64-bit target on Apple OS/X -tp nehalem-64 </font></div><div><font class="Apple-style-span" face="'courier new', monospace">Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Copyright 2000-2010, STMicroelectronics, Inc. All Rights Reserved.</font></div><div><font class="Apple-style-span" face="'courier new', monospace">make[2]: *** [dll_mpich2.lo] Error 1</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">make[1]: *** [all-postamble] Error 2</font></div><div><font class="Apple-style-span" face="'courier new', monospace">make: *** [all-redirect] Error 2</font></div>
</div><div><br></div><div>My configuration options were:</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">./configure --prefix=/usr/local/mpich2_pg-dbg --enable-f77 --enable-debuginfo --enable-error-messages=all --enable-g=all --enable-fast=none</font></div>
<div><br></div><div><br></div>
<div>Does any one know how I can get around this? I need the debug info, since the program I'm trying to run with MPICH (CMAQ) seg. faults. right away, and I don't know how else to debug it.</div><div><br></div>
<div>Note, with my installation (without debugging symbols), I can run all the sample programs on multiple processors, etc.</div><div><br></div><div>Thanks,</div>