KarypisLab/ParMETIS

bug happens at make stage

Sherler opened this issue · 1 comments

error report at make stage as if it could not find metis localtion, even if the prefix are the same or specify the metis path mannually

version:
centos: 7.8
gklib: latest
metis: 5.0.1

/root/pkgs/ParMETIS-dgl/libparmetis/initpart.c:77:14: error: ‘METIS_OPTION_NIPARTS’ undeclared (first use in this function); did you mean ‘METIS_OPTION_TPWGTS’?
     moptions[METIS_OPTION_NIPARTS] = 1;
              ^~~~~~~~~~~~~~~~~~~~
              METIS_OPTION_TPWGTS
/root/pkgs/ParMETIS-dgl/libparmetis/initpart.c:77:14: note: each undeclared identifier is reported only once for each function it appears in
/root/pkgs/ParMETIS-dgl/libparmetis/initpart.c:78:14: error: ‘METIS_OPTION_DROPEDGES’ undeclared (first use in this function); did you mean ‘METIS_OPTION_TPWGTS’?
     moptions[METIS_OPTION_DROPEDGES] = 1;
              ^~~~~~~~~~~~~~~~~~~~~~
              METIS_OPTION_TPWGTS
/root/pkgs/ParMETIS-dgl/libparmetis/initpart.c:79:14: error: ‘METIS_OPTION_ONDISK’ undeclared (first use in this function); did you mean ‘METIS_OPTION_CONTIG’?
     moptions[METIS_OPTION_ONDISK] = 1;
              ^~~~~~~~~~~~~~~~~~~
              METIS_OPTION_CONTIG
make[3]: *** [libparmetis/CMakeFiles/parmetis.dir/build.make:85: libparmetis/CMakeFiles/parmetis.dir/initpart.c.o] Error 1
make[3]: Leaving directory '/root/pkgs/ParMETIS-dgl/build/Linux-x86_64'
make[2]: *** [CMakeFiles/Makefile2:97: libparmetis/CMakeFiles/parmetis.dir/all] Error 2
make[2]: Leaving directory '/root/pkgs/ParMETIS-dgl/build/Linux-x86_64'
make[1]: *** [Makefile:120: all] Error 2
make[1]: Leaving directory '/root/pkgs/ParMETIS-dgl/build/Linux-x86_64'
make: *** [Makefile:62: all] Error 2

These are options that were recently introduced in Metis. Are you sure that you have installed the latest version from the github for Metis?