Skip to content

WASM_BUILD_TYPE=debug fails to compile: UnknownOpcode(192) #1755

@crystalin

Description

@crystalin

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

Building the node-template with WASM_BUILD_TYPE=debug (to better support debugging it later) fails:

error: failed to run custom build command for `node-template-runtime v4.0.0-dev (projects/polkadot-sdk/substrate/bin/node-template/runtime)`

Caused by:
  process didn't exit successfully: `/home/crystalin/projects/polkadot-sdk/target/release/build/node-template-runtime-c9360a61cb5d0a14/build-script-build` (exit status: 1)
  --- stdout
  Information that should be included in a bug report.
  Executing build command: RUSTFLAGS="-C target-cpu=mvp -C target-feature=-sign-ext -C link-arg=--export-table -Clink-arg=--export=__heap_base -C link-arg=--import-memory  " SKIP_WASM_BUILD="" "/home/crystalin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/home/crystalin/projects/polkadot-sdk/target/release/wbuild/node-template-runtime/Cargo.toml" "--color=always" "--profile" "dev"
  Using rustc version: rustc 1.72.1 (d5c2e9c34 2023-09-13)

  Failed to deserialize `/home/crystalin/projects/polkadot-sdk/target/release/wbuild/node-template-runtime/node_template_runtime.wasm`: UnknownOpcode(192)

  --- stderr
      Finished dev [unoptimized + debuginfo] target(s) in 0.11s

Steps to reproduce

WASM_BUILD_TYPE=debug cargo build --release -p node-template

Metadata

Metadata

Assignees

Labels

I10-unconfirmedIssue might be valid, but it's not yet known.I2-bugThe node fails to follow expected behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions