<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 23, 2016 at 2:57 PM, Sharp Stone <span dir="ltr"><<a href="mailto:thronesf@gmail.com" target="_blank">thronesf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">Hi folks,<br><br></div><div style="font-size:small">When I'm trying to configure Petsc, I get the errors:<br>ld: targeted OS version does not support use of thread local variables in _MPIU_Thread_CS_exit_lockname_<wbr>recursive_impl_ for architecture x86_64<br>collect2: error: ld returned 1 exit status<br></div></div></blockquote><div><br></div><div>You have a bunch of link errors when building MPICH:</div><div><br></div><div><div>gfortran: warning: couldn't understand kern.osversion '15.4.0</div><div>gfortran: warning: couldn't understand kern.osversion '15.4.0</div><div>gfortran: warning: couldn't understand kern.osversion '15.4.0</div><div>gfortran: warning: couldn't understand kern.osversion '15.4.0</div><div>gfortran: warning: couldn't understand kern.osversion '15.4.0</div><div>ld: warning: object file (src/binding/f90/.libs/mpi.o) was built for newer OSX version (10.11) than being linked (10.4)</div><div>ld: warning: object file (src/binding/f90/.libs/mpi_constants.o) was built for newer OSX version (10.11) than being linked (10.4)</div><div>ld: warning: object file (src/binding/f90/.libs/mpi_sizeofs.o) was built for newer OSX version (10.11) than being linked (10.4)</div><div>ld: warning: object file (src/binding/f90/.libs/mpi_base.o) was built for newer OSX version (10.11) than being linked (10.4)</div></div><div><br></div><div>It looks to me like you have bad configuration of your compiler/linker toolchain. Something is rotten in the state of gfortran.</div><div>I suggest configuring without Fortran, --with-fc=0. If you need Fortran, you might have to build MPICH yourself, or fix your</div><div>gfortran.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">make[2]: *** [lib/<a href="http://libmpich.la" target="_blank">libmpich.la</a>] Error 1<br>make[1]: *** [all-recursive] Error 1<br>make: *** [all] Error 2<br><br></div><div style="font-size:small">The configure.log is attached. Thanks in advance!<span class="gmail-HOEnZb"><font color="#888888"><br clear="all"></font></span></div><span class="gmail-HOEnZb"><font color="#888888"><br>-- <br><div class="gmail-m_1171713094902213724gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><font size="2">Best regards,</font></div><div><font size="2"><br></font></div><font size="2">Feng</font></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>