Closed craigmayhew closed 3 years ago
Interesting. That path only appears after -L
on the command line so it shouldn't be trying to treat it as an input file.
Do you know exactly what version emscripten you are using?
@tlively who deals with rust+emscripten
apt has it as version 1.22.1-1build1
This was installed via sudo apt-get install emscripten
I also tried compiling from github master (on a second machine) and received the same error.
I'm not sure how rust+emscripten works but I imagine the version of emscripten is embedded inside the rust toolchain itself, not the the one your system.
If you can test with and external version then the branch you want is origin/incoming
.
@sbc100 no, rust just looks up emcc on the path to perform the final link. I believe this is bug with Emscripten in which the argument parsing logic is not smart enough to realize that the token following a bare "-L" should be taken to be part of the same flag.
But this is very common case which I'm sure we have tests for.. can you try with origin/incoming
.
(any any recent version of emscripten)
Hmm yeah I see logic for this at https://github.com/emscripten-core/emscripten/blob/incoming/emcc.py#L809. It's been there for years, though.
@craigmayhew What version of Rust are you on? Very recent versions may require recent versions of Emscripten using the LLVM backend.
@tlively version 1.40 nightly. also tried stable
Ok yeah I would try with emscripten 1.38.46-upstream or later *-upstream in the 1.38 line or 1.39.0 or later. The simplest method would be to use emsdk to install and activate latest
.
Rust nightly 1.40.0-nightly, with emcc 1.39.2 installed via emsdk
β― emcc --version
1.39.2
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly took 1m30s
β― cargo rustc --target=wasm32-unknown-emscripten --release --verbose -- -C link-args="-s BINARYEN_ASYNC_COMPILATION=0" --verbose
Fresh cfg-if v0.1.10
Fresh md5 v0.7.0
Fresh libc v0.2.65
Fresh getrandom v0.1.13
Fresh rand_core v0.5.1
Fresh rand_hc v0.2.0
Fresh rand v0.7.2
Compiling md5recursion v0.1.0 (/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion)
Running `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib`
error: linking with `emcc` failed: exit code: 1
|
= note: "emcc" "-s" "DISABLE_EXCEPTION_CATCHING=0" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.0.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.1.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.10.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.11.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.12.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.13.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.14.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.15.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.2.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.3.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.4.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.5.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.6.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.7.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.8.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.9.rcgu.o" "-o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.js" "-s" "EXPORTED_FUNCTIONS=[\"_main\",\"_rust_eh_personality\"]" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.18c9pd5sipy13onm.rcgu.o" "-O3" "--memory-init-file" "0" "-g0" "-s" "DEFAULT_LIBRARY_FUNCS_TO_INCLUDE=[]" "-L" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps" "-L" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_hc-aa572bc55be3fea2.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-4a1a81d0f4cb4947.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libstd-3dbe579904fbccbe.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libpanic_unwind-1f28113e3cabf146.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libhashbrown-1d571a23e43c22e2.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_alloc-715539682a8f65bc.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libbacktrace-91a5ceef68c6ea62.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_demangle-0dae21a0280e35c1.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libunwind-cb80fc0778a00db3.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcfg_if-e8471076907d728c.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/liblibc-2f0c44e2ccbc4584.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/liballoc-955c0e5036a23d55.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_core-825ae32895b6427e.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcore-2f7ed48dc9819ce8.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcompiler_builtins-88cd82a8320809f8.rlib" "-l" "c" "-l" "c" "-s" "BINARYEN_ASYNC_COMPILATION=0" "-s" "ERROR_ON_UNDEFINED_SYMBOLS=1" "-s" "ASSERTIONS=1" "-s" "ABORTING_MALLOC=0" "-Wl,--fatal-warnings"
= note: shared:WARNING: ignoring unsupported linker flag: `--fatal-warnings`
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/bin/llvm-nm: error: /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rlib(rust.metadata.bin) The end of the file was unexpectedly encountered
Traceback (most recent call last):
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/emcc.py", line 3681, in <module>
sys.exit(run(sys.argv))
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/emcc.py", line 1968, in run
ensure_archive_index(input_file)
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/emcc.py", line 483, in ensure_archive_index
stdout = run_process([shared.LLVM_NM, '--print-armap', archive_file], stdout=PIPE).stdout
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/tools/shared.py", line 188, in run_process
result.check_returncode()
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/tools/shared.py", line 168, in check_returncode
raise Py2CalledProcessError(returncode=self.returncode, cmd=self.args, output=self.stdout, stderr=self.stderr)
tools.shared.Py2CalledProcessError: Command '['/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/bin/llvm-nm', '--print-armap', '/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rlib']' returned non-zero exit status 1
error: aborting due to previous error
error: could not compile `md5recursion`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib` (exit code: 1)
Rust stable 1.39.0, with emcc 1.39.2 installed via emsdk
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.39.0
β― cargo rustc --target=wasm32-unknown-emscripten --release --verbose -- -C link-args="-s BINARYEN_ASYNC_COMPILATION=0" --verbose
Fresh cfg-if v0.1.10
Fresh md5 v0.7.0
Fresh libc v0.2.65
Fresh getrandom v0.1.13
Fresh rand_core v0.5.1
Fresh rand_hc v0.2.0
Fresh rand v0.7.2
Compiling md5recursion v0.1.0 (/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion)
Running `rustc --edition=2018 --crate-name md5recursion src/main.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-79dbf0877ba4ccd9.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-64275eb013e34348.rlib`
error: linking with `emcc` failed: exit code: 1
|
= note: "emcc" "-s" "DISABLE_EXCEPTION_CATCHING=0" "-L" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.0.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.1.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.10.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.11.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.12.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.13.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.14.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.15.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.2.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.3.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.4.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.5.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.6.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.7.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.8.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.9.rcgu.o" "-o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.js" "-s" "EXPORTED_FUNCTIONS=[\"_main\",\"_rust_eh_personality\"]" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.18c9pd5sipy13onm.rcgu.o" "-O3" "--memory-init-file" "0" "-g0" "-s" "DEFAULT_LIBRARY_FUNCS_TO_INCLUDE=[]" "-L" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps" "-L" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps" "-L" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-64275eb013e34348.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_hc-9d859162fdfbd51c.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-06817a7b5fe1def6.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-98c7e9978676a88e.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-0f968fc7757ab433.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e8d51f745108570b.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-79dbf0877ba4ccd9.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libstd-c3a1268b0ca58abc.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libpanic_unwind-df99b38c13845e6b.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libhashbrown-5fda646f3f7147a3.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_alloc-cab185f0e95eb268.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libbacktrace-d3b692abbef8a71e.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_demangle-1c6566ea50b74fdf.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libunwind-392f9aee3071b376.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcfg_if-c650f0067a17f672.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/liblibc-5a609febbc798595.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/liballoc-2875889606754491.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_core-09b2dd65fc6b549e.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcore-8d39f774f75d50c8.rlib" "/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcompiler_builtins-f1ee5b04877823a0.rlib" "-l" "c" "-l" "c" "-s" "BINARYEN_ASYNC_COMPILATION=0" "-s" "BINARYEN=1" "-s" "ERROR_ON_UNDEFINED_SYMBOLS=1" "-s" "BINARYEN_TRAP_MODE=\'clamp\'"
= note: shared:ERROR: BINARYEN_TRAP_MODE is not supported by the LLVM wasm backend
error: aborting due to previous error
error: could not compile `md5recursion`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name md5recursion src/main.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-79dbf0877ba4ccd9.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-64275eb013e34348.rlib` (exit code: 1)
Oh wow that's more broken than I thought it would be.
@sbc100 "shared:WARNING: ignoring unsupported linker flag: --fatal-warnings
" should only happen if emcc is not using lld. Why wouldn't emcc be using lld here? My guess is that there are old bitcode object files lying around. Would that make sense?
@craigmayhew Did you clean out any caches of built libraries before doing these builds e.g. with cargo clean
? Also if you use Rust stable 1.39.0 you will need to use 1.39.2-fastcomp rather than 1.39.2. But I'm most interested in getting Rust 1.40.0-nightly working with 1.39.2.
I've run it again to be sure. Switching to nightly, cargo clean, build failure, rm -rf target, build failure.
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.39.0
β― rustup default nightly
info: using existing install for 'nightly-x86_64-unknown-linux-gnu'
info: default toolchain set to 'nightly-x86_64-unknown-linux-gnu'
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.40.0-nightly (1423bec54 2019-11-05)
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― cargo clean
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― cargo rustc --target=wasm32-unknown-emscripten --release --verbose -- -C link-args="-s BINARYEN_ASYNC_COMPILATION=0" --verbose
Compiling libc v0.2.65
Compiling getrandom v0.1.13
Compiling cfg-if v0.1.10
Compiling md5 v0.7.0
Running `rustc --crate-name build_script_build /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2 .65/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 - C metadata=8b790e5ef0102474 -C extra-filename=-8b790e5ef0102474 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-task s/gwasm/md5-recursion/target/release/build/libc-8b790e5ef0102474 -L dependency=/mnt/c/Users/user/Documents/GitHub/golem -tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --edition=2018 --crate-name build_script_build /home/user/.cargo/registry/src/github.com-1ecc6299db 9ec823/getrandom-0.1.13/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,l ink -C opt-level=3 --cfg 'feature="std"' -C metadata=94bf1ae737374b3d -C extra-filename=-94bf1ae737374b3d --out-dir /mn t/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/getrandom-94bf1ae737374b3d -L depe ndency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow` Running `rustc --edition=2018 --crate-name cfg_if /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-i f-0.1.10/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,meta data,link -C opt-level=3 -C metadata=e116f23270b0e1f3 -C extra-filename=-e116f23270b0e1f3 --out-dir /mnt/c/Users/user/D ocuments/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-e mscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscri pten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --crate-name md5 /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/md5-0.7.0/src/lib.rs -- error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg ' feature="default"' --cfg 'feature="std"' -C metadata=6c115fe2d9abded8 -C extra-filename=-6c115fe2d9abded8 --out-dir /mn t/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm3 2-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/targ et/release/deps --cap-lints allow`
Running `/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/getrandom-94bf1ae 737374b3d/build-script-build`
Running `/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/libc-8b790e5ef010 2474/build-script-build`
Running `rustc --crate-name libc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.65/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-le vel=3 -C metadata=35b12c832b6c637d -C extra-filename=-35b12c832b6c637d --out-dir /mnt/c/Users/user/Documents/GitHub/gol em-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L depend ency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps - L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow - -cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN`
Running `rustc --edition=2018 --crate-name getrandom /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/ge trandom-0.1.13/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-inf o,metadata,link -C opt-level=3 --cfg 'feature="std"' -C metadata=5fbc6ef731e5b4f9 -C extra-filename=-5fbc6ef731e5b4f9 - -out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/de ps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/ target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-re cursion/target/release/deps --extern cfg_if=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/w asm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rmeta --extern libc=/mnt/c/Users/user/Documents/GitHub /golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rmeta --cap-lin ts allow`
Compiling rand_core v0.5.1
Running `rustc --edition=2018 --crate-name rand_core /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/ra nd_core-0.5.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info ,metadata,link -C opt-level=3 --cfg 'feature="alloc"' --cfg 'feature="getrandom"' --cfg 'feature="std"' -C metadata=4a1 a81d0f4cb4947 -C extra-filename=-4a1a81d0f4cb4947 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-re cursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/use r/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/U sers/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern getrandom=/mnt/c/Users/user/Doc uments/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4 f9.rmeta --cap-lints allow`
Compiling rand_hc v0.2.0
Running `rustc --edition=2018 --crate-name rand_hc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand _hc-0.2.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,met adata,link -C opt-level=3 -C metadata=aa572bc55be3fea2 -C extra-filename=-aa572bc55be3fea2 --out-dir /mnt/c/Users/user/ Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown- emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscr ipten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern rand_core=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten /release/deps/librand_core-4a1a81d0f4cb4947.rmeta --cap-lints allow`
Compiling rand v0.7.2
Running `rustc --edition=2018 --crate-name rand /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0. 7.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C op t-level=3 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="getrandom"' --cfg 'feature="getrandom_packa ge"' --cfg 'feature="std"' -C metadata=a5c352c4108b8c50 -C extra-filename=-a5c352c4108b8c50 --out-dir /mnt/c/Users/user /Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown -emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emsc ripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/dep s --extern getrandom_package=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-e mscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rmeta --extern libc=/mnt/c/Users/user/Documents/GitHub/golem-tasks /gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rmeta --extern rand_core=/m nt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_ core-4a1a81d0f4cb4947.rmeta --extern rand_hc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/ wasm32-unknown-emscripten/release/deps/librand_hc-aa572bc55be3fea2.rmeta --cap-lints allow`
Compiling md5recursion v0.1.0 (/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion)
Running `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered -ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib`
error: linker `emcc` not found
|
= note: No such file or directory (os error 2)
error: aborting due to previous error
error: could not compile `md5recursion`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib` (exit code: 1)
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly took 6s
β― rm -rf
Cargo.lock Cargo.toml README.md in/ src/ target/ task/
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly took 6s
β― rm -rf target/
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― cargo rustc --target=wasm32-unknown-emscripten --release --verbose -- -C link-args="-s BINARYEN_ASYNC_COMPILATION=0" --verbose
Compiling libc v0.2.65
Compiling getrandom v0.1.13
Compiling cfg-if v0.1.10
Compiling md5 v0.7.0
Running `rustc --crate-name build_script_build /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.65/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=8b790e5ef0102474 -C extra-filename=-8b790e5ef0102474 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/libc-8b790e5ef0102474 -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --edition=2018 --crate-name build_script_build /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.13/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 --cfg 'feature="std"' -C metadata=94bf1ae737374b3d -C extra-filename=-94bf1ae737374b3d --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/getrandom-94bf1ae737374b3d -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --edition=2018 --crate-name cfg_if /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=e116f23270b0e1f3 -C extra-filename=-e116f23270b0e1f3 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --crate-name md5 /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/md5-0.7.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=6c115fe2d9abded8 -C extra-filename=-6c115fe2d9abded8 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/getrandom-94bf1ae737374b3d/build-script-build`
Running `/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/libc-8b790e5ef0102474/build-script-build`
Running `rustc --crate-name libc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.65/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=35b12c832b6c637d -C extra-filename=-35b12c832b6c637d --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN` Running `rustc --edition=2018 --crate-name getrandom /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.13/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="std"' -C metadata=5fbc6ef731e5b4f9 -C extra-filename=-5fbc6ef731e5b4f9 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern cfg_if=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rmeta --extern libc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rmeta --cap-lints allow`
Compiling rand_core v0.5.1
Running `rustc --edition=2018 --crate-name rand_core /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.5.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="alloc"' --cfg 'feature="getrandom"' --cfg 'feature="std"' -C metadata=4a1a81d0f4cb4947 -C extra-filename=-4a1a81d0f4cb4947 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern getrandom=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rmeta --cap-lints allow`
Compiling rand_hc v0.2.0
Running `rustc --edition=2018 --crate-name rand_hc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_hc-0.2.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=aa572bc55be3fea2 -C extra-filename=-aa572bc55be3fea2 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern rand_core=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-4a1a81d0f4cb4947.rmeta --cap-lints allow`
Compiling rand v0.7.2
Running `rustc --edition=2018 --crate-name rand /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.7.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="getrandom"' --cfg 'feature="getrandom_package"' --cfg 'feature="std"' -C metadata=a5c352c4108b8c50 -C extra-filename=-a5c352c4108b8c50 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern getrandom_package=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rmeta --extern libc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rmeta --extern rand_core=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-4a1a81d0f4cb4947.rmeta --extern rand_hc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_hc-aa572bc55be3fea2.rmeta --cap-lints allow`
Compiling md5recursion v0.1.0 (/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion)
Running `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib`
error: linker `emcc` not found
|
= note: No such file or directory (os error 2)
error: aborting due to previous error
error: could not compile `md5recursion`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib` (exit code: 1)
I forgot to set the path correctly. Running again: Switching to nightly, cargo clean, set path etc, build failure
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― cd /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― rustup default nightly
info: using existing install for 'nightly-x86_64-unknown-linux-gnu'
info: default toolchain set to 'nightly-x86_64-unknown-linux-gnu'
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.40.0-nightly (1423bec54 2019-11-05)
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― cargo clean
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― source /mnt/c/Users/user/Documents/GitHub/emsdk/emsdk_env.sh
Setting environment variables:
EMSDK = /mnt/c/Users/user/Documents/GitHub/emsdk
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― cargo rustc --target=wasm32-unknown-emscripten --release --verbose -- -C link-args="-s BINARYEN_ASYNC_COMPILATION=0" --verbose
Compiling libc v0.2.65
Compiling getrandom v0.1.13
Compiling cfg-if v0.1.10
Compiling md5 v0.7.0
Running `rustc --crate-name build_script_build /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.65/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=8b790e5ef0102474 -C extra-filename=-8b790e5ef0102474 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/libc-8b790e5ef0102474 -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --edition=2018 --crate-name build_script_build /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.13/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 --cfg 'feature="std"' -C metadata=94bf1ae737374b3d -C extra-filename=-94bf1ae737374b3d --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/getrandom-94bf1ae737374b3d -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --edition=2018 --crate-name cfg_if /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=e116f23270b0e1f3 -C extra-filename=-e116f23270b0e1f3 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --crate-name md5 /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/md5-0.7.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=6c115fe2d9abded8 -C extra-filename=-6c115fe2d9abded8 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/getrandom-94bf1ae737374b3d/build-script-build`
Running `/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/libc-8b790e5ef0102474/build-script-build`
Running `rustc --crate-name libc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.65/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=35b12c832b6c637d -C extra-filename=-35b12c832b6c637d --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN`
Running `rustc --edition=2018 --crate-name getrandom /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.13/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="std"' -C metadata=5fbc6ef731e5b4f9 -C extra-filename=-5fbc6ef731e5b4f9 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern cfg_if=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rmeta --extern libc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rmeta --cap-lints allow`
Compiling rand_core v0.5.1
Running `rustc --edition=2018 --crate-name rand_core /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.5.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="alloc"' --cfg 'feature="getrandom"' --cfg 'feature="std"' -C metadata=4a1a81d0f4cb4947 -C extra-filename=-4a1a81d0f4cb4947 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern getrandom=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rmeta --cap-lints allow`
Compiling rand_hc v0.2.0
Running `rustc --edition=2018 --crate-name rand_hc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_hc-0.2.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=aa572bc55be3fea2 -C extra-filename=-aa572bc55be3fea2 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern rand_core=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-4a1a81d0f4cb4947.rmeta --cap-lints allow`
Compiling rand v0.7.2
Running `rustc --edition=2018 --crate-name rand /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.7.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="getrandom"' --cfg 'feature="getrandom_package"' --cfg 'feature="std"' -C metadata=a5c352c4108b8c50 -C extra-filename=-a5c352c4108b8c50 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern getrandom_package=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rmeta --extern libc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rmeta --extern rand_core=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-4a1a81d0f4cb4947.rmeta --extern rand_hc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_hc-aa572bc55be3fea2.rmeta --cap-lints allow`
Compiling md5recursion v0.1.0 (/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion)
Running `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib`
error: linking with `emcc` failed: exit code: 1
|
= note: "emcc" "-s" "DISABLE_EXCEPTION_CATCHING=0" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.0.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.1.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.10.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.11.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.12.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.13.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.14.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.15.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.2.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.3.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.4.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.5.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.6.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.7.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.8.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.9.rcgu.o" "-o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.js" "-s" "EXPORTED_FUNCTIONS=[\"_main\",\"_rust_eh_personality\"]" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.18c9pd5sipy13onm.rcgu.o" "-O3" "--memory-init-file" "0" "-g0" "-s" "DEFAULT_LIBRARY_FUNCS_TO_INCLUDE=[]" "-L" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps" "-L" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_hc-aa572bc55be3fea2.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-4a1a81d0f4cb4947.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libstd-3dbe579904fbccbe.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libpanic_unwind-1f28113e3cabf146.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libhashbrown-1d571a23e43c22e2.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_alloc-715539682a8f65bc.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libbacktrace-91a5ceef68c6ea62.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_demangle-0dae21a0280e35c1.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libunwind-cb80fc0778a00db3.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcfg_if-e8471076907d728c.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/liblibc-2f0c44e2ccbc4584.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/liballoc-955c0e5036a23d55.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_core-825ae32895b6427e.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcore-2f7ed48dc9819ce8.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcompiler_builtins-88cd82a8320809f8.rlib" "-l" "c" "-l" "c" "-s" "BINARYEN_ASYNC_COMPILATION=0" "-s" "ERROR_ON_UNDEFINED_SYMBOLS=1" "-s" "ASSERTIONS=1" "-s" "ABORTING_MALLOC=0" "-Wl,--fatal-warnings"
= note: shared:WARNING: ignoring unsupported linker flag: `--fatal-warnings`
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/bin/llvm-nm: error: /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rlib(rust.metadata.bin) The end of the file was unexpectedly encountered
Traceback (most recent call last):
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/emcc.py", line 3681, in <module>
sys.exit(run(sys.argv))
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/emcc.py", line 1968, in run
ensure_archive_index(input_file)
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/emcc.py", line 483, in ensure_archive_index
stdout = run_process([shared.LLVM_NM, '--print-armap', archive_file], stdout=PIPE).stdout
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/tools/shared.py", line 188, in run_process
result.check_returncode()
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/tools/shared.py", line 168, in check_returncode
raise Py2CalledProcessError(returncode=self.returncode, cmd=self.args, output=self.stdout, stderr=self.stderr)
tools.shared.Py2CalledProcessError: Command '['/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/bin/llvm-nm', '--print-armap', '/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rlib']' returned non-zero exit status 1
error: aborting due to previous error
error: could not compile `md5recursion`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib` (exit code: 1)
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly took 4s
β―
Is this an open source project I can build locally and poke around in? I'd like to check whether the object in the rlibs are LLVM bitcode or not.
Can you also provide a log that includes the emsdk install
and emsdk activate
commands?
Project available here: https://github.com/craigmayhew/golem-tasks/tree/master/gwasm/md5-recursion
emsdk install latest, activate latest, set path etc, switching to nightly, cargo clean, build failure
Also not listed here, but installed after switching to nightly on a previous run rustup target add wasm32-unknown-emscripten
β― cd /mnt/c/Users/user/Documents/GitHub/emsdk
emsdk on ξ master via π v2.7.15+
β― ./emsdk install latest
** NOTICE **: The default SDK changed from `fastcomp` to `upstream`.
If you have problems, or wish to revert back to fastcomp for some other reason
you can add `-fastcomp` to explicitly install that fastcomp-based
SDK, .e.g ./emsdk install latest-fastcomp.
Installing SDK 'sdk-releases-upstream-c630da9163a64e08de3dd948be0a0f7a175d285b-64bit'..
Installing tool 'releases-upstream-c630da9163a64e08de3dd948be0a0f7a175d285b-64bit'..
Downloading: /mnt/c/Users/user/Documents/GitHub/emsdk/zips/c630da9163a64e08de3dd948be0a0f7a175d285b-wasm-binaries.tbz2 from https://storage.googleapis.com/webassembly/emscripten-releases-builds/linux/c630da9163a64e08de3dd948be0a0f7a175d285b/wasm-binaries.tbz2, 163823770 Bytes
Unpacking '/mnt/c/Users/user/Documents/GitHub/emsdk/zips/c630da9163a64e08de3dd948be0a0f7a175d285b-wasm-binaries.tbz2' to '/mnt/c/Users/user/Documents/GitHub/emsdk/upstream'
Done installing tool 'releases-upstream-c630da9163a64e08de3dd948be0a0f7a175d285b-64bit'.
Installing tool 'node-12.9.1-64bit'..
Downloading: /mnt/c/Users/user/Documents/GitHub/emsdk/zips/node-v12.9.1-linux-x64.tar.xz from https://storage.googleapis.com/webassembly/emscripten-releases-builds/deps/node-v12.9.1-linux-x64.tar.xz, 13918928 Bytes
Unpacking '/mnt/c/Users/user/Documents/GitHub/emsdk/zips/node-v12.9.1-linux-x64.tar.xz' to '/mnt/c/Users/user/Documents/GitHub/emsdk/node/12.9.1_64bit'
Done installing tool 'node-12.9.1-64bit'.
Done installing SDK 'sdk-releases-upstream-c630da9163a64e08de3dd948be0a0f7a175d285b-64bit'.
emsdk on ξ master via π v2.7.15+ took 1m43s
β― ./emsdk activate latest
** NOTICE **: The default SDK changed from `fastcomp` to `upstream`.
If you have problems, or wish to revert back to fastcomp for some other reason
you can add `-fastcomp` to explicitly install that fastcomp-based
SDK, .e.g ./emsdk install latest-fastcomp.
Writing .emscripten configuration file to user home directory /home/user/
Backing up old Emscripten configuration file in /home/user/.emscripten.old
The Emscripten configuration file /home/user/.emscripten has been rewritten with the following contents:
LLVM_ROOT = '/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/bin'
BINARYEN_ROOT = '/mnt/c/Users/user/Documents/GitHub/emsdk/upstream'
EMSCRIPTEN_ROOT = '/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten'
NODE_JS = '/mnt/c/Users/user/Documents/GitHub/emsdk/node/12.9.1_64bit/bin/node'
TEMP_DIR = '/tmp'
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]
To conveniently access the selected set of tools from the command line, consider adding the following directories to PATH, or call 'source ./emsdk_env.sh' to do this for you.
/mnt/c/Users/user/Documents/GitHub/emsdk:/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten:/mnt/c/Users/user/Documents/GitHub/emsdk/node/12.9.1_64bit/bin
Set the following tools as active:
releases-upstream-c630da9163a64e08de3dd948be0a0f7a175d285b-64bit
node-12.9.1-64bit
emsdk on ξ master via π v2.7.15+ took 2s
β― source ./emsdk_env.sh
Adding directories to PATH:
PATH += /mnt/c/Users/user/Documents/GitHub/emsdk
PATH += /mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten
PATH += /mnt/c/Users/user/Documents/GitHub/emsdk/node/12.9.1_64bit/bin
Setting environment variables:
EMSDK = /mnt/c/Users/user/Documents/GitHub/emsdk
EM_CONFIG = /home/user/.emscripten
EMSDK_NODE = /mnt/c/Users/user/Documents/GitHub/emsdk/node/12.9.1_64bit/bin/node
emsdk on ξ master via π v2.7.15+
β― cd /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― rustup default nightly
info: using existing install for 'nightly-x86_64-unknown-linux-gnu'
info: default toolchain set to 'nightly-x86_64-unknown-linux-gnu'
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.40.0-nightly (1423bec54 2019-11-05)
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― cargo clean
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly
β― cargo rustc --target=wasm32-unknown-emscripten --release --verbose -- -C link-args="-s BINARYEN_ASYNC_COMPILATION=0" --verbose
Compiling libc v0.2.65
Compiling getrandom v0.1.13
Compiling cfg-if v0.1.10
Compiling md5 v0.7.0
Running `rustc --crate-name build_script_build /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.65/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=8b790e5ef0102474 -C extra-filename=-8b790e5ef0102474 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/libc-8b790e5ef0102474 -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --edition=2018 --crate-name build_script_build /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.13/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 --cfg 'feature="std"' -C metadata=94bf1ae737374b3d -C extra-filename=-94bf1ae737374b3d --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/getrandom-94bf1ae737374b3d -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow` Running `rustc --edition=2018 --crate-name cfg_if /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.10/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=e116f23270b0e1f3 -C extra-filename=-e116f23270b0e1f3 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `rustc --crate-name md5 /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/md5-0.7.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=6c115fe2d9abded8 -C extra-filename=-6c115fe2d9abded8 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow`
Running `/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/getrandom-94bf1ae737374b3d/build-script-build`
Running `/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/build/libc-8b790e5ef0102474/build-script-build`
Running `rustc --crate-name libc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.65/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=35b12c832b6c637d -C extra-filename=-35b12c832b6c637d --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --cap-lints allow --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN`
Running `rustc --edition=2018 --crate-name getrandom /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.13/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="std"' -C metadata=5fbc6ef731e5b4f9 -C extra-filename=-5fbc6ef731e5b4f9 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern cfg_if=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rmeta --extern libc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rmeta --cap-lints allow`
Compiling rand_core v0.5.1
Running `rustc --edition=2018 --crate-name rand_core /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.5.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="alloc"' --cfg 'feature="getrandom"' --cfg 'feature="std"' -C metadata=4a1a81d0f4cb4947 -C extra-filename=-4a1a81d0f4cb4947 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern getrandom=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rmeta --cap-lints allow`
Compiling rand_hc v0.2.0
Running `rustc --edition=2018 --crate-name rand_hc /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_hc-0.2.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=aa572bc55be3fea2 -C extra-filename=-aa572bc55be3fea2 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern rand_core=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-4a1a81d0f4cb4947.rmeta --cap-lints allow`
Compiling rand v0.7.2
Running `rustc --edition=2018 --crate-name rand /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.7.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="getrandom"' --cfg 'feature="getrandom_package"' --cfg 'feature="std"' -C metadata=a5c352c4108b8c50 -C extra-filename=-a5c352c4108b8c50 --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern getrandom_package=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rmeta --extern libc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rmeta --extern rand_core=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-4a1a81d0f4cb4947.rmeta --extern rand_hc=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_hc-aa572bc55be3fea2.rmeta --cap-lints allow`
Compiling md5recursion v0.1.0 (/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion)
Running `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib`
error: linking with `emcc` failed: exit code: 1
|
= note: "emcc" "-s" "DISABLE_EXCEPTION_CATCHING=0" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.0.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.1.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.10.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.11.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.12.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.13.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.14.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.15.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.2.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.3.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.4.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.5.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.6.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.7.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.8.rcgu.o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.md5recursion.aanno64f-cgu.9.rcgu.o" "-o" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.js" "-s" "EXPORTED_FUNCTIONS=[\"_main\",\"_rust_eh_personality\"]" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/md5recursion.18c9pd5sipy13onm.rcgu.o" "-O3" "--memory-init-file" "0" "-g0" "-s" "DEFAULT_LIBRARY_FUNCS_TO_INCLUDE=[]" "-L" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps" "-L" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps" "-L" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_hc-aa572bc55be3fea2.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand_core-4a1a81d0f4cb4947.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libgetrandom-5fbc6ef731e5b4f9.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/liblibc-35b12c832b6c637d.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rlib" "/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libstd-3dbe579904fbccbe.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libpanic_unwind-1f28113e3cabf146.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libhashbrown-1d571a23e43c22e2.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_alloc-715539682a8f65bc.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libbacktrace-91a5ceef68c6ea62.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_demangle-0dae21a0280e35c1.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libunwind-cb80fc0778a00db3.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcfg_if-e8471076907d728c.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/liblibc-2f0c44e2ccbc4584.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/liballoc-955c0e5036a23d55.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/librustc_std_workspace_core-825ae32895b6427e.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcore-2f7ed48dc9819ce8.rlib" "/home/user/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-emscripten/lib/libcompiler_builtins-88cd82a8320809f8.rlib" "-l" "c" "-l" "c" "-s" "BINARYEN_ASYNC_COMPILATION=0" "-s" "ERROR_ON_UNDEFINED_SYMBOLS=1" "-s" "ASSERTIONS=1" "-s" "ABORTING_MALLOC=0" "-Wl,--fatal-warnings"
= note: cache:INFO: generating system asset: is_vanilla.txt... (this will be cached in "/home/user/.emscripten_cache/is_vanilla.txt" for subsequent builds)
cache:INFO: - ok
shared:INFO: (Emscripten: settings file has changed, clearing cache)
shared:INFO: (Emscripten: Running sanity checks)
shared:WARNING: ignoring unsupported linker flag: `--fatal-warnings`
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
no symbols
/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/bin/llvm-nm: error: /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rlib(rust.metadata.bin) The end of the file was unexpectedly encountered
Traceback (most recent call last):
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/emcc.py", line 3681, in <module> sys.exit(run(sys.argv))
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/emcc.py", line 1968, in run
ensure_archive_index(input_file)
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/emcc.py", line 483, in ensure_archive_index
stdout = run_process([shared.LLVM_NM, '--print-armap', archive_file], stdout=PIPE).stdout
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/tools/shared.py", line 188, in run_process
result.check_returncode()
File "/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/emscripten/tools/shared.py", line 168, in check_returncode
raise Py2CalledProcessError(returncode=self.returncode, cmd=self.args, output=self.stdout, stderr=self.stderr)
tools.shared.Py2CalledProcessError: Command '['/mnt/c/Users/user/Documents/GitHub/emsdk/upstream/bin/llvm-nm', '--print-armap', '/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libcfg_if-e116f23270b0e1f3.rlib']' returned non-zero exit status 1
error: aborting due to previous error
error: could not compile `md5recursion`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name md5recursion src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C 'link-args=-s BINARYEN_ASYNC_COMPILATION=0' --verbose -C metadata=823367528ada3a9c --out-dir /mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps --target wasm32-unknown-emscripten -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps -L dependency=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/release/deps --extern md5=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/libmd5-6c115fe2d9abded8.rlib --extern rand=/mnt/c/Users/user/Documents/GitHub/golem-tasks/gwasm/md5-recursion/target/wasm32-unknown-emscripten/release/deps/librand-a5c352c4108b8c50.rlib` (exit code: 1)
golem-tasks/gwasm/md5-recursion on ξ master [!] is π¦ v0.1.0 via π¦ v1.40.0-nightly took 7s
β―
Looks like its the new feature I added to try to add indexes to archives that don't have them. Its seems that rust archives contains non-object files which casues llvm-nm
to error out.
@sbc100 ah, that would do it :+1:
@craigmayhew We've identified the problem, so as a temporary workaround until it gets fixed you might want to use emscripten 1.38.46-upstream, which is known to work with the latest nightly Rust.
This recently started compiling with nightly rust: https://travis-ci.org/craigmayhew/golem-tasks/builds/612564409
Was this a change in emscripten or on rust nightly?
It looks like your CI is always pulling in the latest emsdk release, so it looks like a new version of emscripten was released that included a fix.
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.
Closing because this appears to be an old bug that has been fixed.
Hello - I'm unable to debug this suffix error. I'm unsure if it is my code, a dependency, a missing config option or compile argument. What's the best way to find more information on this?