pwasm-tutorial icon indicating copy to clipboard operation
pwasm-tutorial copied to clipboard

build pwasm-tutorial/step-0 error

Open jmzhuzhonghua opened this issue 5 years ago • 2 comments

I went to pwasm-tutorial/step-0, and run ./build.sh. But there is error as followings:

jm02@jm02:~/project/pwasm-tutorial/step-0$ ./build.sh Finished release [optimized] target(s) in 0.02s Build error: Packing failed due to module structure error: No exported deploy symbol. Sure used correct libraries for building contracts? jm02@jm02:~/project/pwasm-tutorial/step-0$

jmzhuzhonghua avatar Apr 24 '19 10:04 jmzhuzhonghua

running

'cargo build --release --target wasm32-unknown-unknown'

and then

'wasm-build --target=wasm32-unknown-unknown --skip-optimization ./target pwasm_tutorial_contract'

instead of ./build.sh solved the problem for me!

Noah-Vincenz avatar May 10 '19 13:05 Noah-Vincenz

running

'cargo build --release --target wasm32-unknown-unknown'

and then

'wasm-build --target=wasm32-unknown-unknown --skip-optimization ./target pwasm_tutorial_contract'

instead of ./build.sh solved the problem for me!

The above method resulted in some limitations. I have now finally managed to resolve the issue by downgrading pwasm-utils-cli version from 0.7.0 to 0.6.0.

Noah-Vincenz avatar Jun 18 '19 14:06 Noah-Vincenz