`rustc_codegen_nvvm` fails to compile on nightly version of rust that is specified in the `rust-toolchain.toml`
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 28/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- rust
- Bereich
- build-system, compilers
Rechercherichtung
Beginne mit rust-toolchain.toml und dem vecadd-Beispiel und reproduziere dann den externen cargo build-Fehler mit dem angegebenen nightly. Vergleiche den veröffentlichten rustc_codegen_nvvm 0.3.0-Quellcode, insbesondere src/lib.rs, mit dem Build des Repositorys; als erledigt gilt die Aufgabe, wenn ein neues, aus vecadd kopiertes Projekt erfolgreich erstellt wird, ohne auf einen Checkout innerhalb des Repositorys angewiesen zu sein.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 5.4k
- Forks
- 251
- Ø Merge
- 30 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Rust-GPU/rust-cuda
-
`dynamic_shared_mem` overlaps a kernel's static shared memory (the extern symbol is declared with a size)Evtl. vergeben @shubhamkapoor01 hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Default NvvmArch::Compute75 silently produces InvalidPtx on pre-Turing GPUs (Pascal/Maxwell/Volta)Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
-
A `#[address_space(shared)]` static is stored with a generic `st.u32` instead of `st.shared`, corrupting memory — two identically-declared siblings lower differentlyEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
-
Array parameters lose alignment metadata and ICE on >16 byte alignmentsEvtl. vergeben @Snehal-Reddy hat das vor 180 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
Alle Issues in Rust-GPU/rust-cuda
Ähnliche Issues
-
desktop documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
vfarcic/dot-agent-deck#2008 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
pbakaus/impeccable#1210 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: ci priority: P4 ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
shep-pm/shep#1249 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
L: javascript
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
dependabot/dependabot-core#16744 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
nautechsystems/nautilus_trader#5486 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag