Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xtb's dependency hell #1120

Open
foxtran opened this issue Oct 26, 2024 · 0 comments
Open

xtb's dependency hell #1120

foxtran opened this issue Oct 26, 2024 · 0 comments
Assignees

Comments

@foxtran
Copy link
Contributor

foxtran commented Oct 26, 2024

xtb has multiple dependencies and those also have their own dependensies... Their versions are managed via subprojects/*.wrap files which are not unified between different deps sometimes.

To Reproduce

  1. clone xtb
  2. configure for example with cmake via command cmake -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_Fortran_COMPILER=gfortran
  3. run
   head -n 10 `find . -name "*.wrap" | rev | sort | rev | grep subprojects`

One will see something like:

==> ./subprojects/toml-f.wrap <==
[wrap-git]
directory = toml-f
url = https://github.com/toml-f/toml-f
revision = v0.4.1

==> ./build/_deps/s-dftd3-src/subprojects/toml-f.wrap <==
[wrap-git]
directory = toml-f
url = https://github.com/toml-f/toml-f
revision = v0.2.4

==> ./build/_deps/tblite-src/subprojects/toml-f.wrap <==
[wrap-git]
directory = toml-f
url = https://github.com/toml-f/toml-f
revision = v0.4.0

So, s-dftd3, tblite and xtb have different versions of toml-f. At build/_deps/toml-f-src, I have v0.4.0, not v0.4.1 or v0.2.4... So, it is not clear which version will be downloaded first :) I suppose for toml-f it is not so critical, but for dftd4 it is because old v3.4.0 was selected.

Expected behaviour
All deps must have the same version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants