On Thu, Nov 9, 2017 at 8:32 PM, Dafang Wang <dafang.w...@jhu.edu> wrote:
> Hi, > > I got the following error when installing Libmesh v1.0.0 with PETSC > v3.6.4/3.5.4 (neither Petsc worked). What does this mean? What were the error messages? 1.0.0 was tagged in June 2016, PETSc 3.6 was tagged in summer 2015 and should definitely work with that version of libmesh. > I am installing an older version of Libmesh because only that version is > compatible with my user code. > I'm curious how extensive the incompatibilities are. It may be something that can be remedied fairly easily with some mailing list support. > > Any advice would be appreciated. I only found 3 threads on Google > regarding this error. > > nc4internal.c:393:1: error: conflicting types for ‘nc4_rec_find_nc_type’ > nc4_rec_find_nc_type(NC_GRP_INFO_T *start_grp, nc_type target_nc_typeid) > ^~~~~~~~~~~~~~~~~~~~ > In file included from nc4internal.c:16:0: > ../include/nc4internal.h:319:17: note: previous declaration of > ‘nc4_rec_find_nc_type’ was here > NC_TYPE_INFO_T *nc4_rec_find_nc_type(NC_GRP_INFO_T *start_grp, hid_t > target_nc_typeid); > ^~~~~~~~~~~~~~~~~~~~ > make[3]: *** [Makefile:493: libnetcdf4_la-nc4internal.lo] Error 1 > make[3]: *** Waiting for unfinished jobs.... > make[3]: Leaving directory '/home/dwang/program/libmesh-1 > .0.0/contrib/netcdf/v4/libsrc4' > make[2]: *** [Makefile:610: install-recursive] Error 1 > make[2]: Leaving directory '/home/dwang/program/libmesh-1 > .0.0/contrib/netcdf/v4' > make[1]: *** [Makefile:978: install-recursive] Error 1 > make[1]: Leaving directory '/home/dwang/program/libmesh-1.0.0/contrib' > make: *** [Makefile:28784: install-recursive] Error 1 > I believe this bug was fixed by Martin Luethi in libmesh commit 896268d7, however the first version of libmesh that contains that fix is 1.1.0. You could try cherry-picking that commit and seeing if it fixes the problem, but your best long term bet is to just update your user code if possible. -- John ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users