brson / wasm-opt-rs

Rust bindings for Binaryen's wasm-opt
Apache License 2.0
61 stars 10 forks source link

Build failed with GCC-13 #147

Closed AurevoirXavier closed 1 year ago

AurevoirXavier commented 1 year ago

Check more detail here: https://substrate.stackexchange.com/questions/8540/compilation-errors-on-template-node

brson commented 1 year ago

Version 0.111.0, tracking Binaryen 111, is known to not build with GCC 13. Upgrading to wasm-opt 0.112.0, which tracks binaryen 112, should fix the issue.

This was also reported in https://github.com/brson/wasm-opt-rs/issues/143.

Substrate was upgraded to wasm-opt 112 in https://github.com/paritytech/substrate/pull/13574, so if you can upgrade substrate that should fix it.

If upgrading substrate is not possible, it may be possible to backport the binaryen fixes for gcc 13 to wasm-opt-rs 112, but I have not attempted to do so yet.