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

cmake build fail on Ubuntu 18.04 #137

Closed
tobdub-snce opened this issue Oct 12, 2021 · 3 comments
Closed

cmake build fail on Ubuntu 18.04 #137

tobdub-snce opened this issue Oct 12, 2021 · 3 comments
Assignees
Labels
bug fix added A fix was added to an unreleased branch
Milestone

Comments

@tobdub-snce
Copy link

  running: "cmake" "--build" "." "--target" "install" "--config" "Debug" "--parallel" "12"

  --- stderr
  fatal: not a git repository (or any of the parent directories): .git
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_ASM_COMPILER
      CMAKE_ASM_FLAGS
      CMAKE_CXX_COMPILER
      CMAKE_CXX_FLAGS


  Unknown argument --parallel
  Unknown argument 12
  Usage: cmake --build <dir> [options] [-- [native-options]]

cmake version 3.10.2.

Seems to be caused by cmake crate 0.1.46
Pinning cmake crate to "=0.1.45" in cargo.toml solved the issue.

@fpagliughi
Copy link
Contributor

Thanks! I will have a look.

@fpagliughi
Copy link
Contributor

fpagliughi commented Oct 14, 2021

Yes, this seems to be an issue with the Rust cmake crate. v0.1.46 apparently raised the minimum CMake version up to 3.12 which is newer than what's on Ubuntu 18.04.

It seems like the suggestion to stick with the crate v0.1.45 is the best solution, at least for now.

@fpagliughi fpagliughi self-assigned this Oct 14, 2021
@fpagliughi fpagliughi added the bug label Oct 14, 2021
@fpagliughi fpagliughi added this to the v0.10 milestone Oct 14, 2021
fpagliughi added a commit that referenced this issue Oct 14, 2021
@fpagliughi fpagliughi added the fix added A fix was added to an unreleased branch label Oct 14, 2021
@fpagliughi
Copy link
Contributor

This issue appears to still be outstanding despite several updates to the cmake crate since then. For now we will just keep that crate anchored at 0.1.45.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix added A fix was added to an unreleased branch
Projects
None yet
Development

No branches or pull requests

2 participants