Open tjyang opened 5 months ago
Can you try building the c2rust version from this repo instead of the one on crates.io to check if the issue still happens on the master branch? It looks like there may be a problem picking up the cmake files for the version of LLVM that your host OS provides.
Hi @thedataking, Thanks for the response.
latest rocky9.3 only have llvm14.
[me@rocky9t01a c2rust]$ cargo build
<snipped
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /usr/lib64/libffi.so
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib64/libtinfo.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- Configuring incomplete, errors occurred!
See also "/home/me/github/learnrust/c2rust/target/debug/build/c2rust-ast-exporter-8e5ec6fbe6f94814/out/build/CMakeFiles/CMakeOutput.log".
--- stderr
CMake Error at /usr/lib64/cmake/clang/ClangConfig.cmake:10 (find_package):
Could not find a configuration file for package "LLVM" that exactly matches
requested version "16.0.6".
The following configuration files were considered but not accepted:
/usr/lib64/llvm14/lib/cmake/llvm/LLVMConfig.cmake, version: 14.0.5
Call Stack (most recent call first):
CMakeLists.txt:62 (find_package)
thread 'main' panicked at '
command did not execute successfully, got: exit status: 1
build script failed, must exit now', /home/me/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.50/src/lib.rs:1098:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
[me@rocky9t01a c2rust]$ git log -1
commit 21907d84a26490550e470eddbdf5f7d38ffebfe5 (HEAD -> master, origin/master, origin/HEAD)
Merge: 689653c0 209f4214
Author: Khyber Sen <kkysen@gmail.com>
Date: Mon Dec 11 15:41:19 2023 -0500
Fix nix build (#1047)
* fix #1045
[me@rocky9t01a c2rust]$
[me@rocky9t01a c2rust]$ sudo dnf search llvm1
Last metadata expiration check: 3:16:18 ago on Wed 13 Mar 2024 02:09:56 AM CDT.
======================================== Name Matched: llvm1 ========================================
llvm11.x86_64 : The Low Level Virtual Machine
llvm11-devel.x86_64 : Libraries and header files for LLVM
llvm11-doc.noarch : Documentation for LLVM
llvm11-libs.x86_64 : LLVM shared libraries
llvm11-static.x86_64 : LLVM static libraries
llvm12.x86_64 : The Low Level Virtual Machine
llvm12-devel.x86_64 : Libraries and header files for LLVM
llvm12-doc.noarch : Documentation for LLVM
llvm12-libs.x86_64 : LLVM shared libraries
llvm12-static.x86_64 : LLVM static libraries
llvm13.x86_64 : The Low Level Virtual Machine
llvm13-devel.x86_64 : Libraries and header files for LLVM
llvm13-doc.noarch : Documentation for LLVM
llvm13-libs.x86_64 : LLVM shared libraries
llvm13-static.x86_64 : LLVM static libraries
llvm14.x86_64 : The Low Level Virtual Machine
llvm14-devel.x86_64 : Libraries and header files for LLVM
llvm14-doc.noarch : Documentation for LLVM
llvm14-libs.x86_64 : LLVM shared libraries
llvm14-static.x86_64 : LLVM static libraries
[me@rocky9t01a c2rust]$
Hi please advise
-- error message