[petsc-users] Petsc Installation Error
Matthew Knepley
knepley at gmail.com
Wed Nov 23 15:08:17 CST 2016
On Wed, Nov 23, 2016 at 2:57 PM, Sharp Stone <thronesf at gmail.com> wrote:
> Hi folks,
>
> When I'm trying to configure Petsc, I get the errors:
> ld: targeted OS version does not support use of thread local variables in
> _MPIU_Thread_CS_exit_lockname_recursive_impl_ for architecture x86_64
> collect2: error: ld returned 1 exit status
>
You have a bunch of link errors when building MPICH:
gfortran: warning: couldn't understand kern.osversion '15.4.0
gfortran: warning: couldn't understand kern.osversion '15.4.0
gfortran: warning: couldn't understand kern.osversion '15.4.0
gfortran: warning: couldn't understand kern.osversion '15.4.0
gfortran: warning: couldn't understand kern.osversion '15.4.0
ld: warning: object file (src/binding/f90/.libs/mpi.o) was built for newer
OSX version (10.11) than being linked (10.4)
ld: warning: object file (src/binding/f90/.libs/mpi_constants.o) was built
for newer OSX version (10.11) than being linked (10.4)
ld: warning: object file (src/binding/f90/.libs/mpi_sizeofs.o) was built
for newer OSX version (10.11) than being linked (10.4)
ld: warning: object file (src/binding/f90/.libs/mpi_base.o) was built for
newer OSX version (10.11) than being linked (10.4)
It looks to me like you have bad configuration of your compiler/linker
toolchain. Something is rotten in the state of gfortran.
I suggest configuring without Fortran, --with-fc=0. If you need Fortran,
you might have to build MPICH yourself, or fix your
gfortran.
Thanks,
Matt
> make[2]: *** [lib/libmpich.la] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> The configure.log is attached. Thanks in advance!
>
> --
> Best regards,
>
> Feng
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20161123/7a2328b0/attachment.html>
More information about the petsc-users
mailing list