Stream: git-wasmtime

Topic: wasmtime / issue #6241 wasmtime: `cargo test` fails to bu...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 19 2023 at 13:10):

afonso360 opened issue #6241:

:wave: Hey,

It looks like we can no longer run cargo test in the wasmtime directory when targeting s390x,riscv64 or aarch64.

Test Case

No test case.

Steps to Reproduce

Expected Results

The tests to build

Actual Results

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
  --> winch/codegen/src/isa/x64/mod.rs:19:30
   |
19 | use cranelift_codegen::{isa::x64::settings as x64_settings, Final, MachBufferFinalized};
   |                              ^^^ could not find `x64` in `isa`

error[E0433]: failed to resolve: could not find `x64` in `isa`
  --> winch/codegen/src/isa/x64/asm.rs:11:10
   |
11 |     isa::x64::{
   |          ^^^ could not find `x64` in `isa`

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
  --> winch/codegen/src/isa/x64/asm.rs:11:10
   |
11 |     isa::x64::{
   |          ^^^ could not find `x64` in `isa`

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
 --> winch/codegen/src/isa/x64/masm.rs:9:30
  |
9 | use cranelift_codegen::{isa::x64::settings as x64_settings, settings, Final, MachBufferFinalized};
  |                              ^^^ could not find `x64` in `isa`

error[E0433]: failed to resolve: could not find `x64` in `isa`
   --> winch/codegen/src/isa/x64/mod.rs:115:67
    |
115 |         Box::new(MachTextSectionBuilder::<cranelift_codegen::isa::x64::Inst>::new(num_funcs))
    |                                                                   ^^^ could not find `x64` in `isa`

warning: unused import: `MachInstEmitState`
  --> winch/codegen/src/isa/x64/asm.rs:18:69
   |
18 |     settings, Final, MachBuffer, MachBufferFinalized, MachInstEmit, MachInstEmitState, Writable,
   |                                                                     ^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `MachInstEmit`
  --> winch/codegen/src/isa/x64/asm.rs:18:55
   |
18 |     settings, Final, MachBuffer, MachBufferFinalized, MachInstEmit, MachInstEmitState, Writable,
   |                                                       ^^^^^^^^^^^^

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
warning: `winch-codegen` (lib) generated 2 warnings
error: could not compile `winch-codegen` (lib) due to 5 previous errors; 2 warnings emitted

Versions and Environment

Wasmtime version or commit: main (ef7af28ef095277f5979dcbc6ff03964c1e0ba12)

Operating system: Linux

Architecture: x86 host / riscv64gc,s390x or aarch64 target

Extra Info

This seems related to winch (cc @saulecabrera)

view this post on Zulip Wasmtime GitHub notifications bot (Apr 19 2023 at 13:10):

afonso360 labeled issue #6241:

:wave: Hey,

It looks like we can no longer run cargo test in the wasmtime directory when targeting s390x,riscv64 or aarch64.

Test Case

No test case.

Steps to Reproduce

Expected Results

The tests to build

Actual Results

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
  --> winch/codegen/src/isa/x64/mod.rs:19:30
   |
19 | use cranelift_codegen::{isa::x64::settings as x64_settings, Final, MachBufferFinalized};
   |                              ^^^ could not find `x64` in `isa`

error[E0433]: failed to resolve: could not find `x64` in `isa`
  --> winch/codegen/src/isa/x64/asm.rs:11:10
   |
11 |     isa::x64::{
   |          ^^^ could not find `x64` in `isa`

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
  --> winch/codegen/src/isa/x64/asm.rs:11:10
   |
11 |     isa::x64::{
   |          ^^^ could not find `x64` in `isa`

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
 --> winch/codegen/src/isa/x64/masm.rs:9:30
  |
9 | use cranelift_codegen::{isa::x64::settings as x64_settings, settings, Final, MachBufferFinalized};
  |                              ^^^ could not find `x64` in `isa`

error[E0433]: failed to resolve: could not find `x64` in `isa`
   --> winch/codegen/src/isa/x64/mod.rs:115:67
    |
115 |         Box::new(MachTextSectionBuilder::<cranelift_codegen::isa::x64::Inst>::new(num_funcs))
    |                                                                   ^^^ could not find `x64` in `isa`

warning: unused import: `MachInstEmitState`
  --> winch/codegen/src/isa/x64/asm.rs:18:69
   |
18 |     settings, Final, MachBuffer, MachBufferFinalized, MachInstEmit, MachInstEmitState, Writable,
   |                                                                     ^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `MachInstEmit`
  --> winch/codegen/src/isa/x64/asm.rs:18:55
   |
18 |     settings, Final, MachBuffer, MachBufferFinalized, MachInstEmit, MachInstEmitState, Writable,
   |                                                       ^^^^^^^^^^^^

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
warning: `winch-codegen` (lib) generated 2 warnings
error: could not compile `winch-codegen` (lib) due to 5 previous errors; 2 warnings emitted

Versions and Environment

Wasmtime version or commit: main (ef7af28ef095277f5979dcbc6ff03964c1e0ba12)

Operating system: Linux

Architecture: x86 host / riscv64gc,s390x or aarch64 target

Extra Info

This seems related to winch (cc @saulecabrera)

view this post on Zulip Wasmtime GitHub notifications bot (Apr 19 2023 at 13:10):

afonso360 labeled issue #6241:

:wave: Hey,

It looks like we can no longer run cargo test in the wasmtime directory when targeting s390x,riscv64 or aarch64.

Test Case

No test case.

Steps to Reproduce

Expected Results

The tests to build

Actual Results

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
  --> winch/codegen/src/isa/x64/mod.rs:19:30
   |
19 | use cranelift_codegen::{isa::x64::settings as x64_settings, Final, MachBufferFinalized};
   |                              ^^^ could not find `x64` in `isa`

error[E0433]: failed to resolve: could not find `x64` in `isa`
  --> winch/codegen/src/isa/x64/asm.rs:11:10
   |
11 |     isa::x64::{
   |          ^^^ could not find `x64` in `isa`

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
  --> winch/codegen/src/isa/x64/asm.rs:11:10
   |
11 |     isa::x64::{
   |          ^^^ could not find `x64` in `isa`

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
 --> winch/codegen/src/isa/x64/masm.rs:9:30
  |
9 | use cranelift_codegen::{isa::x64::settings as x64_settings, settings, Final, MachBufferFinalized};
  |                              ^^^ could not find `x64` in `isa`

error[E0433]: failed to resolve: could not find `x64` in `isa`
   --> winch/codegen/src/isa/x64/mod.rs:115:67
    |
115 |         Box::new(MachTextSectionBuilder::<cranelift_codegen::isa::x64::Inst>::new(num_funcs))
    |                                                                   ^^^ could not find `x64` in `isa`

warning: unused import: `MachInstEmitState`
  --> winch/codegen/src/isa/x64/asm.rs:18:69
   |
18 |     settings, Final, MachBuffer, MachBufferFinalized, MachInstEmit, MachInstEmitState, Writable,
   |                                                                     ^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `MachInstEmit`
  --> winch/codegen/src/isa/x64/asm.rs:18:55
   |
18 |     settings, Final, MachBuffer, MachBufferFinalized, MachInstEmit, MachInstEmitState, Writable,
   |                                                       ^^^^^^^^^^^^

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
warning: `winch-codegen` (lib) generated 2 warnings
error: could not compile `winch-codegen` (lib) due to 5 previous errors; 2 warnings emitted

Versions and Environment

Wasmtime version or commit: main (ef7af28ef095277f5979dcbc6ff03964c1e0ba12)

Operating system: Linux

Architecture: x86 host / riscv64gc,s390x or aarch64 target

Extra Info

This seems related to winch (cc @saulecabrera)

view this post on Zulip Wasmtime GitHub notifications bot (Apr 19 2023 at 13:11):

github-actions[bot] commented on issue #6241:

Subscribe to Label Action

cc @saulecabrera

<details>
This issue or pull request has been labeled: "winch"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Apr 19 2023 at 20:21):

alexcrichton closed issue #6241:

:wave: Hey,

It looks like we can no longer run cargo test in the wasmtime directory when targeting s390x,riscv64 or aarch64.

Test Case

No test case.

Steps to Reproduce

Expected Results

The tests to build

Actual Results

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
  --> winch/codegen/src/isa/x64/mod.rs:19:30
   |
19 | use cranelift_codegen::{isa::x64::settings as x64_settings, Final, MachBufferFinalized};
   |                              ^^^ could not find `x64` in `isa`

error[E0433]: failed to resolve: could not find `x64` in `isa`
  --> winch/codegen/src/isa/x64/asm.rs:11:10
   |
11 |     isa::x64::{
   |          ^^^ could not find `x64` in `isa`

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
  --> winch/codegen/src/isa/x64/asm.rs:11:10
   |
11 |     isa::x64::{
   |          ^^^ could not find `x64` in `isa`

error[E0432]: unresolved import `cranelift_codegen::isa::x64`
 --> winch/codegen/src/isa/x64/masm.rs:9:30
  |
9 | use cranelift_codegen::{isa::x64::settings as x64_settings, settings, Final, MachBufferFinalized};
  |                              ^^^ could not find `x64` in `isa`

error[E0433]: failed to resolve: could not find `x64` in `isa`
   --> winch/codegen/src/isa/x64/mod.rs:115:67
    |
115 |         Box::new(MachTextSectionBuilder::<cranelift_codegen::isa::x64::Inst>::new(num_funcs))
    |                                                                   ^^^ could not find `x64` in `isa`

warning: unused import: `MachInstEmitState`
  --> winch/codegen/src/isa/x64/asm.rs:18:69
   |
18 |     settings, Final, MachBuffer, MachBufferFinalized, MachInstEmit, MachInstEmitState, Writable,
   |                                                                     ^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `MachInstEmit`
  --> winch/codegen/src/isa/x64/asm.rs:18:55
   |
18 |     settings, Final, MachBuffer, MachBufferFinalized, MachInstEmit, MachInstEmitState, Writable,
   |                                                       ^^^^^^^^^^^^

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
warning: `winch-codegen` (lib) generated 2 warnings
error: could not compile `winch-codegen` (lib) due to 5 previous errors; 2 warnings emitted

Versions and Environment

Wasmtime version or commit: main (ef7af28ef095277f5979dcbc6ff03964c1e0ba12)

Operating system: Linux

Architecture: x86 host / riscv64gc,s390x or aarch64 target

Extra Info

This seems related to winch (cc @saulecabrera)


Last updated: Nov 22 2024 at 17:03 UTC