[Gmsh] [12.12.0] compiler error related to Metis
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Wed Jun 29 12:31:08 CEST 2016
Hi Denis - This should be fixed in the SVN version.
> On 28 Jun 2016, at 09:42, Denis Davydov <davydden at gmail.com> wrote:
>
> Dear developers,
>
> I am trying to compile Gmsh and see the following compiling error (config. output is below).
>
> Kind regards,
> Denis
>
> — error:
>
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:21:18: error: unknown type name 'CtrlType'
> void Balance2Way(CtrlType *ctrl, GraphType *graph, int *tpwgts, float ubfactor)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:21:34: error: unknown type name 'GraphType'
> void Balance2Way(CtrlType *ctrl, GraphType *graph, int *tpwgts, float ubfactor)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:24:3: error: use of undeclared identifier 'idxtype'
> idxtype *id, *ed;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:24:12: error: use of undeclared identifier 'id'
> idxtype *id, *ed;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:24:17: error: use of undeclared identifier 'ed'
> idxtype *id, *ed;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:48:21: error: unknown type name 'CtrlType'
> void Bnd2WayBalance(CtrlType *ctrl, GraphType *graph, int *tpwgts)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:48:37: error: unknown type name 'GraphType'
> void Bnd2WayBalance(CtrlType *ctrl, GraphType *graph, int *tpwgts)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:51:3: error: use of undeclared identifier 'idxtype'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:51:12: error: use of undeclared identifier 'xadj'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:51:19: error: use of undeclared identifier 'vwgt'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:51:26: error: use of undeclared identifier 'adjncy'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:51:35: error: use of undeclared identifier 'adjwgt'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:51:44: error: use of undeclared identifier 'where'; did you mean 'while'?
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^~~~~
> while
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:51:44: error: expected expression
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:52:3: error: use of undeclared identifier 'idxtype'
> idxtype *moved, *perm;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:52:12: error: use of undeclared identifier 'moved'
> idxtype *moved, *perm;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:52:20: error: use of undeclared identifier 'perm'
> idxtype *moved, *perm;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:53:3: error: use of undeclared identifier 'PQueueType'
> PQueueType parts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/balance.c:57:3: error: use of undeclared identifier 'xadj'
> xadj = graph->xadj;
> ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> [ 41%] Building C object CMakeFiles/shared.dir/contrib/Metis/mcoarsen.c.o
> 20 errors generated.
> make[2]: *** [CMakeFiles/shared.dir/contrib/Metis/balance.c.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:20:24: error: unknown type name 'CtrlType'
> void FM_2WayEdgeRefine(CtrlType *ctrl, GraphType *graph, int *tpwgts, int npasses)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:20:40: error: unknown type name 'GraphType'
> void FM_2WayEdgeRefine(CtrlType *ctrl, GraphType *graph, int *tpwgts, int npasses)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:23:3: error: use of undeclared identifier 'idxtype'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:23:12: error: use of undeclared identifier 'xadj'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:23:19: error: use of undeclared identifier 'vwgt'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:23:26: error: use of undeclared identifier 'adjncy'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:23:35: error: use of undeclared identifier 'adjwgt'
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:23:44: error: use of undeclared identifier 'where'; did you mean 'while'?
> idxtype *xadj, *vwgt, *adjncy, *adjwgt, *where, *id, *ed, *bndptr, *bndind, *pwgts;
> ^~~~~
> while
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:23:44: error: expected expression
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:24:3: error: use of undeclared identifier 'idxtype'
> idxtype *moved, *swaps, *perm;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:24:12: error: use of undeclared identifier 'moved'
> idxtype *moved, *swaps, *perm;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:24:20: error: use of undeclared identifier 'swaps'
> idxtype *moved, *swaps, *perm;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:24:28: error: use of undeclared identifier 'perm'
> idxtype *moved, *swaps, *perm;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:25:3: error: use of undeclared identifier 'PQueueType'
> PQueueType parts[2];
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:29:3: error: use of undeclared identifier 'xadj'
> xadj = graph->xadj;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:30:3: error: use of undeclared identifier 'vwgt'; did you mean 'kwgt'?
> vwgt = graph->vwgt;
> ^~~~
> kwgt
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:22:20: note: 'kwgt' declared here
> int i, ii, j, k, kwgt, nvtxs, nbnd, nswaps, from, to, pass, me, limit, tmp;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:31:3: error: use of undeclared identifier 'adjncy'
> adjncy = graph->adjncy;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:32:3: error: use of undeclared identifier 'adjwgt'
> adjwgt = graph->adjwgt;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/fm.c:33:3: error: use of undeclared identifier 'where'
> where = graph->where;
> ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> make[2]: *** [CMakeFiles/shared.dir/contrib/Metis/fm.c.o] Error 1
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:19:28: error: unknown type name 'CtrlType'
> void Random_KWayEdgeRefine(CtrlType *ctrl, GraphType *graph, int nparts, float *tpwgts, float ubfactor, int npasses, int ffactor)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:19:44: error: unknown type name 'GraphType'
> void Random_KWayEdgeRefine(CtrlType *ctrl, GraphType *graph, int nparts, float *tpwgts, float ubfactor, int npasses, int ffactor)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:23:3: error: use of undeclared identifier 'idxtype'
> idxtype *xadj, *adjncy, *adjwgt;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:23:12: error: use of undeclared identifier 'xadj'
> idxtype *xadj, *adjncy, *adjwgt;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:23:19: error: use of undeclared identifier 'adjncy'
> idxtype *xadj, *adjncy, *adjwgt;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:23:28: error: use of undeclared identifier 'adjwgt'
> idxtype *xadj, *adjncy, *adjwgt;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:24:3: error: use of undeclared identifier 'idxtype'
> idxtype *where, *pwgts, *perm, *bndptr, *bndind, *minwgt, *maxwgt, *itpwgts;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:24:12: error: use of undeclared identifier 'where'; did you mean 'while'?
> idxtype *where, *pwgts, *perm, *bndptr, *bndind, *minwgt, *maxwgt, *itpwgts;
> ^~~~~
> while
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:24:12: error: expected expression
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:25:3: error: use of undeclared identifier 'EDegreeType'
> EDegreeType *myedegrees;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:25:16: error: use of undeclared identifier 'myedegrees'; did you mean 'myndegrees'?
> EDegreeType *myedegrees;
> ^~~~~~~~~~
> myndegrees
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:21:66: note: 'myndegrees' declared here
> int i, ii, iii, j, jj, k, l, pass, nvtxs, nmoves, nbnd, tvwgt, myndegrees;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:26:3: error: use of undeclared identifier 'RInfoType'
> RInfoType *myrinfo;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:26:14: error: use of undeclared identifier 'myrinfo'
> RInfoType *myrinfo;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:29:3: error: use of undeclared identifier 'xadj'
> xadj = graph->xadj;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:30:3: error: use of undeclared identifier 'adjncy'
> adjncy = graph->adjncy;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:31:3: error: use of undeclared identifier 'adjwgt'
> adjwgt = graph->adjwgt;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:33:3: error: use of undeclared identifier 'bndptr'
> bndptr = graph->bndptr;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:34:3: error: use of undeclared identifier 'bndind'
> bndind = graph->bndind;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/kwayfm.c:36:3: error: use of undeclared identifier 'where'
> where = graph->where;
> ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> make[2]: *** [CMakeFiles/shared.dir/contrib/Metis/kwayfm.c.o] Error 1
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:19:1: error: unknown type name 'GraphType'
> GraphType *MCCoarsen2Way(CtrlType *ctrl, GraphType *graph)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:19:26: error: unknown type name 'CtrlType'
> GraphType *MCCoarsen2Way(CtrlType *ctrl, GraphType *graph)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:19:42: error: unknown type name 'GraphType'
> GraphType *MCCoarsen2Way(CtrlType *ctrl, GraphType *graph)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:22:3: error: use of undeclared identifier 'GraphType'
> GraphType *cgraph;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:22:14: error: use of undeclared identifier 'cgraph'; did you mean 'graph'?
> GraphType *cgraph;
> ^~~~~~
> graph
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:19:53: note: 'graph' declared here
> GraphType *MCCoarsen2Way(CtrlType *ctrl, GraphType *graph)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:24:23: error: use of undeclared identifier 'DBG_TIME'
> IFSET(ctrl->dbglvl, DBG_TIME, starttimer(ctrl->CoarsenTmr));
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:26:3: error: use of undeclared identifier 'cgraph'; did you mean 'graph'?
> cgraph = graph;
> ^~~~~~
> graph
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:19:53: note: 'graph' declared here
> GraphType *MCCoarsen2Way(CtrlType *ctrl, GraphType *graph)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:30:22: error: use of undeclared identifier 'DBG_COARSEN'
> if (ctrl->dbglvl&DBG_COARSEN) {
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:32:22: error: use of undeclared identifier 'cgraph'
> idxsum(cgraph->nvtxs, cgraph->adjwgtsum), ctrl->CoarsenTo, ctrl->nmaxvwgt);
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:32:37: error: use of undeclared identifier 'cgraph'
> idxsum(cgraph->nvtxs, cgraph->adjwgtsum), ctrl->CoarsenTo, ctrl->nmaxvwgt);
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:31:42: error: use of undeclared identifier 'cgraph'
> printf("%6d %7d %10d [%d] [%6.4f", cgraph->nvtxs, cgraph->nedges,
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:31:57: error: use of undeclared identifier 'cgraph'
> printf("%6d %7d %10d [%d] [%6.4f", cgraph->nvtxs, cgraph->nedges,
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:34:51: error: use of undeclared identifier 'cgraph'
> printf(" %5.3f", ssum_strd(cgraph->nvtxs, cgraph->nvwgt+i, cgraph->ncon));
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:34:36: error: use of undeclared identifier 'cgraph'
> printf(" %5.3f", ssum_strd(cgraph->nvtxs, cgraph->nvwgt+i, cgraph->ncon));
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:34:68: error: use of undeclared identifier 'cgraph'
> printf(" %5.3f", ssum_strd(cgraph->nvtxs, cgraph->nvwgt+i, cgraph->ncon));
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:73:5: error: use of undeclared identifier 'cgraph'; did you mean 'graph'?
> cgraph = cgraph->coarser;
> ^~~~~~
> graph
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:19:53: note: 'graph' declared here
> GraphType *MCCoarsen2Way(CtrlType *ctrl, GraphType *graph)
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:73:14: error: use of undeclared identifier 'cgraph'
> cgraph = cgraph->coarser;
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:76:12: error: use of undeclared identifier 'cgraph'
> } while (cgraph->nvtxs > ctrl->CoarsenTo && cgraph->nvtxs < COARSEN_FRACTION2*cgraph->finer->nvtxs && cgraph->nedges > cgraph->nvtxs/2);
> ^
> /Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source/contrib/Metis/mcoarsen.c:76:63: error: use of undeclared identifier 'COARSEN_FRACTION2'
> } while (cgraph->nvtxs > ctrl->CoarsenTo && cgraph->nvtxs < COARSEN_FRACTION2*cgraph->finer->nvtxs && cgraph->nedges > cgraph->nvtxs/2);
> ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> make[2]: *** [CMakeFiles/shared.dir/contrib/Metis/mcoarsen.c.o] Error 1
> make[1]: *** [CMakeFiles/shared.dir/all] Error 2
> make: *** [all] Error 2
>
>
> ——— configure:
>
> ==> 'cmake' '/Users/davydden/spack/var/spack/stage/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/gmsh-2.12.0-source' '-DCMAKE_INSTALL_PREFIX=/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw' '-DCMAKE_BUILD_TYPE=RelWithDebInfo' '-DCMAKE_FIND_FRAMEWORK=LAST' '-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=FALSE' '-DCMAKE_INSTALL_RPATH=/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/lib:/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/lib64:/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/zlib-1.2.8-olur32o4bwaagk27ppelhlggws4pxknx/lib:/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/petsc-3.6.4-24g5zsrebs3qba5uqt6l25chhnvwa5j7/lib:/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/openmpi-1.10.3-5nfj7fkjw6wvypo5weuvso3evcw4kttg/lib:/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmp-6.1.0-5zolcd74gboeemtykebegzqdsoipv5l2/lib:/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/openblas-0.2.18-ligmia5aqpjb4hlunalo5xwfn5igmmx6/lib' '-DENABLE_OS_SPECIFIC_INSTALL=OFF' '-DGMSH_BIN=/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/bin' '-DGMSH_LIB=/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/lib' '-DGMSH_DOC=/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/share/doc' '-DGMSH_MAN=/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/man' '-DCMAKE_INSTALL_NAME_DIR:PATH=/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw/lib' '-DENABLE_OS_SPECIFIC_INSTALL=OFF' '-DENABLE_OCC=OFF' '-DENABLE_PETSC=ON' '-DENABLE_SLEPC=OFF' '-DENABLE_BUILD_SHARED:BOOL=ON' '-DENABLE_BUILD_DYNAMIC:BOOL=ON' '-DENABLE_MPI:BOOL=ON' '-DENABLE_COMPRESSED_IO:BOOL=ON'
> -- The CXX compiler identification is AppleClang 7.3.0.7030031
> -- The C compiler identification is AppleClang 7.3.0.7030031
> -- Check for working CXX compiler: /Users/davydden/spack/lib/spack/env/clang/clang++
> -- Check for working CXX compiler: /Users/davydden/spack/lib/spack/env/clang/clang++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Check for working C compiler: /Users/davydden/spack/lib/spack/env/clang/clang
> -- Check for working C compiler: /Users/davydden/spack/lib/spack/env/clang/clang -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of void*
> -- Check size of void* - done
> -- Found Blas(VecLib)
> -- Found Lapack(VecLib)
> -- Found Mesh
> -- Found Solver
> -- Found Post
> -- Found Plugins
> -- Found Parser
> -- Found OpenGL: /System/Library/Frameworks/OpenGL.framework
> -- Looking for XOpenDisplay in /opt/X11/lib/libX11.dylib;/opt/X11/lib/libXext.dylib
> -- Looking for XOpenDisplay in /opt/X11/lib/libX11.dylib;/opt/X11/lib/libXext.dylib - found
> -- Looking for gethostbyname
> -- Looking for gethostbyname - found
> -- Looking for connect
> -- Looking for connect - found
> -- Looking for remove
> -- Looking for remove - found
> -- Looking for shmat
> -- Looking for shmat - found
> -- Looking for IceConnectionNumber in ICE
> -- Looking for IceConnectionNumber in ICE - found
> -- Found X11: /opt/X11/lib/libX11.dylib
> -- Could NOT find FLTK (missing: FLTK_LIBRARIES)
> -- Found NativeFileChooser
> -- Found ONELAB
> -- Found ONELABMetamodel
> -- System ANN not found: using contrib/ANN instead
> -- Found Ann
> -- Found Bfgs
> -- Found DIntegration
> -- Found OptHom
> -- Found Kbipack
> -- Found GMP
> -- Found MathEx
> -- Found MPI_C: /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/openmpi-1.10.3-5nfj7fkjw6wvypo5weuvso3evcw4kttg/lib/libmpi.dylib
> -- Found MPI_CXX: /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/openmpi-1.10.3-5nfj7fkjw6wvypo5weuvso3evcw4kttg/lib/libmpi_cxx.dylib;/Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/openmpi-1.10.3-5nfj7fkjw6wvypo5weuvso3evcw4kttg/lib/libmpi.dylib
> -- Found MPI
> -- Found Metis
> -- Note: By including Metis you have to comply with Metis' special licensing requirements stated in contrib/Metis/README.txt.
> -- Found Chaco
> -- Found Voro3D
> -- Found Blossom
> -- Found Netgen
> -- Found Bamg
> -- System MMG3D not found: using contrib/mmg3d instead
> -- Found Mmg3d
> -- Found Tetgen(1.5)
> -- Note: By including Tetgen you have to comply with Tetgen's special licensing requirements stated in contrib/Tetgen*/LICENSE.
> -- System GMM not found: using contrib/gmm instead
> -- Found Gmm
> -- Found Taucs
> -- Using PETSc dir: /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/petsc-3.6.4-24g5zsrebs3qba5uqt6l25chhnvwa5j7
> -- Using PETSc arch:
> -- Found PETSc
> -- Looking for vsnprintf
> -- Looking for vsnprintf - found
> -- Looking for sys/socket.h
> -- Looking for sys/socket.h - found
> -- Check size of socklen_t
> -- Check size of socklen_t - done
> -- Check size of intptr_t
> -- Check size of intptr_t - done
> -- Looking for dlfcn.h
> -- Looking for dlfcn.h - found
> -- Found Dlopen
> -- Looking for linux/joystick.h
> -- Looking for linux/joystick.h - not found
> -- Performing Test WALL
> -- Performing Test WALL - Success
> -- Performing Test WCAST
> -- Performing Test WCAST - Success
> -- Performing Test WDEPREC
> -- Performing Test WDEPREC - Success
> -- Performing Test NOWARN
> -- Performing Test NOWARN - Success
> -- Performing Test NOOPT
> -- Performing Test NOOPT - Success
> --
> -- Gmsh 2.12.0 has been configured for MacOSX
> --
> -- * Build options: Ann Bamg Bfgs Blas(VecLib) Blossom Chaco DIntegration Dlopen GMP Gmm Kbipack Lapack(VecLib) MPI MathEx Mesh Metis Mmg3d NativeFileChooser Netgen ONELAB ONELABMetamodel OptHom PETSc Parser Plugins Post Solver Taucs Tetgen(1.5) Voro3D
> -- * Build type: RelWithDebInfo
> -- * C compiler: /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/openmpi-1.10.3-5nfj7fkjw6wvypo5weuvso3evcw4kttg/bin/mpicc
> -- * C++ compiler: /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/openmpi-1.10.3-5nfj7fkjw6wvypo5weuvso3evcw4kttg/bin/mpicxx
> -- * Install prefix: /Users/davydden/spack/opt/spack/darwin-elcapitan-x86_64/clang-7.3.0-apple/gmsh-2.12.0-hw4jsttw4y7lzozl5m4e3kz32fqbf6sw
> --
> -- Configuring done
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
Free software: http://gmsh.info | http://getdp.info | http://onelab.info
More information about the gmsh
mailing list