metiswrap.cc:75:10: error: cannot convert ‘int*’ to ‘idx_t*’ {aka ‘long int*’} in assignment
configured with ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/mbdyn-1.7.3_p20210925 --htmldir=/usr/share/doc/mbdyn-1.7.3_p20210925/html --with-sysroot=/ --libdir=/usr/lib64 --disable-static --disable-Werror --enable-runtime-loading --with-lapack --without-charm --without-g2c --without-goto --without-harwell --without-pardiso --without-rtai --without-static-modules --without-strumpack --without-wsmp --enable-autodiff --enable-crypt --disable-debug --enable-eig --enable-mbc --enable-multithread-naive --enable-netcdf --enable-octave --enable-octave-utils --enable-python --disable-schur --disable-install_test_progs --enable-multithread --with-ann --with-arpack --with-boost --with-bullet --with-ginac --with-jdqz --with-metis --with-openblas --with-pam --with-pastix --with-qrupdate --with-rt --with-sasl2 --with-klu --with-suitesparseqr --with-umfpack --without-superlu --with-threads --with-y12 --enable-sparse-autodiff --disable-debug-mpi --without-mpi --with-module="asynchronous_machine autodiff_test ballbearing_contact bullet charm constlaw-f90 constlaw-f95 constlaw cont-contact controller convtest cyclocopter damper-gandhi damper-graall damper-hydraulic damper diff dot drive-test drive dummy eu2phi fab-electric fab-motion fab-sbearings fabricate flightgear friction friction3 hfelem hid hunt-crossley hydrodynamic_plain_bearing hydrodynamic_plain_bearing2 imu indvel inline_friction inplane_friction journal_bearing leapmotion loadinc marble md mds minmaxdrive multi_step_drive muscles namespace nodedistdrive nonsmooth-node ns octave randdrive rollercoaster rotor-loose-coupling scalarfunc switch_drive tclpgin triangular_contact uni_in_plane wheel2 wheel4"
I have metis 5.1.0
libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I./../../include -I./../../mbdyn -I./../libmbutil -I./../libmbmath -I./../liby12 -I./../libcolamd -I./../libnaive -D_GLIBCXX_ASSERTIONS -Os
-pipe -march=native -fdiagnostics-color=always -fexceptions -Wformat -fstack-clash-protection -I/usr/include/bullet -march=native -mtune=native -pthread -c metiswrap.cc -fPIC -DPIC -o .libs/metiswrap.o
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I./../../include -I./../../mbdyn -I./../libmbutil -I./../libmbmath -I./../liby12 -I./../libcolamd -I./../libnaive -D_GLIBCXX_ASSERTIONS -Os -pipe -march=nat
ive -fdiagnostics-color=always -fexceptions -Wformat -fstack-clash-protection -I/usr/include/bullet -march=native -mtune=native -pthread -c -o cctest.o cctest.cc
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I./../../include -I./../../mbdyn -I./../libmbutil -I./../libmbmath -I./../liby12 -I./../libcolamd -I./../libnaive -D_GLIBCXX_ASSERTIONS -Os -pipe -march=nat
ive -fdiagnostics-color=always -fexceptions -Wformat -fstack-clash-protection -I/usr/include/bullet -march=native -mtune=native -pthread -c -o arptest.o arptest.cc
libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I./../../include -I./../../mbdyn -I./../libmbutil -I./../libmbmath -I./../liby12 -I./../libcolamd -I./../libnaive -D_GLIBCXX_ASSERTIONS -Os
-pipe -march=native -fdiagnostics-color=always -fexceptions -Wformat -fstack-clash-protection -I/usr/include/bullet -march=native -mtune=native -pthread -c strumpackwrap.cc -o strumpackwrap.o >/dev/null 2>&1
metiswrap.cc: In function ‘int mbdyn_METIS_PartGraph(int, int*, int*, int*, int*, int*, int, int*)’:
metiswrap.cc:75:10: error: cannot convert ‘int*’ to ‘idx_t*’ {aka ‘long int*’} in assignment
75 | xadj = pXadj;
| ^~~~~
| |
| int*
metiswrap.cc:76:12: error: cannot convert ‘int*’ to ‘idx_t*’ {aka ‘long int*’} in assignment
76 | adjncy = pAdjncy;
| ^~~~~~~
| |
| int*
metiswrap.cc:77:10: error: cannot convert ‘int*’ to ‘idx_t*’ {aka ‘long int*’} in assignment
77 | vwgt = pVertexWgts;
| ^~~~~~~~~~~
| |
| int*
metiswrap.cc:78:12: error: cannot convert ‘int*’ to ‘idx_t*’ {aka ‘long int*’} in assignment
78 | adjwgt = pCommWgts;
| ^~~~~~~~~
| |
| int*
metiswrap.cc:79:10: error: cannot convert ‘int*’ to ‘idx_t*’ {aka ‘long int*’} in assignment
79 | part = pParAmgProcs;
| ^~~~~~~~~~~~
| |
| int*
metiswrap.cc:129:22: error: cannot convert ‘int*’ to ‘idx_t*’ {aka ‘long int*’}
129 | METIS_PartGraphKway(&iTotVertices,
| ^~~~~~~~~~~~~
| |
| int*
In file included from metiswrap.cc:35:
/usr/include/metis.h:190:43: note: initializing argument 1 of ‘int METIS_PartGraphKway(idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, real_t*, real_t*, idx_t*, idx_t*, idx_t*)’
190 | METIS_API(int) METIS_PartGraphKway(idx_t *nvtxs, idx_t *ncon, idx_t *xadj,
| ~~~~~~~^~~~~
remake[2]: directory '/var/tmp/portage/sci-physics/mbdyn-1.7.3_p20210925/work/mbdyn-ae57618c4e7b030b59707b8c156a6e2a94a6efd0/libraries/libmbwrap'
remake[2]: *** [metiswrap.lo] error 1