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

doc: Point out common problem installing c2rust #20844

Merged

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented Aug 29, 2024

Contribution description

This is a simple doc update to point users in the right direction when they see something like:

  -- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES) 
  -- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES) 
  -- Configuring incomplete, errors occurred!

  --- stderr
  CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.


  CMake Error at /usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake:756 (message):
    The imported target "clangBasic" references the file

       "/usr/lib/llvm-14/lib/libclangBasic.a"

    but this file does not exist.  Possible reasons include:

    * The file was deleted, renamed, or moved to another location.

    * An install or uninstall procedure did not complete successfully.

    * The installation package was faulty and contained

       "/usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake"

    but not all the files it references.

  Call Stack (most recent call first):
    /usr/lib/cmake/clang-14/ClangConfig.cmake:19 (include)
    CMakeLists.txt:62 (find_package)


  thread 'main' panicked at /home/chrysn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.51/src/lib.rs:1100:5:

  command did not execute successfully, got: exit status: 1

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Testing procedure

Look at the documentation.

More context

After c2rust newer than 0.18 is released, cargo install c2rust without git should work -- but that may take some more time on the part of the maintainers (and while it worked until a few weeks ago, when both the published and the git version broke, I didn't even update the docs before).

@chrysn chrysn added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines Area: Rust Area: Rust wrapper labels Aug 29, 2024
@chrysn chrysn requested a review from miri64 August 29, 2024 12:40
@chrysn chrysn requested review from aabadie and jia200x as code owners August 29, 2024 12:40
@github-actions github-actions bot added the Area: doc Area: Documentation label Aug 29, 2024
@riot-ci
Copy link

riot-ci commented Aug 29, 2024

Murdock results

✔️ PASSED

ae0c942 doc: Point out common problem installing c2rust

Success Failures Total Runtime
1 0 1 01m:32s

Artifacts

@chrysn chrysn force-pushed the rust-c2rust-install-temporary branch from d935887 to ae0c942 Compare August 29, 2024 13:05
@chrysn
Copy link
Member Author

chrysn commented Aug 29, 2024

Documentation deep link: https://ci.riot-os.org/results/6d84459b90cd44cd94546f9328672afd/doc-preview/using-rust.html

Rebased onto master to avoid the sanity check. (I guess all old PRs will need to rebase or merge in master to continue…).

@chrysn chrysn added this pull request to the merge queue Aug 29, 2024
Merged via the queue into RIOT-OS:master with commit d469e6d Aug 29, 2024
26 checks passed
@chrysn chrysn deleted the rust-c2rust-install-temporary branch September 11, 2024 09:40
@benpicco benpicco added this to the Release 2024.10 milestone Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: doc Area: Documentation Area: Rust Area: Rust wrapper CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants