Open boegel opened 4 weeks ago
It seems like #1072 probably fixes this, but that doesn't change that anyone trying to build xtb 6.7.1 will be hitting this problem...
How can we prevent similar situations going forward?
The error is somewhat expected because xtb
fetches always the latest commit of tblite
(as defined here: https://github.com/grimme-lab/xtb/blob/main/subprojects/tblite.wrap). A solution for the future would be either i) more regular tblite
releases so that we could always point to a fixed release, or ii) we try to point to a specific commit (but not sure if that's possible. The fact that tblite
updates break the API probably can't be ruled out in the future.
Btw, the statically linked release binaries are not affected in general.
Another alternativ is building xtb-light
(see CI and Docs for instructions) which does not include the tblite
dependency (depending on your needs).
@marcelmbn Thanks for the reply.
I also noticed that the latest head
of tblite
is automatically pulled in, which of course inevitably leads to a broken build at some point.
That's also my main motivation for reporting this particular build problem. Although it's relatively easy to fix this time (thanks to the changes in #1072), it's bound to happen again, and frankly it's a bit worrying that the from-source build of xtb
is not reproducible over time.
I hope that xtb
can at least go forward with downloading specific versions/commits of dependencies like tblite
, so builds are reproducible going forward.
What would be even better is if there's a (documented) way of "seeding in" specific versions of these dependencies, so that they're not being downloaded on the fly during the build (which makes offline building impossible).
Is the latter already possible somehow, can the downloading of dependencies be avoided somehow?
What would be even better is if there's a (documented) way of "seeding in" specific versions of these dependencies, so that they're not being downloaded on the fly during the build (which makes offline building impossible).
Is the latter already possible somehow, can the downloading of dependencies be avoided somehow?
The dependencies are downloaded during the setup of the build meson setup ...
because meson
expects them to be there but does not find them. Not sure if that is exactly what you mean, but it can of course be simply circumvented by setting up the build at one given point of time then make changes to the code and meson compile
whenever necessary. Then, dependencies won't be downloaded again, but only if you delete them by rm -rf subprojects
or similar.
@marcelmbn Thanks for the reply.
I also noticed that the latest
head
oftblite
is automatically pulled in, which of course inevitably leads to a broken build at some point.That's also my main motivation for reporting this particular build problem. Although it's relatively easy to fix this time (thanks to the changes in #1072), it's bound to happen again, and frankly it's a bit worrying that the from-source build of
xtb
is not reproducible over time.I hope that
xtb
can at least go forward with downloading specific versions/commits of dependencies liketblite
, so builds are reproducible going forward.
Definitely agree with that! I will leave the issue open and ASAP introduce a specific commit/tag/release into the tblite
dependency so that we always pull the same code and only update it with more recent xtb
versions.
Maybe also something to have in mind for you, @Albkat
Describe the bug
compilation of
xtb
6.7.1 is failing with GCC 12.3.0 is failing with:To Reproduce
Expected behaviour
Compilation works (as it did before).
Additional context
Same problem with xtb 6.7.0, which we know worked fine before, it start of failing all of a sudden, probably because
xtb
downloads the latest version oftblite
and due to https://github.com/tblite/tblite/pull/188, see also https://github.com/easybuilders/easybuild-easyconfigs/issues/21243.Can we somehow prevent that
xtb
downloads whatever the latest version oftblite
(or others) is, which makes the build essentially not reproducible?