You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cloned the Rust-CUDA and tried to compile examples/cuda/cpu/add using cargo run, having Rust nightly installed. The rust-toolchain file makes rustup install 1.59.0-nightly. However, the log-crate, which is required in version 0.4.25, needs Rust 1.60.0 or higher.
Changing the toolchain nightly-2022-04-07 leads to a similar error, where openssl-sys v0.9.104 needs 1.63.0 or higher.
Then, I removed the toolchain-file to just use the newest version of the rustc. The problem with the dependencies was solved, but the buildscript of rustc_codegen_nvvm nags about the target. In the buildscript I found this uncommented match arm
// NOTE(RDambrosio016): currently disabled because of weird issues with segfaults and building the C++ shim
// "x86_64-unknown-linux-gnu" => "linux-x86_64",
Is Linux basically not supported?
I removed the comment and tried again, this time getting a bunch of errors while trying to compile codegen_nvvm. Some of them where solved running rustup component add rust-src rustc-dev llvm-tools-preview. However, I'm stuck here now:
I still get the error that the extern crate rustc_attr could not be found, and the suggested solution is again to install the llvm tools, which I already did.
More importantly, I get 104 other errors like use rustc_codegen_ssa::traits::BaseTypeMethods;: no BaseTypeMethods in traits in crates/rustc_codegen_nvvm/src/abi.rs:9:5, which I have no idea how to solve.
Does anyone know how to resolve the issues?
The text was updated successfully, but these errors were encountered:
System: Alma Linux 8.10
CUDA: 12.6.3
I cloned the Rust-CUDA and tried to compile
examples/cuda/cpu/add
usingcargo run
, having Rust nightly installed. Therust-toolchain
file makes rustup install 1.59.0-nightly. However, thelog
-crate, which is required in version 0.4.25, needs Rust 1.60.0 or higher.Changing the toolchain
nightly-2022-04-07
leads to a similar error, whereopenssl-sys v0.9.104
needs 1.63.0 or higher.Then, I removed the toolchain-file to just use the newest version of the rustc. The problem with the dependencies was solved, but the buildscript of
rustc_codegen_nvvm
nags about the target. In the buildscript I found this uncommented match armIs Linux basically not supported?
I removed the comment and tried again, this time getting a bunch of errors while trying to compile codegen_nvvm. Some of them where solved running
rustup component add rust-src rustc-dev llvm-tools-preview
. However, I'm stuck here now:extern crate rustc_attr
could not be found, and the suggested solution is again to install the llvm tools, which I already did.use rustc_codegen_ssa::traits::BaseTypeMethods;: no BaseTypeMethods in traits
incrates/rustc_codegen_nvvm/src/abi.rs:9:5
, which I have no idea how to solve.Does anyone know how to resolve the issues?
The text was updated successfully, but these errors were encountered: