[petsc-users] Petsc Installation Error

Satish Balay balay at mcs.anl.gov
Wed Nov 23 15:24:33 CST 2016


Most likely you have upgraded xcode [and or OSX] - but not brew [which
provides gfortran].

If you need fortran - suggest deleting and reinstalling brew
[gfortran]..

Satish

On Wed, 23 Nov 2016, Matthew Knepley wrote:

> 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
> >
> 
> 
> 
> 



More information about the petsc-users mailing list