Repository navigation
Closed
Labels
unconfirmedThis report has not yet been confirmed by the developers
Description
Hi guys, thanks for the nice code!
Describe the bug
The final structure: section of the xtb output is mangled in the current main branch version:
================
final structure:
================
20
xtb: 6.7.1 (2b5cd48)
C 0.23214922887247 -1.39278257913795 -0.00000000000000
\00\00\00\00 1.28957114206430 -0.47878688145614 -0.00000000000000
\C0U^@ 1.06669387509307 0.88062922664888 -0.00000000000000
\00\00\00\00 -0.23214922887246 1.39278257913795 -0.00000000000000
\00\00\00\00 -1.28957114206430 0.47878688145614 -0.00000000000000
\00\00\00\00 -1.06669387509306 -0.88062922664888 -0.00000000000000
\C0U^@ 2.30536392276090 -0.85043208728081 0.00000000000000
\00\00\00\00 1.91122902064848 1.55264622868467 0.00000000000000
\00\00\00\00 -2.30536392276090 0.85043208728081 -0.00000000000001
@�\00\00 -1.91122902064848 -1.55264622868467 -0.00000000000000
\00\00\00\00 -0.53042460833023 2.81781528904524 0.00000000000001
�\00\00\00 0.34639804333816 3.81557171269986 0.00000000000001
\00\00\00\00 -1.58834764733158 3.05388350343584 -0.00000000000000
\00\00\00\00 0.02454615007613 4.84276516330775 -0.00000000000001
\00**" 1.41113387950543 3.65666067211329 -0.00000000000001
\A7b+P 0.53042460833023 -2.81781528904524 0.00000000000000
\A7b+P -0.34639804333816 -3.81557171269985 0.00000000000000
@Q\B6' 1.58834764733158 -3.05388350343584 0.00000000000000
\00\00\00\00 -0.02454615007613 -4.84276516330774 0.00000000000000
�\00\00\00 -1.41113387950543 -3.65666067211328 -0.00000000000000
This seems to be present wherever the structure is printed, including xtbopt.log, xtbopt.xyz, and xtbtopo.mol.
Interestingly, running with --verbose changes the output to:
================
final structure:
================
20
xtb: 6.7.1 (2b5cd48)
C 0.23214923676729 -1.39278257935656 0.00000000000000
\00\00\00\00 1.28957114604601 -0.47878687759008 0.00000000000000
\00\00\00\00 1.06669386809846 0.88062922982347 0.00000000000000
\00\00\00\00 -0.23214923676729 1.39278257935656 0.00000000000000
,\E1\E7a -1.28957114604601 0.47878687759008 0.00000000000000
�Z,y -1.06669386809846 -0.88062922982347 0.00000000000000
\00\00\00\00 2.30536393225329 -0.85043206815141 0.00000000000000
\00\00\00\00 1.91122900904010 1.55264623786210 0.00000000000000
\00\00\00\00 -2.30536393225329 0.85043206815141 -0.00000000000000
\00\00\00\00 -1.91122900904009 -1.55264623786210 -0.00000000000000
\00\00\00\00 -0.53042461461963 2.81781528915626 -0.00000000000000
\00\00\00\00 0.34639804639102 3.81557170254606 -0.00000000000000
\00\00\00\00 -1.58834765287332 3.05388350708608 -0.00000000000000
\00\00\00\00 0.02454616857765 4.84276515911555 -0.00000000000000
\00\00\00\00 1.41113388014688 3.65666064604276 -0.00000000000000
\00\00\00\00 0.53042461461963 -2.81781528915625 0.00000000000000
���\00 -0.34639804639102 -3.81557170254606 0.00000000000000
ssia 1.58834765287332 -3.05388350708608 0.00000000000000
te t -0.02454616857765 -4.84276515911555 -0.00000000000000
tion -1.41113388014688 -3.65666064604275 -0.00000000000001
Which appears to be partially repeating the output from the previous timing section at the end:
ANCopt (total) 0 d, 0 h, 0 min, 0.139 sec
optimizer setup ... 0 min, 0.000 sec ( 0.029%)
model hessian ... 0 min, 0.001 sec ( 0.912%)
ANC generation ... 0 min, 0.001 sec ( 0.454%)
coordinate transformation ... 0 min, 0.000 sec ( 0.022%)
single point calculation ... 0 min, 0.136 sec ( 97.758%)
optimization log ... 0 min, 0.001 sec ( 0.397%)
hessian update ... 0 min, 0.000 sec ( 0.024%)
rational function ... 0 min, 0.000 sec ( 0.259%)
Perhaps a coincidence, but it looks like hessian, update, rational and function?
To Reproduce
Steps to reproduce the behaviour:
- Pull latest git version (6.7.1 (2b5cd48)) and build with meson, gfortran & oblas (CentOS 8)
- Draw a structure
- run
xtb dvb_opt.xyz --opt --verbose > dvb_opt.out
Example: dvb_opt.zip
Expected behaviour
The atoms should be printed.
Additional context
Doesn't seem to be limited to just opts.
Metadata
Metadata
Assignees
Labels
unconfirmedThis report has not yet been confirmed by the developers
Activity
alan-arnold commentedon Jul 20, 2026
Same behaviour with bleeding edge 6.7.1 (b31754b) built with conda, gfortran & openblas (AArch64 VMWare 26/Ubuntu 26.04)
TyBalduf commentedon Aug 5, 2026
It seems to trace back to this commit, which introduced deferred length character arrays in various mctc types: bca336b
But the code there seems valid and I believe this is a bug in particular versions of gfortran. I can reproduce the issue with gfortran 11.3, but it works fine with gfortran 14.4 and 16.1.
@alan-arnold @oliver-s-lee what version of gfortran did you use to compile. I expect just using a newer version will resolve the issue, but I haven't narrowed down where this was fixed between 11.3 and 14.4.
TyBalduf commentedon Aug 5, 2026
This seems to be related to the issue seen in #1380, which was believed to still be present up through gcc 12. A proposed fixed for gfortran 12.2 didn't seem to resolve the issue for the affected user.
A related problem with gfortran 13.4 was reported here: #1326
So I think the easiest short term fix is to update to at least gfortran version 14. If there is a need to build with older gfortran versions, a workaround could potentially be found. But this ultimately seems to be a compiler bug rather than an issue with the xTB code itself.
oliver-s-lee commentedon Aug 6, 2026
Hi TyBalduf, thanks for looking into this!
My build was on GCC version 11.2.1, so this could indeed be the problem. Unfortunately I don't think there are readily available runtimes for these modern fortran versions on older operating systems (although please do correct me if I'm wrong). I'm compiling on CentOS 8 which is still a very common vintage for computational servers, so it would be great to get a workaround for older fortran if possible.
TyBalduf commentedon Aug 6, 2026
Looking more into #1292, it seems like it just needs one additional update to resolve this issue. @oliver-s-lee In the immediate short term, you can work from that branch and add the proposed update and that should resolve it.
But I'll see if the maintainers can get that branch updated and merged.
thfroitzheim commentedon Sep 11, 2026
Is this now fixed after #1292 is merged?