After pkg upgrade, abinit --version returns UNKNOWN. On a real calculation, the program will happily go through the optimization steps, but when it comes to writing a data file on disk, it aborts with the complaint "Cannot find major.minor pattern in codvsn: UNKNOWN". I have also compiled abinit from an updated ports tree and the behavior is exactly the same. I am using FreeBSD13.3-RELEASE-p5 GENERIC amd64 with the latest updates.
Hi Ramon, This looks like a regression that crept in with some of the updates. I've reported it upstream, and will also look into it myself. Thanks, Yuri
Hi Ramon, It looks like computation is successful when run under sudo. This succeeds for me: 1. cd /usr/ports/science/abinit 2. make patch 3. sudo bash 4. cd /usr/ports/science/abinit/work/abinit-10.0.7/tests/tutorial/Input 5. ABI_PSPDIR=/usr/ports/science/abinit/work/abinit-10.0.7/tests/Psps_for_tests abinit tpaw1_1.abi Maybe sudo can work for you as a temporary workaround until this problem is sorted out? Thanks, Yuri
I take the above back: --- !WARNING src_file: m_hdr.F90 src_line: 3196 message: | Cannot find major.minor pattern in codvsn: UNKNOWN ...
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1afb7cd5cdc7ba233f6960f1cec714333a4ec76c commit 1afb7cd5cdc7ba233f6960f1cec714333a4ec76c Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-08-30 16:23:38 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-08-30 17:50:55 +0000 science/abinit: Add MPI options; Fix run-time failures due to wrong version MPI options NOMPI MPICH OPENMPI are added, MPICH is a default. As it turned out, openmpi is also currently broken on FreeBSD due to failure to allocate shmem backing memory. The abinit failure to determine version is also fixed. It used UNKNOWN as version which caused run-time failure to save data. PR: 281122 Reported by: Ramon <rcuscoptc@gmail.com> (run-time failure due to UNKNOWN version) science/abinit/Makefile | 63 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 45 insertions(+), 18 deletions(-)