<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hello:</div><div class=""><br class=""></div><div class="">I am trying to compile mpich2-1.5 using OS X 10.10.1 on my laptop. I installed <span style="font-family: Courier;" class="">gfortran-5.0 and </span><span style="font-family: Courier;" class="">gcc-5.0. I used the following configurations:</span></div><div class=""><span style="font-family: Courier;" class=""><br class=""></span></div><div class=""><div style="margin: 0px; font-family: Courier;" class=""> export FC=/usr/local/bin/gfortran </div><div style="margin: 0px; font-family: Courier;" class=""> export F77=/usr/local/bin/gfortran</div><div style="margin: 0px; font-family: Courier;" class=""> export CC=/usr/local/bin/gcc</div><div style="margin: 0px; font-family: Courier;" class=""> export CXX=/usr/local/bin/g++</div><div style="margin: 0px; font-family: Courier;" class=""> export CPP=/usr/local/bin/cpp </div><div style="margin: 0px; font-family: Courier;" class=""> export CXXCPP=/usr/local/bin/cpp</div></div><div class=""><br class=""></div><div class="">I ran <span style="font-family: Courier;" class="">sudo ./configure --prefix=/usr/local/mpich2-1.5-gfortran-5.0/ 2>&1 | sudo tee c.txt to install mpich2 in my /usr/local directory.</span></div><div class=""><span style="font-family: Courier;" class=""><br class=""></span></div><div class=""><font face="Courier" class="">I got the following error message at the bottom of the c.txt file:</font></div><div class=""><font face="Courier" class=""><br class=""></font></div><div class=""><div style="margin: 0px; font-family: Courier;" class="">checking whether to build shared libraries... no</div><div style="margin: 0px; font-family: Courier;" class="">checking whether to build static libraries... yes</div><div style="margin: 0px; font-family: Courier;" class="">checking whether make supports nested variables... (cached) yes</div><div style="margin: 0px; font-family: Courier;" class="">checking for c++... c++</div><div style="margin: 0px; font-family: Courier;" class="">checking whether we are using the GNU C++ compiler... no</div><div style="margin: 0px; font-family: Courier;" class="">checking whether c++ accepts -g... no</div><div style="margin: 0px; font-family: Courier;" class="">checking dependency style of c++... none</div><div style="margin: 0px; font-family: Courier;" class="">checking how to run the C++ preprocessor... /lib/cpp</div><div style="margin: 0px; font-family: Courier;" class="">configure: error: in `/usr/local/src/mpich2/mpich2-1.5':</div><div style="margin: 0px; font-family: Courier;" class="">configure: error: C++ preprocessor "/lib/cpp" fails sanity check</div><div style="margin: 0px; font-family: Courier;" class="">See `config.log' for more details</div></div><div style="margin: 0px; font-family: Courier;" class=""><br class=""></div><div style="margin: 0px; font-family: Courier;" class="">Also see attached config.log file. I do not understand where the error comes from and I need help figuring it out. Note that using the same configuration, I was able to completely install mpich-3.1.3, so I do not undertand where the configure crashes in this case. I hope that somebody can help me figure this out as I really need to use mpich2 and not mpich.</div><div style="margin: 0px; font-family: Courier;" class=""><br class=""></div><div style="margin: 0px; font-family: Courier;" class="">Thanks,</div><div style="margin: 0px; font-family: Courier;" class="">Laura</div><div class=""><br class=""></div><div apple-content-edited="true" class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">!=====================================================<br class="">! Laura D. Fowler<br class="">! e-mail: <a href="mailto:ldfowler58@icloud.com" class="">ldfowler58@icloud.com</a><br class="">! Phone: 970-215-0516<br class="">!=====================================================</div></span></span>
</div>
<br class=""></body></html>