Skip to content

Instantly share code, notes, and snippets.

@2075
Created September 14, 2020 17:44
Show Gist options
  • Save 2075/373c18d8e61bc3c279cd221cacec4639 to your computer and use it in GitHub Desktop.
Save 2075/373c18d8e61bc3c279cd221cacec4639 to your computer and use it in GitHub Desktop.
cargo +nightly build --target=wasm32-unknown-unknown
cargo +nightly build --target=wasm32-unknown-unknown  
warning: output filename collision.
The bin target `wasm-test` in package `wasm-test v1.0.0 (/Users/2075/dev/zero/interstellar/wasm-test)` has the same output filename as the lib target `wasm_test` in package `wasm-test v1.0.0 (/Users/2075/dev/zero/interstellar/wasm-test)`.
Colliding filename is: /Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.wasm
The output filenames should be unique.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
If this looks unexpected, it may be a bug in Cargo. Please file a bug report at
https://github.com/rust-lang/cargo/issues/ with as much information as you
can provide.
cargo 1.48.0-nightly (875e01232 2020-09-08) running on `x86_64-apple-darwin` target `wasm32-unknown-unknown`
First unit: Unit { pkg: Package { id: PackageId { name: "wasm-test", version: "1.0.0", source: "/Users/2075/dev/zero/interstellar/wasm-test" }, ..: ".." }, target: TargetInner { name: "wasm-test", doc: true, ..: with_path("/Users/2075/dev/zero/interstellar/wasm-test/src/main.rs", Edition2018) }, profile: Profile { ..: default_dev() }, kind: Target(CompileTarget { name: "wasm32-unknown-unknown" }), mode: Build, features: [] }
Second unit: Unit { pkg: Package { id: PackageId { name: "wasm-test", version: "1.0.0", source: "/Users/2075/dev/zero/interstellar/wasm-test" }, ..: ".." }, target: TargetInner { ..: lib_target("wasm_test", ["cdylib"], "/Users/2075/dev/zero/interstellar/wasm-test/src/lib.rs", Edition2018) }, profile: Profile { ..: default_dev() }, kind: Target(CompileTarget { name: "wasm32-unknown-unknown" }), mode: Build, features: [] }
Compiling wasm-test v1.0.0 (/Users/2075/dev/zero/interstellar/wasm-test)
error: linking with `rust-lld` failed: signal: 6
|
= note: "rust-lld" "-flavor" "wasm" "-z" "stack-size=1048576" "--stack-first" "--allow-undefined" "--fatal-warnings" "--no-demangle" "--export-dynamic" "--no-entry" "-L" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib" "-L" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/self-contained" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.2xzxszcqzhwohx66.rcgu.o" "-o" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.wasm" "--export=__heap_base" "--export=__data_end" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.3z7l7jkwlcwefvtt.rcgu.o" "--gc-sections" "--no-entry" "-O0" "-L" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps" "-L" "/Users/2075/dev/zero/interstellar/wasm-test/target/debug/deps" "-L" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libstd-dc7cc945e48cd893.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libpanic_abort-b9467ce5b34e8355.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libdlmalloc-984ee34ef8442045.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/librustc_demangle-9b9b15ac24e081c2.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libhashbrown-f9cf76d5e8726e17.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_alloc-27f4a501cd26f0c1.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libunwind-f740f5179070937f.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libcfg_if-0a48eb148ea51468.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/liblibc-c563bef2563f33ac.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/liballoc-3a6e2211446a0f13.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_core-bfe89f587d3bf9f7.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libcore-c83074681f2b006a.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e1980b88fd1d13d6.rlib"
= note: dyld: Library not loaded: @rpath/libLLVM.dylib
Referenced from: /Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld
Reason: image not found
error: aborting due to previous error
error: could not compile `wasm-test`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: linking with `rust-lld` failed: signal: 6
|
= note: "rust-lld" "-flavor" "wasm" "-z" "stack-size=1048576" "--stack-first" "--allow-undefined" "--fatal-warnings" "--no-demangle" "--export-dynamic" "--no-entry" "-L" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib" "-L" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/self-contained" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.16xqan6db4n54ed4.rcgu.o" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.1jil9hyki24grs1k.rcgu.o" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.1v0bu5q5y97okw1x.rcgu.o" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.2cimoc47ngjn2fvx.rcgu.o" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.2gz2gi30e2df3lfh.rcgu.o" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.2qo3uig44yu42wzg.rcgu.o" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.33jelramtihib1t.rcgu.o" "-o" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.wasm" "--export" "main" "--export=__heap_base" "--export=__data_end" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps/wasm_test.4hnc7fi9n636iiag.rcgu.o" "--gc-sections" "-O0" "-L" "/Users/2075/dev/zero/interstellar/wasm-test/target/wasm32-unknown-unknown/debug/deps" "-L" "/Users/2075/dev/zero/interstellar/wasm-test/target/debug/deps" "-L" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libstd-dc7cc945e48cd893.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libpanic_abort-b9467ce5b34e8355.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libdlmalloc-984ee34ef8442045.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/librustc_demangle-9b9b15ac24e081c2.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libhashbrown-f9cf76d5e8726e17.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_alloc-27f4a501cd26f0c1.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libunwind-f740f5179070937f.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libcfg_if-0a48eb148ea51468.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/liblibc-c563bef2563f33ac.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/liballoc-3a6e2211446a0f13.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/librustc_std_workspace_core-bfe89f587d3bf9f7.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libcore-c83074681f2b006a.rlib" "/Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/wasm32-unknown-unknown/lib/libcompiler_builtins-e1980b88fd1d13d6.rlib"
= note: dyld: Library not loaded: @rpath/libLLVM.dylib
Referenced from: /Users/2075/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld
Reason: image not found
error: aborting due to previous error
error: build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment