Bug 281122 - science/abinit: fails writing a data file to disk due to version being set to UNKNOWN during configure
Summary: science/abinit: fails writing a data file to disk due to version being set to...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL: https://github.com/abinit/abinit/issu...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-29 09:52 UTC by Ramon
Modified: 2024-08-30 17:51 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ramon 2024-08-29 09:52:23 UTC
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.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2024-08-29 16:13:30 UTC
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
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2024-08-29 16:25:37 UTC
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
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2024-08-29 16:42:52 UTC
I take the above back:

--- !WARNING
src_file: m_hdr.F90
src_line: 3196
message: |
    Cannot find major.minor pattern in codvsn: UNKNOWN
...
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-08-30 17:51:51 UTC
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(-)