You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: this might be a duplicate of #66916, altough this is on stable and that's on nightly, if people prefer to close this and follow there i'm fine with that.
$ cargo --version
cargo 1.40.0 (bc8e4c8be 2019-11-22)
$ rustc --version
rustc 1.40.0 (73528e339 2019-12-16)
$ cargo install --force cargo-web
...
Replaced package `cargo-web v0.6.26` with `cargo-web v0.6.26` (executable `cargo-web`)
$ mkdir aaa
$ cd aaa
$ cargo init --lib
$ cargo web test --target=asmjs-unknown-emscripten
Compiling aaa v0.1.0 (/home/elichai2/gits/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/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.16wuxgcw1dyeug54.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.24edp0pkhkg3bzaj.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.258alywq8rkbip0o.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.34unkmon762a3l3x.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.3pktckg11sdl5ck1.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.3z4hvcq108xn0or8.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.43ayxfsvk5k64b02.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.477onwm48yoaqbfl.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.atbcd4y8pa7l35x.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.dg7rylx8w3x32p9.rcgu.o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.xwly54jwd6by22d.rcgu.o" "-o" "/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.js" "-s" "EXPORTED_FUNCTIONS=[\"_main\",\"_rust_eh_personality\"]" "/home/elichai2/gits/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/aaa/target/asmjs-unknown-emscripten/debug/deps" "-L" "/home/elichai2/gits/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/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.16wuxgcw1dyeug54.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.24edp0pkhkg3bzaj.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.258alywq8rkbip0o.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.34unkmon762a3l3x.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.3pktckg11sdl5ck1.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.3z4hvcq108xn0or8.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.43ayxfsvk5k64b02.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.477onwm48yoaqbfl.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.atbcd4y8pa7l35x.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.dg7rylx8w3x32p9.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.xwly54jwd6by22d.rcgu.o is not valid LLVM bitcode
WARNING:root:/home/elichai2/gits/aaa/target/asmjs-unknown-emscripten/debug/deps/aaa-aaf4c1111a16ca77.430bac2vwk4l4tb7.rcgu.o is not valid LLVM bitcode
WARNING:root:object /tmp/emscripten_temp_jx65zhv2_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_jx65zhv2_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_jx65zhv2_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_pr5r_nkl_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_pr5r_nkl_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_pr5r_nkl_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_tyetv4g4_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_tyetv4g4_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_tyetv4g4_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__gs_bg8f_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__gs_bg8f_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp__gs_bg8f_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_r5r2ymng_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_r5r2ymng_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_r5r2ymng_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_19s2rd2e_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_19s2rd2e_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_19s2rd2e_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_2u36zesx_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_2u36zesx_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_2u36zesx_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_0qwfjioi_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_0qwfjioi_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_0qwfjioi_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_1220va1l_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_1220va1l_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_1220va1l_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_iod_69_q_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_iod_69_q_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_iod_69_q_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_xhy85lyt_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_xhy85lyt_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_xhy85lyt_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_764uncw5_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_764uncw5_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_764uncw5_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_c1fa4aha_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_c1fa4aha_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_c1fa4aha_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_3ntn2y4z_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_3ntn2y4z_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_3ntn2y4z_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_37_t12la_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_37_t12la_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_37_t12la_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_yeus7_03_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_yeus7_03_archive_contents/rust.metadata.bin is not valid according to llvm-nm, cannot link
WARNING:root:object /tmp/emscripten_temp_yeus7_03_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_b1nomc3g_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_b1nomc3g_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_b1nomc3g_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_v6lj7yu5_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_v6lj7yu5_archive_contents/rust.metadata.bin is not LLVM bitcode, cannot link
WARNING:root:object /tmp/emscripten_temp_v6lj7yu5_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
EDIT: this might be a duplicate of #66916, altough this is on stable and that's on nightly, if people prefer to close this and follow there i'm fine with that.
Related koute/cargo-web#233
The text was updated successfully, but these errors were encountered: