Stream: git-wasmtime

Topic: wasmtime / Issue #1083 spidermonkey fails to cross-compil...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 08 2020 at 12:04):

bnjbvr commented on Issue #1083:

I think this should be fixed in Spidermonkey, now, since Cranelift is available in Spidermonkey for compiling wasm code (behind a pref, disabled by default, Firefox Nightly only). Please let us know if you run into trouble again! Thanks.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 08 2020 at 12:04):

bnjbvr closed Issue #1083:

this is initially a bug in spidermonkey, but we're running out of ideas what the cause of this might be in the end. So do you think you could give some insight wether it might be caused by cranelift?

how to reproduce:

download master.zip from https://github.com/mozilla/gecko-dev and unzip, then:

cd gecko-dev-master/js/src/
autoconf-2.13
mkdir build_OPT.OBJ && cd build_OPT.OBJ

../configure --target=aarch64-unknown-linux-gnu --disable-jemalloc --enable-readline --with-system-nspr --with-system-zlib --disable-optimize --with-intl-api --with-system-icu --disable-debug --enable-ion --disable-tests

make -j12

it fails with this error:

--- stderr
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found, err: true
thread 'main' panicked at 'Unable to generate baldrapi.h bindings: ()', src/libcore/result.rs:1009:5

seems as if 32bit headers are pulled into a 64bit process?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 08 2020 at 12:08):

stefson commented on Issue #1083:

if you don't mind to tell what that pref is named, please? :)

view this post on Zulip Wasmtime GitHub notifications bot (Jul 08 2020 at 12:15):

bnjbvr commented on Issue #1083:

Sure! I have to be honest and warn that it's a bit messy to enable Cranelift right now, because many wasm features are not supported and thus must be explicitly disabled in the browser, so you need the following:

If you find things that are slow / incorrect behavior / cause crashes, please open tickets on our Bugzilla!

view this post on Zulip Wasmtime GitHub notifications bot (Jul 08 2020 at 12:15):

bnjbvr edited a comment on Issue #1083:

Sure! I have to be honest and warn that it's a bit messy to enable Cranelift right now, because many wasm features are not supported and thus must be explicitly disabled in the browser, so you need the following:

If you find things that are slow / incorrect behavior / cause crashes, please open tickets on our Bugzilla (component JavaScript :: WebAssembly) !


Last updated: Nov 22 2024 at 17:03 UTC