[MBDyn-users] Problem on installation

Louis Gagnon louis.gagnon at polimi.it
Sat Sep 23 11:37:14 CEST 2017


Dear Wenguo,
try to add this to your ./configure command and let us know whether it 
solved the problem:
  --with-metis=no
Best Regards,
-Louis

On 23/09/2017 10:12, Wenguo Zhu wrote:
> Dear MBDyners,
> 
> I met a problem when i compile mbdyn-1.7.2 on Ubuntu 16.04.3 LTS system.
> The error information is as below, did anyone meet thus problem before? and how to fix this?
> Thanks in advance!
> 
> Wenguo Zhu.
> --------------------------------------------------------------
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I./../../include -I./../../mbdyn -I./../libmbutil -I./../libmbmath -I./../liby12 -I./../libcolamd -I./../libnaive -g -O2 -pthread -MT metiswrap.lo -MD -MP -MF .deps/metiswrap.Tpo -c metiswrap.cc  -fPIC -DPIC -o .libs/metiswrap.o
> metiswrap.cc: In function 'int mbdyn_METIS_PartGraph(int, int*, int*, int*, int*, int*, int, int*)':
> metiswrap.cc:59:2: error: 'idxtype' was not declared in this scope
>    idxtype *xadj = 0,
>    ^
> metiswrap.cc:59:11: error: 'xadj' was not declared in this scope
>    idxtype *xadj = 0,
>             ^
> metiswrap.cc:60:4: error: 'adjncy' was not declared in this scope
>     *adjncy = 0,
>      ^
> metiswrap.cc:61:4: error: 'vwgt' was not declared in this scope
>     *vwgt = 0,
>      ^
> metiswrap.cc:62:4: error: 'adjwgt' was not declared in this scope
>     *adjwgt = 0,
>      ^
> metiswrap.cc:63:4: error: 'part' was not declared in this scope
>     *part = 0;
>      ^
> In file included from metiswrap.cc:37:0:
> metiswrap.cc:73:20: error: 'idxtype' does not name a type
>     SAFENEWARR(xadj, idxtype, iTotVertices);
>                      ^
> ./../libmbutil/mynewmem.h:661:14: note: in definition of macro 'SAFENEWARR_'
>    (pnt) = new item[sz]
>                ^
> metiswrap.cc:73:3: note: in expansion of macro 'SAFENEWARR'
>     SAFENEWARR(xadj, idxtype, iTotVertices);
>     ^
> metiswrap.cc:74:22: error: 'idxtype' does not name a type
>     SAFENEWARR(adjncy, idxtype, pXadj[iTotVertices]);
>                        ^
> ./../libmbutil/mynewmem.h:661:14: note: in definition of macro 'SAFENEWARR_'
>    (pnt) = new item[sz]
>                ^
> metiswrap.cc:74:3: note: in expansion of macro 'SAFENEWARR'
>     SAFENEWARR(adjncy, idxtype, pXadj[iTotVertices]);
>     ^
> metiswrap.cc:76:21: error: 'idxtype' does not name a type
>      SAFENEWARR(vwgt, idxtype, iTotVertices);
>                       ^
> ./../libmbutil/mynewmem.h:661:14: note: in definition of macro 'SAFENEWARR_'
>    (pnt) = new item[sz]
>                ^
> metiswrap.cc:76:4: note: in expansion of macro 'SAFENEWARR'
>      SAFENEWARR(vwgt, idxtype, iTotVertices);
>      ^
> metiswrap.cc:79:23: error: 'idxtype' does not name a type
>      SAFENEWARR(adjwgt, idxtype, pXadj[iTotVertices]);
>                         ^
> ./../libmbutil/mynewmem.h:661:14: note: in definition of macro 'SAFENEWARR_'
>    (pnt) = new item[sz]
>                ^
> metiswrap.cc:79:4: note: in expansion of macro 'SAFENEWARR'
>      SAFENEWARR(adjwgt, idxtype, pXadj[iTotVertices]);
>      ^
> metiswrap.cc:81:20: error: 'idxtype' does not name a type
>     SAFENEWARR(part, idxtype, iTotVertices);
>                      ^
> ./../libmbutil/mynewmem.h:661:14: note: in definition of macro 'SAFENEWARR_'
>    (pnt) = new item[sz]
>                ^
> metiswrap.cc:81:3: note: in expansion of macro 'SAFENEWARR'
>     SAFENEWARR(part, idxtype, iTotVertices);
>     ^
> metiswrap.cc:125:8: error: 'METIS_PartGraphVKway' was not declared in this scope
>      part);
>          ^
> In file included from metiswrap.cc:37:0:
> ./../libmbutil/mynewmem.h:681:16: error: type '<type error>' argument given to 'delete', expected pointer
>     delete[] (pnt); \
>                  ^
> ./../libmbutil/mynewmem.h:714:2: note: in expansion of macro 'SAFEDELETEARR_'
>    SAFEDELETEARR_(pnt, defaultMemoryManager)
>    ^
> metiswrap.cc:133:3: note: in expansion of macro 'SAFEDELETEARR'
>     SAFEDELETEARR(xadj);
>     ^
> ./../libmbutil/mynewmem.h:681:16: error: type '<type error>' argument given to 'delete', expected pointer
>     delete[] (pnt); \
>                  ^
> ./../libmbutil/mynewmem.h:714:2: note: in expansion of macro 'SAFEDELETEARR_'
>    SAFEDELETEARR_(pnt, defaultMemoryManager)
>    ^
> metiswrap.cc:134:3: note: in expansion of macro 'SAFEDELETEARR'
>     SAFEDELETEARR(adjncy);
>     ^
> ./../libmbutil/mynewmem.h:681:16: error: type '<type error>' argument given to 'delete', expected pointer
>     delete[] (pnt); \
>                  ^
> ./../libmbutil/mynewmem.h:714:2: note: in expansion of macro 'SAFEDELETEARR_'
>    SAFEDELETEARR_(pnt, defaultMemoryManager)
>    ^
> metiswrap.cc:137:4: note: in expansion of macro 'SAFEDELETEARR'
>      SAFEDELETEARR(vwgt);
>      ^
> ./../libmbutil/mynewmem.h:681:16: error: type '<type error>' argument given to 'delete', expected pointer
>     delete[] (pnt); \
>                  ^
> ./../libmbutil/mynewmem.h:714:2: note: in expansion of macro 'SAFEDELETEARR_'
>    SAFEDELETEARR_(pnt, defaultMemoryManager)
>    ^
> metiswrap.cc:141:4: note: in expansion of macro 'SAFEDELETEARR'
>      SAFEDELETEARR(adjwgt);
>      ^
> ./../libmbutil/mynewmem.h:681:16: error: type '<type error>' argument given to 'delete', expected pointer
>     delete[] (pnt); \
>                  ^
> ./../libmbutil/mynewmem.h:714:2: note: in expansion of macro 'SAFEDELETEARR_'
>    SAFEDELETEARR_(pnt, defaultMemoryManager)
>    ^
> metiswrap.cc:144:3: note: in expansion of macro 'SAFEDELETEARR'
>     SAFEDELETEARR(part);
>     ^
> Makefile:657: recipe for target 'metiswrap.lo' failed
> make[2]: *** [metiswrap.lo] Error 1
> make[2]: Leaving directory '/home/zhu/APP/mbdyn-1.7.2/libraries/libmbwrap'
> Makefile:436: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/home/zhu/APP/mbdyn-1.7.2/libraries'
> Makefile:548: recipe for target 'all-recursive' failed
> make: *** [all-recursive] Error 1
> 
> _______________________________________________
> MBDyn-users mailing list
> MBDyn-users at mbdyn.org
> https://mail.mbdyn.org/cgi-bin/mailman/listinfo/mbdyn-users
> 

-- 
Louis Gagnon, Ph.D.
Postdoctoral fellow
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano
+39 02 2399 8642
http://louisgagnon.com/research/


More information about the MBDyn-users mailing list