You are not logged in.

#1 2022-09-23 00:36:14

Terrior
Member
Registered: 2022-08-10
Posts: 10

AUR MPICH Not Building, OpenMPI throws errors

Hello, I have a question about mpich on the AUR (and additionally openmpi as well). When I use yay -S mpich, it builds for a while, but then I get this error:

  CC       sys/libucs_la-event_set.lo
  CC       sys/libucs_la-init.lo
In file included from ../../../../../modules/ucx/src/ucs/debug/debug.c:27:
../../../../../modules/ucx/src/ucs/debug/debug.c: In function ‘load_file’:
../../../../../modules/ucx/src/ucs/debug/debug.c:277:53: error: ‘PTR’ undeclared (first use in this function)
  277 |     symcount = bfd_read_minisymbols(file->abfd, 0, (PTR)&file->syms, &size);
      |                                                     ^~~
../../../../../modules/ucx/src/ucs/debug/debug.c:277:53: note: each undeclared identifier is reported only once for each function it appears in
  CC       sys/libucs_la-math.lo
make[5]: *** [Makefile:1541: debug/libucs_la-debug.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/home/terrior/.cache/yay/mpich/src/mpich-4.0.2/build/modules/ucx/src/ucs'
make[4]: *** [Makefile:1838: all-recursive] Error 1
make[4]: Leaving directory '/home/terrior/.cache/yay/mpich/src/mpich-4.0.2/build/modules/ucx/src/ucs'
make[3]: *** [Makefile:759: all-recursive] Error 1
make[3]: Leaving directory '/home/terrior/.cache/yay/mpich/src/mpich-4.0.2/build/modules/ucx'
make[2]: *** [Makefile:625: all] Error 2
make[2]: Leaving directory '/home/terrior/.cache/yay/mpich/src/mpich-4.0.2/build/modules/ucx'
make[1]: *** [Makefile:30211: all-recursive] Error 1
make[1]: Leaving directory '/home/terrior/.cache/yay/mpich/src/mpich-4.0.2/build'
make: *** [Makefile:7291: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
-> error making: mpich

Specifically, the error is that PTR is undeclared. It always fails in this spot, and there doesn't seem to be any resources online that could answer my question.

Alternatively, I'ved tried to use openmpi on the normal repository. That one builds, but using mpic++ causes a lot of errors, like _Range was not declared in this scope and _It was not declared in this scope, all while pointing to the files in /usr/include/c++/12.2.0/. I imagine there's some sort of environment issue going on here, I just need any implementation of MPI to work on my system.

Offline

#2 2022-09-23 08:01:03

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: AUR MPICH Not Building, OpenMPI throws errors

Offline

Board footer

Powered by FluxBB