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

Something wrong in rust code... #78

Open
samrrr opened this issue Apr 27, 2023 · 5 comments
Open

Something wrong in rust code... #78

samrrr opened this issue Apr 27, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@samrrr
Copy link

samrrr commented Apr 27, 2023

Describe the bug
Red lines on try launch. Dont know what this things mean.
cargo run --bin view --release

[2023-04-28 00:56:59][kajiya_backend::rust_shader_compiler][ERROR] Failed to build Rust-GPU shaders. Falling back to the previously compiled ones. Error: Shader builder failed:

   Compiling rustc_codegen_spirv v0.4.0-alpha.12 (https://github.com/EmbarkStudios/rust-gpu?rev=b692ab5afc7fbdb4599b42ab3e0328dc7e8e0e97#b692ab5a)
error[E0463]: can't find crate for `rustc_ast`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:111:1    |
111 | extern crate rustc_ast;
    | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_attr`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:112:1    |
112 | 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`

error[E0463]: can't find crate for `rustc_codegen_ssa`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:113:1    |
113 | extern crate rustc_codegen_ssa;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_data_structures`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:114:1    |
114 | extern crate rustc_data_structures;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:115:1    |
115 | extern crate rustc_driver;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_errors`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:116:1    |
116 | extern crate rustc_errors;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_hir`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:117:1    |
117 | extern crate rustc_hir;
    | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_index`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:118:1    |
118 | extern crate rustc_index;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_interface`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:119:1    |
119 | extern crate rustc_interface;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_middle`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:120:1    |
120 | extern crate rustc_middle;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_session`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:121:1    |
121 | extern crate rustc_session;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_span`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:122:1    |
122 | extern crate rustc_span;
    | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_target`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:123:1    |
123 | extern crate rustc_target;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
    |
    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0432]: unresolved imports `std::lazy`, `IntPredicate::*`, `RealPredicate::*`, `AtomicRmwBinOp::*`
    --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:1432:13
     |
1432 |         use IntPredicate::*;
     |             ^^^^^^^^^^^^^^^
...
1634 |         use RealPredicate::*;
     |             ^^^^^^^^^^^^^^^^
...
2001 |         use AtomicRmwBinOp::*;
     |             ^^^^^^^^^^^^^^^^^
     |
    ::: C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\spirv_type.rs:15:10
     |
15   | use std::lazy::SyncLazy;
     |          ^^^^ could not find `lazy` in `std`

error: cannot determine resolution for the macro `bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\abi.rs:84:33
   |
84 |             Entry::Vacant(_) => bug!("RecursivePointeeCache::end should always have entry"),
   |                                 ^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\abi.rs:106:21
    |
106 |                     bug!("RecursivePointeeCache::end defined pointer twice")
    |                     ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\abi.rs:398:18
    |
398 |         other => bug!("scalar_pair_element_backend_type invalid abi: {:?}", other),
    |                  ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\abi.rs:475:18
    |
475 |             _ => bug!("Pointer is not `&T`, `*T` or `fn` pointer: {:#?}", layout),
    |                  ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\abi.rs:517:9    |
517 |         bug!(
    |         ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\abi.rs:527:35
    |
527 |         FieldsShape::Primitive => bug!(
    |                                   ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\abi.rs:632:17
    |
632 |                 bug!("Variants::Multiple not TyKind::Adt");
    |                 ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
    --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:2169:22
     |
2169 |                 _ => bug!(
     |                      ^^^
     |
     = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
    --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:2175:18
     |
2175 |             _ => bug!(
     |                  ^^^
     |
     = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
    --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:2188:17
     |
2188 |                 bug!(
     |                 ^^^
     |
     = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\intrinsics.rs:37:22
   |
37 |             other => bug!(
   |                      ^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\intrinsics.rs:52:18
   |
52 |             _ => bug!("copysign must have width 32 or 64, not {}", width),
   |                  ^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\intrinsics.rs:76:18
   |
76 |             _ => bug!("expected fn item type, found {}", callee_ty),
   |                  ^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
    --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\spirv_asm.rs:1055:17
     |
1055 |                 bug!("should be handled by parse_operands");
     |                 ^^^
     |
     = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
    --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\spirv_asm.rs:1354:35
     |
1354 |                 Token::Word(_) => bug!(),
     |                                   ^^^
     |
     = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder_spirv.rs:76:35
   |
76 | ...                   ty => bug!("load called on value that wasn't a pointer: {:?}", ty),
   |                             ^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder_spirv.rs:466:9
    |
466 |         bug!("Function not found: {}", id);
    |         ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder_spirv.rs:699:9
    |
699 |         bug!("Block not found: {}", id);
    |         ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\constant.rs:418:47
    |
418 |                     unsupported_spirv_type => bug!(
    |                                               ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\declare.rs:68:22
   |
68 |             other => bug!("fn_abi type {}", other.debug(function_type, self)),
   |                      ^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\declare.rs:286:22
    |
286 |                 _ => bug!(),
    |                      ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `span_bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\type_.rs:24:13
   |
24 |             span_bug!(span, "failed to get layout for `{}`: {}", ty, err)
   |             ^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `span_bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\type_.rs:44:21
   |
44 |                     span_bug!(
   |                     ^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `span_bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\type_.rs:56:21
   |
56 |                     span_bug!(
   |                     ^^^^^^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\type_.rs:112:17
    |
112 |                 bug!("backend_field_index({:?}): not applicable", layout);
    |                 ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\type_.rs:118:17
    |
118 |                 bug!("backend_field_index({:?}): not applicable", layout)
    |                 ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\link.rs:43:13   |
43 |             bug!(
   |             ^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\link.rs:540:13
    |
540 |             bug!("Linker errored, but no error reported")
    |             ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\link.rs:558:13
    |
558 |             bug!("TODO: Implement whatever the heck this is");
    |             ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
   --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\linker\duplicates.rs:161:30
    |
161 |                         _ => bug!(),
    |                              ^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

error: cannot determine resolution for the macro `bug`
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\linker\peephole_opts.rs:32:22
   |
32 |                 _ => bug!(),
   |                      ^^^
   |
   = note: import resolution is stuck, try simplifying macro imports

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:18:1
   |
18 | #![feature(rustc_private)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:19:1
   |
19 | #![feature(assert_matches)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:20:1
   |
20 | #![feature(once_cell)]
   | ^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:19:12
   |
19 | #![feature(assert_matches)]
   |            ^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\nikit\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:20:12
   |
20 | #![feature(once_cell)]
   |            ^^^^^^^^^

Some errors have detailed explanations: E0432, E0463, E0554.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `rustc_codegen_spirv` due to 50 previous errors

To Reproduce
Steps to reproduce the behavior:
Dont know.

Expected behavior
Program run with no errors.

Screenshots
image

Device:

  • OS: Win 10

Additional context

@samrrr samrrr added the bug Something isn't working label Apr 27, 2023
@krupitskas
Copy link

"Maybe you need to install the missing components with: rustup component add rust-src rustc-dev llvm-tools-preview"
Try this.

But personally, I also have some rust-gpu fun in the log.

[2023-05-30 19:28:25][kajiya_backend::rust_shader_compiler][INFO] Building Rust-GPU shaders in the background...
[2023-05-30 19:28:26][kajiya_backend::rust_shader_compiler][ERROR] Failed to build Rust-GPU shaders. Falling back to the previously compiled ones. Error: Shader builder failed:

   Compiling rustc_codegen_spirv v0.4.0-alpha.12 (https://github.com/EmbarkStudios/rust-gpu?rev=b692ab5afc7fbdb4599b42ab3e0328dc7e8e0e97#b692ab5a)
error[E0432]: unresolved import `rustc_errors::ErrorReported`
 --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\abi.rs:9:5
  |
9 | use rustc_errors::ErrorReported;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ErrorReported` in the root

error[E0432]: unresolved import `rustc_hir::intravisit::NestedVisitorMap`
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\attr.rs:11:35
   |
11 | use rustc_hir::intravisit::{self, NestedVisitorMap, Visitor};
   |                                   ^^^^^^^^^^^^^^^^ no `NestedVisitorMap` in `intravisit`

error[E0432]: unresolved import `rustc_hir::LlvmInlineAsmInner`
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\spirv_asm.rs:15:5
   |
15 | use rustc_hir::LlvmInlineAsmInner;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `LlvmInlineAsmInner` in the root

error[E0432]: unresolved import `rustc_middle::mir::interpret::ScalarMaybeUninit`
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\constant.rs:10:51
   |
10 |     alloc_range, Allocation, GlobalAlloc, Scalar, ScalarMaybeUninit,
   |                                                   ^^^^^^^^^^^^^^^^^ no `ScalarMaybeUninit` in `mir::interpret`

error[E0432]: unresolved import `rustc_middle::ty::TyS`
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\mod.rs:27:81
   |
27 | use rustc_middle::ty::{Instance, ParamEnv, PolyExistentialTraitRef, Ty, TyCtxt, TyS};
   |                                                                                 ^^^
   |                                                                                 |
   |                                                                                 no `TyS` in `ty`
   |                                                                                 help: a similar name exists in the module: `Ty`

error[E0432]: unresolved import `rustc_codegen_ssa::METADATA_FILENAME`
 --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\link.rs:9:52
  |
9 | use rustc_codegen_ssa::{CodegenResults, NativeLib, METADATA_FILENAME};
  |                                                    ^^^^^^^^^^^^^^^^^ no `METADATA_FILENAME` in the root

error[E0432]: unresolved import `rustc_errors::ErrorReported`
 --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\linker\import_export_link.rs:5:5
  |
5 | use rustc_errors::ErrorReported;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ErrorReported` in the root

error[E0432]: unresolved import `rustc_errors::ErrorReported`
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\linker\mod.rs:24:5
   |
24 | use rustc_errors::ErrorReported;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ErrorReported` in the root

error[E0432]: unresolved import `std::lazy`
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\spirv_type.rs:15:10
   |
15 | use std::lazy::SyncLazy;
   |          ^^^^ could not find `lazy` in `std`

error[E0432]: unresolved import `rustc_ast::ast::Lit`
 --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\symbols.rs:4:33
  |
4 | use rustc_ast::ast::{Attribute, Lit, LitIntType, LitKind, NestedMetaItem};
  |                                 ^^^ no `Lit` in `ast`
  |
  = help: consider importing one of these items instead:
          crate::symbols::NestedMetaItem::Lit
          rustc_ast::ExprKind::Lit
          rustc_ast::ExprPrecedence::Lit
          rustc_ast::NestedMetaItem::Lit
          rustc_ast::PatKind::Lit
          rustc_ast::token::Lit
          rustc_hir::ExprKind::Lit
          rustc_hir::Lit
          rustc_hir::PatKind::Lit
          syn::Expr::Lit
          syn::Lit
          syn::NestedMeta::Lit

error[E0432]: unresolved import `rustc_errors::ErrorReported`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:169:20
    |
169 | use rustc_errors::{ErrorReported, FatalError, Handler};
    |                    ^^^^^^^^^^^^^ no `ErrorReported` in the root

error[E0432]: unresolved import `rustc_middle::middle::cstore`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:171:27
    |
171 | use rustc_middle::middle::cstore::EncodedMetadata;
    |                           ^^^^^^ could not find `cstore` in `middle`

error[E0407]: method `build_sibling_block` is not a member of trait `BuilderMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:506:5
    |
506 |       fn build_sibling_block(&mut self, _name: &str) -> Self {
    |       ^  ------------------- help: there is an associated function with a similar name: `append_sibling_block`
    |  _____|
    | |
507 | |         let mut builder = self.emit_with_cursor(BuilderCursor {
508 | |             function: self.cursor.function,
509 | |             block: None,
...   |
522 | |         }
523 | |     }
    | |_____^ not a member of trait `BuilderMethods`

error[E0407]: method `dynamic_alloca` is not a member of trait `BuilderMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:837:5
    |
837 | /     fn dynamic_alloca(&mut self, ty: Self::Type, align: Align) -> Self::Value {
838 | |         let result = self.alloca(ty, align);
839 | |         self.err("dynamic alloca is not supported yet");
840 | |         result
841 | |     }
    | |_____^ not a member of trait `BuilderMethods`

error[E0407]: method `array_alloca` is not a member of trait `BuilderMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:843:5
    |
843 | /     fn array_alloca(&mut self, _ty: Self::Type, _len: Self::Value, _align: Align) -> Self::Value {
844 | |         self.fatal("array alloca not supported yet")
845 | |     }
    | |_____^ not a member of trait `BuilderMethods`

error[E0407]: method `landing_pad` is not a member of trait `BuilderMethods`
    --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:1886:5
     |
1886 | /     fn landing_pad(
1887 | |         &mut self,
1888 | |         _ty: Self::Type,
1889 | |         _pers_fn: Self::Value,
...    |
1892 | |         todo!()
1893 | |     }
     | |_____^ not a member of trait `BuilderMethods`

error[E0407]: method `set_cleanup` is not a member of trait `BuilderMethods`
    --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:1895:5
     |
1895 | /     fn set_cleanup(&mut self, _landing_pad: Self::Value) {
1896 | |         todo!()
1897 | |     }
     | |_____^ not a member of trait `BuilderMethods`

error[E0407]: method `add_handler` is not a member of trait `BuilderMethods`
    --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\builder_methods.rs:1932:5
     |
1932 | /     fn add_handler(&mut self, _catch_switch: Self::Value, _handler: Self::BasicBlock) {
1933 | |         todo!()
1934 | |     }
     | |_____^ not a member of trait `BuilderMethods`

error[E0407]: method `sideeffect` is not a member of trait `IntrinsicCallMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\intrinsics.rs:362:5
    |
362 | /     fn sideeffect(&mut self) {
363 | |         // TODO: This is currently ignored.
364 | |         // It corresponds to the llvm.sideeffect intrinsic - does spir-v have an equivalent?
365 | |     }
    | |_____^ not a member of trait `IntrinsicCallMethods`

error[E0407]: method `codegen_llvm_inline_asm` is not a member of trait `AsmBuilderMethods`
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\spirv_asm.rs:34:5
   |
34 |       fn codegen_llvm_inline_asm(
   |       ^  ----------------------- help: there is an associated function with a similar name: `codegen_inline_asm`
   |  _____|
   | |
35 | |         &mut self,
36 | |         _: &LlvmInlineAsmInner,
37 | |         _: Vec<PlaceRef<'tcx, Self::Value>>,
...  |
42 | |         true
43 | |     }
   | |_____^ not a member of trait `AsmBuilderMethods`

error[E0407]: method `apply_attrs_callsite` is not a member of trait `AbiBuilderMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\mod.rs:342:5
    |
342 |     fn apply_attrs_callsite(&mut self, _fn_abi: &FnAbi<'tcx, Ty<'tcx>>, _callsite: Self::Value) {}
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `AbiBuilderMethods`

error[E0407]: method `used_statics` is not a member of trait `MiscMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\mod.rs:561:5
    |
561 | /     fn used_statics(&self) -> &RefCell<Vec<Self::Value>> {
562 | |         todo!()
563 | |     }
    | |_____^ not a member of trait `MiscMethods`

error[E0407]: method `compiler_used_statics` is not a member of trait `MiscMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\mod.rs:565:5
    |
565 | /     fn compiler_used_statics(&self) -> &RefCell<Vec<Self::Value>> {
566 | |         todo!()
567 | |     }
    | |_____^ not a member of trait `MiscMethods`

error[E0407]: method `create_used_variable` is not a member of trait `MiscMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\mod.rs:577:5
    |
577 | /     fn create_used_variable(&self) {
578 | |         todo!()
579 | |     }
    | |_____^ not a member of trait `MiscMethods`

error[E0407]: method `create_compiler_used_variable` is not a member of trait `MiscMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\mod.rs:581:5
    |
581 | /     fn create_compiler_used_variable(&self) {
582 | |         todo!()
583 | |     }
    | |_____^ not a member of trait `MiscMethods`

error[E0407]: method `create_vtable_metadata` is not a member of trait `DebugInfoMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\mod.rs:591:5
    |
591 | /     fn create_vtable_metadata(&self, _ty: Ty<'tcx>, _vtable: Self::Value) {
592 | |         // Ignore.
593 | |     }
    | |_____^ not a member of trait `DebugInfoMethods`

error[E0726]: implicit elided lifetime not allowed here
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\mod.rs:655:12
    |
655 | impl<'tcx> AsmMethods for CodegenCx<'tcx> {
    |            ^^^^^^^^^^ expected lifetime parameter
    |
help: indicate the anonymous lifetime
    |
655 | impl<'tcx> AsmMethods<'_> for CodegenCx<'tcx> {
    |                      ++++

error[E0437]: type `Context` is not a member of trait `WriteBackendMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:386:5
    |
386 |     type Context = ();
    |     ^^^^^^^^^^^^^^^^^^ not a member of trait `WriteBackendMethods`

error[E0407]: method `run_lto_pass_manager` is not a member of trait `WriteBackendMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:474:5
    |
474 | /     fn run_lto_pass_manager(
475 | |         _: &CodegenContext<Self>,
476 | |         _: &ModuleCodegen<Self::Module>,
477 | |         _: &ModuleConfig,
...   |
480 | |         todo!()
481 | |     }
    | |_____^ not a member of trait `WriteBackendMethods`

error[E0407]: method `new_metadata` is not a member of trait `ExtraBackendMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:485:5
    |
485 | /     fn new_metadata(&self, _: TyCtxt<'_>, _: &str) -> Self::Module {
486 | |         Self::Module::new()
487 | |     }
    | |_____^ not a member of trait `ExtraBackendMethods`

error[E0407]: method `write_compressed_metadata` is not a member of trait `ExtraBackendMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:489:5
    |
489 | /     fn write_compressed_metadata<'tcx>(
490 | |         &self,
491 | |         _: TyCtxt<'tcx>,
492 | |         _: &EncodedMetadata,
...   |
495 | |         // Ignore for now.
496 | |     }
    | |_____^ not a member of trait `ExtraBackendMethods`

error[E0407]: method `target_cpu` is not a member of trait `ExtraBackendMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:581:5
    |
581 | /     fn target_cpu<'b>(&self, _: &'b Session) -> &'b str {
582 | |         todo!()
583 | |     }
    | |_____^ not a member of trait `ExtraBackendMethods`

error[E0407]: method `tune_cpu` is not a member of trait `ExtraBackendMethods`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:585:5
    |
585 | /     fn tune_cpu<'b>(&self, _: &'b Session) -> Option<&'b str> {
586 | |         None
587 | |     }
    | |_____^ not a member of trait `ExtraBackendMethods`

error[E0532]: expected unit struct, unit variant or constant, found tuple variant `Primitive::Pointer`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\abi.rs:433:9
    |
433 |         Primitive::Pointer => {
    |         ^^^^^^^^^^^^^^^^^^
   --> C:\Users\ichbi\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\compiler\rustc_abi\src\lib.rs:870:5
    |
    = note: `Primitive::Pointer` defined here
    |
help: use the tuple variant pattern syntax instead
    |
433 |         Primitive::Pointer(/* fields */) => {
    |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: consider importing one of these items instead
    |
4   | use crate::sym::Pointer;
    |
4   | use rustc_ast::FormatTrait::Pointer;
    |
4   | use rustc_codegen_ssa::common::TypeKind::Pointer;
    |
4   | use rustc_span::sym::Pointer;
    |
help: if you import `Pointer`, refer to it directly
    |
433 -         Primitive::Pointer => {
433 +         Pointer => {
    |

error[E0532]: expected unit struct, unit variant or constant, found tuple variant `Primitive::Pointer`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\constant.rs:249:21
    |
249 |                     Primitive::Pointer => {
    |                     ^^^^^^^^^^^^^^^^^^
   --> C:\Users\ichbi\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\compiler\rustc_abi\src\lib.rs:870:5
    |
    = note: `Primitive::Pointer` defined here
    |
help: use the tuple variant pattern syntax instead
    |
249 |                     Primitive::Pointer(/* fields */) => {
    |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: consider importing one of these items instead
    |
1   | use crate::sym::Pointer;
    |
1   | use rustc_ast::FormatTrait::Pointer;
    |
1   | use rustc_codegen_ssa::common::TypeKind::Pointer;
    |
1   | use rustc_span::sym::Pointer;
    |
help: if you import `Pointer`, refer to it directly
    |
249 -                     Primitive::Pointer => {
249 +                     Pointer => {
    |

error[E0574]: expected struct, variant or union type, found enum `abi::Scalar`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\codegen_cx\constant.rs:350:9
    |
350 |         abi::Scalar {
    |         ^^^^^^^^^^^ not a struct, variant or union type
    |
help: consider importing one of these items instead
    |
1   | use crate::codegen_cx::constant::abi::Abi::Scalar;
    |
1   | use rustc_middle::mir::interpret::ConstValue::Scalar;
    |
1   | use rustc_target::abi::Abi::Scalar;
    |
help: if you import `Scalar`, refer to it directly
    |
350 -         abi::Scalar {
350 +         Scalar {
    |

error[E0531]: cannot find unit struct, unit variant or constant `ErrorReported` in crate `rustc_errors`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\link.rs:538:27
    |
538 |         Err(rustc_errors::ErrorReported) => {
    |                           ^^^^^^^^^^^^^ not found in `rustc_errors`

error[E0425]: cannot find value `debug_trait` in module `sym`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:215:72
    |
215 |           if let Some(debug_trait_def_id) = tcx.get_diagnostic_item(sym::debug_trait) {
    |                                                                          ^^^^^^^^^^^ help: a constant with a similar name exists: `debug_struct`
   --> C:\Users\ichbi\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\compiler\rustc_span\src\symbol.rs:22:1
   ::: C:\Users\ichbi\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\compiler\rustc_span\src\symbol.rs:1629:1
    |
    = note: similarly named constant `debug_struct` defined here

error[E0532]: expected tuple struct or tuple variant, found unit variant `ty::ImplContainer`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:219:21
    |
219 |                     ty::ImplContainer(impl_def_id) => {
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use this syntax instead: `ty::ImplContainer`
   --> C:\Users\ichbi\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\compiler\rustc_middle\src\ty\assoc.rs:15:5
    |
    = note: `ty::ImplContainer` defined here

error[E0532]: expected tuple struct or tuple variant, found unit variant `ty::TraitContainer`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:223:21
    |
223 |                     ty::TraitContainer(_) => false,
    |                     ^^^^^^^^^^^^^^^^^^^^^ help: use this syntax instead: `ty::TraitContainer`
   --> C:\Users\ichbi\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\compiler\rustc_middle\src\ty\assoc.rs:14:5
    |
    = note: `ty::TraitContainer` defined here

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:18:1
   |
18 | #![feature(rustc_private)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:19:1
   |
19 | #![feature(assert_matches)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:20:1
   |
20 | #![feature(once_cell)]
   | ^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:19:12
   |
19 | #![feature(assert_matches)]
   |            ^^^^^^^^^^^^^^

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:20:12
   |
20 | #![feature(once_cell)]
   |            ^^^^^^^^^

error[E0107]: struct takes 1 generic argument but 0 generic arguments were supplied
  --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\builder\mod.rs:72:44
   |
72 |     pub fn struct_err(&self, msg: &str) -> DiagnosticBuilder<'_> {
   |                                            ^^^^^^^^^^^^^^^^^ expected 1 generic argument
   |
help: add missing generic argument
   |
72 |     pub fn struct_err(&self, msg: &str) -> DiagnosticBuilder<'_, G> {
   |                                                                +++

error[E0423]: expected function, found macro `with_no_trimmed_paths`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:555:13
    |
555 |             with_no_trimmed_paths(do_codegen);
    |             ^^^^^^^^^^^^^^^^^^^^^ not a function
    |
help: use `!` to invoke the macro
    |
555 |             with_no_trimmed_paths!(do_codegen);
    |                                  +

error[E0423]: expected function, found macro `with_no_trimmed_paths`
   --> C:\Users\ichbi\.cargo\git\checkouts\rust-gpu-e0a37a82a46176e6\b692ab5\crates\rustc_codegen_spirv\src\lib.rs:558:13
    |
558 |             with_no_trimmed_paths(do_codegen);
    |             ^^^^^^^^^^^^^^^^^^^^^ not a function
    |
help: use `!` to invoke the macro
    |
558 |             with_no_trimmed_paths!(do_codegen);
    |                                  +

Some errors have detailed explanations: E0107, E0407, E0423, E0425, E0432, E0437, E0531, E0532, E0554...
For more information about an error, try `rustc --explain E0107`.
error: could not compile `rustc_codegen_spirv` due to 48 previous errors

@krupitskas
Copy link

If I try rust nightly, then gltf isnt compiling 🤔

error: could not compile `gltf` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name gltf --edition=2018 C:\Users\ichbi\.cargo\git\checkouts\gltf-98948b482bb279df\b9c04be\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=119 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=1 --cfg "feature=\"KHR_materials_pbrSpecularGlossiness\"" --cfg "feature=\"KHR_texture_transform\"" --cfg "feature=\"base64\"" --cfg "feature=\"default\"" --cfg "feature=\"image\"" --cfg "feature=\"import\"" --cfg "feature=\"names\"" --cfg "feature=\"utils\"" -C metadata=fa3e030329c19c90 -C extra-filename=-fa3e030329c19c90 --out-dir C:\Work\Code\kajiya\target\release\deps -L dependency=C:\Work\Code\kajiya\target\release\deps --extern base64=C:\Work\Code\kajiya\target\release\deps\libbase64-aa4f69e7f587a801.rmeta --extern byteorder=C:\Work\Code\kajiya\target\release\deps\libbyteorder-86968de8d8ddaee7.rmeta --extern gltf_json=C:\Work\Code\kajiya\target\release\deps\libgltf_json-40b264aabf7a7ff1.rmeta --extern image=C:\Work\Code\kajiya\target\release\deps\libimage-0055bce7a30aeb17.rmeta --extern lazy_static=C:\Work\Code\kajiya\target\release\deps\liblazy_static-a5cc4f4abb2577f0.rmeta --extern urlencoding=C:\Work\Code\kajiya\target\release\deps\liburlencoding-4cf13763fe2e05a1.rmeta --cap-lints allow -C opt-level=z -C inline-threshold=275` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
warning: build failed, waiting for other jobs to finish...
error: could not compile `gltf-json` (lib)

Caused by:
  process didn't exit successfully: `rustc --crate-name gltf_json --edition=2018 C:\Users\ichbi\.cargo\git\checkouts\gltf-98948b482bb279df\b9c04be\gltf-json\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=119 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=1 --cfg "feature=\"KHR_materials_pbrSpecularGlossiness\"" --cfg "feature=\"KHR_texture_transform\"" --cfg "feature=\"default\"" --cfg "feature=\"names\"" -C metadata=40b264aabf7a7ff1 -C extra-filename=-40b264aabf7a7ff1 --out-dir C:\Work\Code\kajiya\target\release\deps -L dependency=C:\Work\Code\kajiya\target\release\deps --extern gltf_derive=C:\Work\Code\kajiya\target\release\deps\gltf_derive-4b7e0c51d9664a29.dll --extern serde=C:\Work\Code\kajiya\target\release\deps\libserde-23c4fa8f4f8649b1.rmeta --extern serde_derive=C:\Work\Code\kajiya\target\release\deps\serde_derive-815760a90ece37bf.dll --extern serde_json=C:\Work\Code\kajiya\target\release\deps\libserde_json-b5033dcabefa7d1f.rmeta --cap-lints allow -C opt-level=z -C inline-threshold=275` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Updating gltf dependency to latest commit gives more error of dependenices

So no way to compile kajiya for now

@h3r2tic
Copy link
Collaborator

h3r2tic commented Jun 1, 2023

The RustGPU in kajiya is outdated, which makes Rust shaders fail to compile (crates in the dependency tree rely on more recent versions of the compiler). Just installing additional components won't fix it; the bundled RustGPU needs an upgrade. The whole thing should still work anyway due to the pre-compiled SPIR-V shader fallback.

@krupitskas
Copy link

Hm you are right!
I'm not sure why it wasn't working for me before.
Literally this command makes all the magic

cargo run --bin view --release -- --scene assets/scenes/battle.ron

@krupitskas
Copy link

I feel like I've tried mini_battle.ron and this is black scene for me for some reason 🤔
Also car.ron
Other looks great 😎

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