Package Details: parmetis-git r45.8ee6a37-2

Git Clone URL: https://aur.archlinux.org/parmetis-git.git (read-only, click to copy)
Package Base: parmetis-git
Description: Parallel Graph Partitioning and Fill-reducing Matrix Ordering (git version)
Upstream URL: https://github.com/KarypisLab/ParMETIS
Licenses: custom
Conflicts: parmetis
Provides: parmetis
Submitter: carlosal1015
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 3
Popularity: 0.89
First Submitted: 2023-07-31 19:11 (UTC)
Last Updated: 2025-05-19 17:13 (UTC)

Dependencies (4)

Required by (22)

Sources (1)

Latest Comments

envolution commented on 2025-05-19 04:12 (UTC)

Please add the following prepare() section:

prepare() {
  cd ${_base}
  sed -i 's|^CONFIG_FLAGS = .*|CONFIG_FLAGS = -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_POLICY_VERSION_MINIMUM=3.5|' Makefile
}

Due to the error during build():

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

LukeTheWalker commented on 2025-05-15 10:04 (UTC) (edited on 2025-05-15 10:04 (UTC) by LukeTheWalker)

In file included from /home/luca/Build/parmetis-git/src/ParMETIS/include/parmetis.h:18,
                 from /home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/./parmetislib.h:21,
                 from /home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/akwayfm.c:14:
/home/luca/Build/parmetis-git/src/ParMETIS/include/parmetis.h:24:5: error: missing binary operator before token ‘(’
   24 | #if IDXTYPEWIDTH == 32
      |     ^~~~~~~~~~~~
/home/luca/Build/parmetis-git/src/ParMETIS/include/parmetis.h:28:7: error: missing binary operator before token ‘(’
   28 | #elif IDXTYPEWIDTH == 64
      |       ^~~~~~~~~~~~
/home/luca/Build/parmetis-git/src/ParMETIS/include/parmetis.h:33:4: error: #error "Incorrect user-supplied value fo IDXTYPEWIDTH"
   33 |   #error "Incorrect user-supplied value fo IDXTYPEWIDTH"
      |    ^~~~~
/home/luca/Build/parmetis-git/src/ParMETIS/include/parmetis.h:42:4: error: #error "Incorrect user-supplied value fo REALTYPEWIDTH"
   42 |   #error "Incorrect user-supplied value fo REALTYPEWIDTH"
      |    ^~~~~
/home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/akwayfm.c: In function ‘libparmetis__KWayAdaptiveRefine’:
/home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/akwayfm.c:128:40: error: ‘IDX_T’ undeclared (first use in this function)
  128 |     gkMPI_Bcast((void *)pperm, nparts, IDX_T, 0, ctrl->comm);
      |                                        ^~~~~
/home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/akwayfm.c:128:40: note: each undeclared identifier is reported only once for each function it appears in
/home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/akwayfm.c:174:15: error: implicit declaration of function ‘rabs’; did you mean ‘fabs’? [-Wimplicit-function-declaration]
  174 |           if (rabs(nvwgt[h]-gnpwgts[from*ncon+h]) < SMALLFLOAT)
      |               ^~~~
      |               fabs
/home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/akwayfm.c:348:71: error: ‘REAL_T’ undeclared (first use in this function)
  348 |       gkMPI_Allreduce((void *)lnpwgts, (void *)pgnpwgts, nparts*ncon, REAL_T,
      |                                                                       ^~~~~~
In file included from /usr/include/GKlib.h:69,
                 from /home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/./parmetislib.h:20:
/home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/akwayfm.c:518:23: error: expected ‘)’ before ‘PRIDX’
  518 |                 "\t[%"PRIDX" %"PRIDX"], [%.4"PRREAL"],  [%"PRIDX" %"PRIDX" %"PRIDX" %"PRIDX"]\n",
      |                       ^~~~~
/home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/akwayfm.c:517:20: note: to match this ‘(’
  517 |             rprintf(ctrl,
      |                    ^
/home/luca/Build/parmetis-git/src/ParMETIS/libparmetis/akwayfm.c:622:37: error: expected ‘)’ before ‘PRIDX’
  622 |           rprintf(ctrl, "\t\tcut: %"PRIDX"\n", graph->mincut));
      |                  ~                  ^~~~~
make[3]: *** [libparmetis/CMakeFiles/parmetis.dir/build.make:82: libparmetis/CMakeFiles/parmetis.dir/akwayfm.c.o] Error 1
make[3]: Leaving directory '/home/luca/Build/parmetis-git/src/ParMETIS/build/Linux-x86_64'
make[2]: *** [CMakeFiles/Makefile2:167: libparmetis/CMakeFiles/parmetis.dir/all] Error 2
make[2]: Leaving directory '/home/luca/Build/parmetis-git/src/ParMETIS/build/Linux-x86_64'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/home/luca/Build/parmetis-git/src/ParMETIS/build/Linux-x86_64'
make: *** [Makefile:62: install] Error 2
==> ERROR: A failure occurred in package().
    Aborting...

weipeng1999 commented on 2024-12-09 01:35 (UTC)

Losing depend, this package need "gklib" to be built, please add it to depends.

comrad commented on 2024-11-15 09:21 (UTC)

At the moment parametis-git can not be compiled with metis. I created a metis-git (https://aur.archlinux.org/packages/metis-git) package instead to make it possible to do that.