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

TriBiTS must have version 3.23.0 or higher #612

Open
zhengqigao opened this issue Jul 30, 2024 · 6 comments
Open

TriBiTS must have version 3.23.0 or higher #612

zhengqigao opened this issue Jul 30, 2024 · 6 comments
Assignees

Comments

@zhengqigao
Copy link

When I do ./do-configure, I get the following error:

Make Error at tribits/core/common/TribitsConstants.cmake:17 (message):
  Error, TriBiTS must have version 3.23.0 or higher!
Call Stack (most recent call first):
  tribits/core/package_arch/TribitsProjectImpl.cmake:33 (tribits_asesrt_minimum_cmake_version)
  tribits/core/package_arch/TribitsProject.cmake:40 (include)
  tribits/TriBITS.cmake:27 (include)
  CMakeLists.txt:14 (include)

What might be the problem?

@bartlettroscoe
Copy link
Member

@zhengqigao, what version of CMake are you trying to use? When you run:

cmake --version

in your shell, what does it return?

@zhengqigao
Copy link
Author

3.18.0

@zhengqigao
Copy link
Author

Actually, I am installing Trilinos using Cmake. I manually change the CmakeList.txt in Trilinos to allow Cmake 3.18.0 and then compile Trilinos. But then it shows error:

cmake -DCMAKE_INSTALL_PREFIX=./build ./Trilinos
CMake Error at cmake/tribits/core/common/TribitsConstants.cmake:17 (message):
  Error, TriBiTS must have version 3.23.0 or higher!
Call Stack (most recent call first):
  cmake/tribits/core/package_arch/TribitsProjectImpl.cmake:33 (tribits_asesrt_minimum_cmake_version)
  cmake/tribits/core/package_arch/TribitsProject.cmake:40 (include)
  cmake/tribits/TriBITS.cmake:27 (include)
  CMakeLists.txt:30 (INCLUDE)

I guess I need to install TriBiTS first, but I failed with the error provided at the beginning of this post.

@bartlettroscoe
Copy link
Member

3.18.0

@zhengqigao, a CMake version 3.23.0 or higher is needed to build TriBITS or any project that uses TriBITS. It appears we may need to improve that error message some to make this more clear. I will put in a PR that does that.

@bartlettroscoe
Copy link
Member

@zhengqigao, here is the PR that should make this error message more clear:

Thanks for raising this issue!

@bartlettroscoe
Copy link
Member

Actually, I am installing Trilinos using Cmake. I manually change the CmakeList.txt in Trilinos to allow Cmake 3.18.0 and then compile Trilinos. But then it shows error:

@zhengqigao, you don't need to bother with TriBITS directly. Trilinos has its own snapshotted copy of TriBITS that is compatible with that version of Trilinos (see TriBITS directory snapshotting). (What version of Trilinos are you trying to build?)

bartlettroscoe added a commit that referenced this issue Jul 30, 2024
…rror

Provide better error message for tribits_asesrt_minimum_cmake_version() (#612)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants