Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking failed on x86_64-unknown-linux-musl #46

Closed
ghost opened this issue Dec 26, 2020 · 0 comments
Closed

Linking failed on x86_64-unknown-linux-musl #46

ghost opened this issue Dec 26, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 26, 2020

With the message below:
error: linking with cc failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-nostartfiles" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "-L" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib" "-L" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.12rmk9rvzlns7zhf.rcgu.o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.25l8plkl09hbok6m.rcgu.o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.2rmks8h95c3kewht.rcgu.o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.2v3r3n3ege94tc6e.rcgu.o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.3jb2585k2jdau34k.rcgu.o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.3sqtkbeed6hrp62x.rcgu.o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.5cm9whybi9q0xg43.rcgu.o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.g2if4g3o3oh38su.rcgu.o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.rup0hre6u0rzp45.rcgu.o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.xxrhm14gp67w38o.rcgu.o" "-o" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/otapoe_vm-d6b541c220b249e7.5aeb6833vv6skhv3.rcgu.o" "-Wl,--gc-sections" "-static-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/home/sisungo/Develop/otapoe_vm/target/debug/deps" "-L" "/home/sisungo/Develop/otapoe_vm/target/debug/build/libmimalloc-sys-2c140eb01e646e47/out/./build" "-L" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/libmimalloc-e53be566cdd19a19.rlib" "/home/sisungo/Develop/otapoe_vm/target/debug/deps/liblibmimalloc_sys-ace7ce786325f174.rlib" "-Wl,--start-group" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-aef788a827ed39d9.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-948ee5a1dc12aff2.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libminiz_oxide-cf9cf99fe7bc11c4.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libadler-9198ef8477845546.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libobject-31cd4c554343eb9c.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libaddr2line-edfc10b65c30d597.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libgimli-428d8c4adfb0fe39.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-be65424924cc009e.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown-96258a51a93ab994.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_alloc-6794214505c7ab6f.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-94c746280016be9c.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libcfg_if-9f5f39a64bb0053b.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-a6df7fa84d406b53.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-6f2ab3fc9d23772e.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-e7a65e8224e3fd05.rlib" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-162d017b99a78519.rlib" "-Wl,--end-group" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-a256d4446bd09d00.rlib" "-Wl,-Bdynamic" "-lmimalloc-secure-debug" "/home/sisungo/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o"
= note: /usr/bin/x86_64-unknown-linux-musl-ld: /home/sisungo/Develop/otapoe_vm/target/debug/build/libmimalloc-sys-2c140eb01e646e47/out/./build/libmimalloc-secure-debug.a(options.c.o): in function mi_option_init': /home/sisungo/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/libmimalloc-sys-0.1.18/c_src/mimalloc/src/options.c:492: undefined reference to toupper'
/usr/bin/x86_64-unknown-linux-musl-ld: /home/sisungo/Develop/otapoe_vm/target/debug/build/libmimalloc-sys-2c140eb01e646e47/out/./build/libmimalloc-secure-debug.a(options.c.o): in function mi_out_stderr': /home/sisungo/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/libmimalloc-sys-0.1.18/c_src/mimalloc/src/options.c:164: undefined reference to fputs'
/usr/bin/x86_64-unknown-linux-musl-ld: /home/sisungo/Develop/otapoe_vm/target/debug/build/libmimalloc-sys-2c140eb01e646e47/out/./build/libmimalloc-secure-debug.a(options.c.o): in function _mi_fputs': /home/sisungo/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/libmimalloc-sys-0.1.18/c_src/mimalloc/src/options.c:(.text._mi_fputs+0x26): undefined reference to stdout'
/usr/bin/x86_64-unknown-linux-musl-ld: /home/sisungo/Develop/otapoe_vm/target/debug/build/libmimalloc-sys-2c140eb01e646e47/out/./build/libmimalloc-secure-debug.a(options.c.o): in function mi_strlcat': /home/sisungo/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/libmimalloc-sys-0.1.18/c_src/mimalloc/src/options.c:401: undefined reference to strncat'
/usr/bin/x86_64-unknown-linux-musl-ld: /home/sisungo/Develop/otapoe_vm/target/debug/build/libmimalloc-sys-2c140eb01e646e47/out/./build/libmimalloc-secure-debug.a(options.c.o): in function mi_strnicmp': /home/sisungo/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/libmimalloc-sys-0.1.18/c_src/mimalloc/src/options.c:408: undefined reference to toupper'
/usr/bin/x86_64-unknown-linux-musl-ld: /home/sisungo/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/libmimalloc-sys-0.1.18/c_src/mimalloc/src/options.c:408: undefined reference to toupper' /usr/bin/x86_64-unknown-linux-musl-ld: /home/sisungo/Develop/otapoe_vm/target/debug/build/libmimalloc-sys-2c140eb01e646e47/out/./build/libmimalloc-secure-debug.a(init.c.o): in function mi_process_load':
/home/sisungo/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/libmimalloc-sys-0.1.18/c_src/mimalloc/src/init.c:447: undefined reference to atexit' /usr/bin/x86_64-unknown-linux-musl-ld: /home/sisungo/Develop/otapoe_vm/target/debug/build/libmimalloc-sys-2c140eb01e646e47/out/./build/libmimalloc-secure-debug.a(stats.c.o): in function mi_stat_process_info':
/home/sisungo/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/libmimalloc-sys-0.1.18/c_src/mimalloc/src/stats.c:498: undefined reference to getrusage' /usr/bin/x86_64-unknown-linux-musl-ld: /home/sisungo/Develop/otapoe_vm/target/debug/build/libmimalloc-sys-2c140eb01e646e47/out/./build/libmimalloc-secure-debug.a(os.c.o): in function mi_os_numa_node_countx':
/home/sisungo/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-4f7dbcce21e258a2/libmimalloc-sys-0.1.18/c_src/mimalloc/src/os.c:1159: undefined reference to `access'
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

@ghost ghost closed this as completed Jul 6, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants