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

Can't get rust to work #108

Closed
trolando opened this issue Mar 23, 2024 · 3 comments
Closed

Can't get rust to work #108

trolando opened this issue Mar 23, 2024 · 3 comments
Labels
🔥 bug Something isn't working

Comments

@trolando
Copy link

Using EndeavourOS, based on Arch. Installed rust, used rustup default stable then cargo install --force cbindgen and I get this error:

-- Rust Toolchain: 
CMake Error at build/_deps/corrosion-src/cmake/FindRust.cmake:23 (message):
  Could not find toolchain ''

  Available toolchains:

    `stable-x86_64-unknown-linux-gnu`

Call Stack (most recent call first):
  build/_deps/corrosion-src/cmake/FindRust.cmake:449 (_findrust_failed)
  build/_deps/corrosion-src/cmake/Corrosion.cmake:63 (find_package)
  build/_deps/corrosion-src/CMakeLists.txt:73 (include)
@SSoelvsten SSoelvsten added the 🔥 bug Something isn't working label Mar 23, 2024
@SSoelvsten
Copy link
Owner

@nhusung , is this something to fix in your FFI or should I forward this onto Corrosion?

@nhusung
Copy link
Contributor

nhusung commented Mar 23, 2024

I tried to reproduce this issue in an ArchLinux Podman container but everything worked fine. Here are the commands I executed inside the container:

pacman -Syu git gcc cmake make automake autoconf rustup boost hwloc snappy bison flex
rustup default stable
export PATH="$HOME/.cargo/bin:$PATH"
cargo install cbindgen --force
git clone https://github.com/SSoelvsten/bdd-benchmark.git
cd bdd-benchmark
git submodule update --init --recursive
make build

@trolando could you please add details on your $PATH variable (echo $PATH and which cbindgen) and the way you installed rustup (via Pacman or as described on https://www.rust-lang.org/learn/get-started)? Which Rust version is installed on your system?

@trolando
Copy link
Author

I had to update the PATH variable indeed. While this is mentioned in the README, it could have been more explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔥 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants