Compiling aaa v0.1.0 (/home/elichai2/gits/bitcoin_hashes/aaa)
error: linking with `emcc` failed: exit code: 1
|
= note: "emcc" "-s" "DISABLE_EXCEPTION_CATCHING=0" "-L" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.16wuxgcw1dyeug54.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.24edp0pkhkg3bzaj.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.258alywq8rkbip0o.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.34unkmon762a3l3x.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.3pktckg11sdl5ck1.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.3z4hvcq108xn0or8.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.43ayxfsvk5k64b02.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.477onwm48yoaqbfl.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.atbcd4y8pa7l35x.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.dg7rylx8w3x32p9.rcgu.o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.xwly54jwd6by22d.rcgu.o" "-o" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.js" "-s" "EXPORTED_FUNCTIONS=[\"_main\",\"_rust_eh_personality\"]" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.430bac2vwk4l4tb7.rcgu.o" "-O0" "--memory-init-file" "0" "-g4" "-s" "DEFAULT_LIBRARY_FUNCS_TO_INCLUDE=[]" "-L" "/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps" "-L" "/home/elichai2/gits/bitcoin_hashes/aaa/target/debug/deps" "-L" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libtest-066893dc014e0f4a.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libterm-5d0b72d78df3d271.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libgetopts-fd8e55a94d028ed2.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libunicode_width-40a11d8b6e7e7ce9.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/librustc_std_workspace_std-ed295c24ef27d5b6.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libstd-b6414ae168385702.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libpanic_unwind-efbc2c947951b8cc.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libhashbrown-b177382d9a04ffbe.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/librustc_std_workspace_alloc-ba7d2244d33447d5.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libbacktrace-39569dc87e4ea301.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/librustc_demangle-f83165e777dccb8d.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libunwind-10b085de263b1750.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libcfg_if-9a4a22edf44da957.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/liblibc-68fabc677efa98de.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/liballoc-026dc0061b48e8b6.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/librustc_std_workspace_core-7bf75bb619341145.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libcore-ef54709e300503ed.rlib" "/home/elichai2/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/asmjs-unknown-emscripten/lib/libcompiler_builtins-4ed27d8420cb4abc.rlib" "-l" "c" "-s" "NO_EXIT_RUNTIME=0" "-s" "ALLOW_MEMORY_GROWTH=0" "-s" "ERROR_ON_UNDEFINED_SYMBOLS=1" "-s" "ASSERTIONS=1" "-s" "ABORTING_MALLOC=0" "-Wl,--fatal-warnings" "-s" "WASM=0"
= note: /home/elichai2/.local/share/cargo-web/emscripten/x86_64-unknown-linux-gnu/emscripten/emcc.py:812: SyntaxWarning: "is not" with a literal. Did you mean "!="?
newargs = [arg for arg in newargs if arg is not '']
/home/elichai2/.local/share/cargo-web/emscripten/x86_64-unknown-linux-gnu/emscripten/emcc.py:923: SyntaxWarning: "is not" with a literal. Did you mean "!="?
newargs = [a for a in newargs if a is not '']
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.16wuxgcw1dyeug54.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.24edp0pkhkg3bzaj.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.258alywq8rkbip0o.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.34unkmon762a3l3x.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.3pktckg11sdl5ck1.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.3z4hvcq108xn0or8.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.43ayxfsvk5k64b02.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.477onwm48yoaqbfl.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.atbcd4y8pa7l35x.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.dg7rylx8w3x32p9.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.xwly54jwd6by22d.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/bitcoin_hashes/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.430bac2vwk4l4tb7.rcgu.o is not valid LLVM bitcode
WARNING:root:object /tmp/emscripten_temp_wtthddf__archive_contents/test-066893dc014e0f4a.test.br478p7g-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_wtthddf__archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_wtthddf__archive_contents/test-066893dc014e0f4a.test.br478p7g-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_3n3lqjjs_archive_contents/term-5d0b72d78df3d271.term.bcaubu7c-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_3n3lqjjs_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_3n3lqjjs_archive_contents/term-5d0b72d78df3d271.term.bcaubu7c-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_iboucjx4_archive_contents/getopts-fd8e55a94d028ed2.getopts.d5vrqcjt-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_iboucjx4_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_iboucjx4_archive_contents/getopts-fd8e55a94d028ed2.getopts.d5vrqcjt-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_qyi9o3d1_archive_contents/unicode_width-40a11d8b6e7e7ce9.unicode_width.dpuwlse5-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_qyi9o3d1_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_qyi9o3d1_archive_contents/unicode_width-40a11d8b6e7e7ce9.unicode_width.dpuwlse5-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp__vklq44m_archive_contents/rustc_std_workspace_std-ed295c24ef27d5b6.rustc_std_workspace_std.7n6ompc4-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp__vklq44m_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp__vklq44m_archive_contents/rustc_std_workspace_std-ed295c24ef27d5b6.rustc_std_workspace_std.7n6ompc4-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_0zduqeud_archive_contents/std-b6414ae168385702.std.2w1w7wxd-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_0zduqeud_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_0zduqeud_archive_contents/std-b6414ae168385702.std.2w1w7wxd-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_y6n4l_sl_archive_contents/panic_unwind-efbc2c947951b8cc.panic_unwind.ceedba3x-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_y6n4l_sl_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_y6n4l_sl_archive_contents/panic_unwind-efbc2c947951b8cc.panic_unwind.ceedba3x-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_fl6ck9hi_archive_contents/hashbrown-b177382d9a04ffbe.hashbrown.5wdiqr05-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_fl6ck9hi_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_fl6ck9hi_archive_contents/hashbrown-b177382d9a04ffbe.hashbrown.5wdiqr05-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_67e7pigu_archive_contents/rustc_std_workspace_alloc-ba7d2244d33447d5.rustc_std_workspace_alloc.f52ee55g-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_67e7pigu_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_67e7pigu_archive_contents/rustc_std_workspace_alloc-ba7d2244d33447d5.rustc_std_workspace_alloc.f52ee55g-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_ttebr188_archive_contents/backtrace-39569dc87e4ea301.backtrace.9782dyql-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_ttebr188_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_ttebr188_archive_contents/backtrace-39569dc87e4ea301.backtrace.9782dyql-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_yh9_ggsk_archive_contents/rustc_demangle-f83165e777dccb8d.rustc_demangle.chq6831j-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_yh9_ggsk_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_yh9_ggsk_archive_contents/rustc_demangle-f83165e777dccb8d.rustc_demangle.chq6831j-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_wcm6ratx_archive_contents/unwind-10b085de263b1750.unwind.5f5k4upn-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_wcm6ratx_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_wcm6ratx_archive_contents/unwind-10b085de263b1750.unwind.5f5k4upn-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_s2_7o293_archive_contents/cfg_if-9a4a22edf44da957.cfg_if.9yxovj8b-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_s2_7o293_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_s2_7o293_archive_contents/cfg_if-9a4a22edf44da957.cfg_if.9yxovj8b-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_et3cg7py_archive_contents/libc-68fabc677efa98de.libc.8pvg1ha7-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_et3cg7py_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_et3cg7py_archive_contents/libc-68fabc677efa98de.libc.8pvg1ha7-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_pe_qm_bf_archive_contents/alloc-026dc0061b48e8b6.alloc.48qho5fu-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_pe_qm_bf_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_pe_qm_bf_archive_contents/alloc-026dc0061b48e8b6.alloc.48qho5fu-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_4g4x6i8c_archive_contents/rustc_std_workspace_core-7bf75bb619341145.rustc_std_workspace_core.6bl4gum2-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_4g4x6i8c_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_4g4x6i8c_archive_contents/rustc_std_workspace_core-7bf75bb619341145.rustc_std_workspace_core.6bl4gum2-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_xtz8hsao_archive_contents/core-ef54709e300503ed.core.43xrgfui-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_xtz8hsao_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_xtz8hsao_archive_contents/core-ef54709e300503ed.core.43xrgfui-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_e25l1e3__archive_contents/compiler_builtins-4ed27d8420cb4abc.compiler_builtins.etpapbmw-cgu.0.rcgu.o is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_e25l1e3__archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_e25l1e3__archive_contents/compiler_builtins-4ed27d8420cb4abc.compiler_builtins.etpapbmw-cgu.0.rcgu.bc.z is not valid according to llvm-nm, cannot link
ERROR:root:undefined exported function: "_main"
error: aborting due to previous error
error: could not compile `aaa`.
To learn more, run the command again with --verbose.
error: build failed
steps to reproduce:
$ mkdir aaa
$ cd aaa
$ cargo new
$ cargo new --help
$ cargo init
$ cargo web test --target=asmjs-unknown-emscripten
stderr:
steps to reproduce: