Cross install error

there are some error when i install cross use xargo
some infomation like this:
System:windows 10 enterprise
rust version:1.38 stable
oolchain:x86_64-pc-windows-gnu

the error message:
error: linking with gcc failed: exit code: 1
C:\Users\Administrator\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libbacktrace_sys-1b6210eebaee5bcd.rlib(alloc.o):alloc.c:(.text$__rbt_backtrace_alloc+0x31): undefined reference to __errno' C:\Users\Administrator\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libbacktrace_sys-1b6210eebaee5bcd.rlib(alloc.o):alloc.c:(.text$__rbt_backtrace_vector_grow+0xb1): undefined reference to __errno'
C:\Users\Administrator\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libbacktrace_sys-1b6210eebaee5bcd.rlib(alloc.o):alloc.c:(.text$__rbt_backtrace_vector_finish+0x51): undefined reference to __errno' C:\Users\Administrator\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libbacktrace_sys-1b6210eebaee5bcd.rlib(alloc.o):alloc.c:(.text$__rbt_backtrace_vector_release+0x41): undefined reference to __errno'
C:\Users\Administrator\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libbacktrace_sys-1b6210eebaee5bcd.rlib(posix.o):posix.c:(.text$__rbt_backtrace_open+0x2f): undefined reference to __errno' C:\Users\Administrator\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libbacktrace_sys-1b6210eebaee5bcd.rlib(posix.o):posix.c:(.text$__rbt_backtrace_open+0x39): more undefined references to __errno' follow

error: aborting due to previous error

error: failed to compile `xargo v0.3.16 (registry `https://mirrors.ustc.edu.cn/crates.io-index/`)`, intermediate artifacts can be found at `C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7`

Caused by:
  Could not compile `xargo`.

Caused by:
  process didn't exit successfully: `rustc --crate-name xargo C:\Users\Administrator\.cargo\registry\src\mirrors.ustc.edu.cn-b63e9dae659fc205\xargo-0.3.16\src\main.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=9e255a2d6ed3a311 -C extra-filename=-9e255a2d6ed3a311 --out-dir C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps -L dependency=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps --extern dirs=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libdirs-567c174e2f5427e1.rlib --extern error_chain=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps\liberror_chain-fce43448dc1f15b1.rlib --extern fs2=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libfs2-41bee84719c2b8cd.rlib --extern libc=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps\liblibc-7ee814547abf838c.rlib --extern rustc_version=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps\librustc_version-33c6144008cfc6f1.rlib --extern serde_json=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libserde_json-96bddb1bbd30e720.rlib --extern tempdir=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libtempdir-215e4bb85a623238.rlib --extern toml=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libtoml-beaa7c26857b6afc.rlib --extern walkdir=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\deps\libwalkdir-7fe345b1c083ae6d.rlib --cap-lints allow -L native=C:\Users\Administrator\.cargo\registry\src\mirrors.ustc.edu.cn-b63e9dae659fc205\winapi-x86_64-pc-windows-gnu-0.4.0\lib -L native=C:\Users\ADMINI~1\AppData\Local\Temp\cargo-installTfUGP7\release\build\backtrace-sys-29468820f4dfe6ea\out` (exit code: 1)

i guess maybe miss some lib?
pls help me!
thanks : )

You could try again with the msvc version of the windows toolchain. That one has beter interoperability with system libraries.

thanks for your reply,i have try msvc,and has other more error,maybe this gnu error is easy to fix? : )

maybe this gnu error is easy to fix?

I don't know.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.