`rustc_codegen_nvvm` fails to compile on nightly version of rust that is specified in the `rust-toolchain.toml`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 28/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- rust
- Ambito
- build-system, compilers
Direzione di ricerca
Inizia con rust-toolchain.toml e l’esempio vecadd, quindi riproduci il fallimento esterno di cargo build usando il nightly specificato. Confronta il codice sorgente pubblicato di rustc_codegen_nvvm 0.3.0, in particolare src/lib.rs, con la build del repository; il lavoro è completato quando un nuovo progetto copiato da vecadd viene compilato correttamente senza dipendere da un checkout all’interno del repository.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi there, I really like this project and want to see it succeed! Thank you for rebooting this, I'm sure I'll end up contributing once I get to grips with things a bit more :)
When doing cargo build in a new project which is simply a copy-paste of the vecadd example, I get this error:
Compiling rustc_codegen_nvvm v0.3.0
error[E0463]: can't find crate for `rustc_attr`
--> /home/ubuntu/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:10:1
|
10 | extern crate rustc_attr;
| ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
|
= help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
I also get a laundry list of a bunch of other errors, presumably as a result. Btw I'm using the latest rust-toolchain.toml that's in this repo.
I looked into the source code for rustc_codegen_nvvm, and it is still v0.3.0, but it doesn't have the line extern crate rustc_attr; anywhere. I assume this is as a result of the recent version bump of the nightly Rust dependency. Of course, I can clone this repo, the dev container works just fine, and the vecadd example builds fine when run in this repo, but the build broken when you don't build stuff directly inside this repo.
I think this issue could be solved with a simple version bump + push of the rustc_codegen_nvvm crate. Please could you do this? I'd really love to use this crate even in this early stage, but can't as a result of this.
Alternatively, could you provide the nightly rust version which would successfully compile this? I tried a few different options and various settings in the rust-toolchain.toml but couldn't get anything to work.
- Lingua principale
- Rust
- Stelle
- 5.4k
- Fork
- 251
- Merge medio
- 4g 15h
- PR unite (30g)
- 4
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Rust-GPU/rust-cuda
-
Default NvvmArch::Compute75 silently produces InvalidPtx on pre-Turing GPUs (Pascal/Maxwell/Volta)Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
-
Array parameters lose alignment metadata and ICE on >16 byte alignmentsForse già presa @Snehal-Reddy l’ha presa 165 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
Tutte le issue di Rust-GPU/rust-cuda
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
-
state:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
scanaislop/aislop#482 ·
I maintainer di solito rispondono entro 1 giorno
-
docs(skills): issue-first should reference an existing Linear ticket instead of filing a duplicateApertadocumentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
chatmail/core#8824 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno