opencoarrays-2.9.2 fails to build because of a dummy argument being renamed in GCC>=12; this was fixed in opencoarrays-2.9.3, see here: https://github.com/sourceryinstitute/OpenCoarrays/pull/746
I also had issues with failing tests, namely 7, 8, 9, 26, and 27. These failed after trying to free an invalid pointer and crashing. Looking through the test logs, there were other tests that incorrectly reported passing, because they managed to output "Test Passed" before trying to free an invalid pointer.
I finally managed to get the latest version (2.10.0) to build and pass all tests. The solution turned out to be rebuilding MPICH with CH3:nemesis as the communication device rather than the current default of CH4:UCX. I don't know if this is a bug in MPICH or opencoarrays, or just a simple incompatibility.
Pinned Comments
physkets commented on 2019-03-19 05:35 (UTC) (edited on 2019-03-19 06:07 (UTC) by physkets)
The package compiles specifically using MPICH executables as placed by its AUR package. If you've modified that, you will have to make appropriate changes in the PKGBUILD.
If you have any compilers other than GCC installed, take care to check your PATH environment variable to ensure that '/usr/bin' has higher priority, before building this package. (You'll also have to have done this while installing mpich)
To use OpenCoarrays, do: