error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
|
= note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-m64" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "-L" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.11h101obsoawol9k.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.11jgzwb08tcis4bt.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.11rsrl2evujggt1p.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.12446oaoz0kg15aw.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.17mxm1x2u8fmu5u2.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.18oa3hl3lehe5tm.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.19jrxxzcdvvz09ib.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.1b2clgrthdqr131x.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.1fds89vs71zjrx9v.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.1fyny41q1evvtucg.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.1t0wk8s3pm16k72g.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.227awmg2gscdenvd.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.24epgk42r5zt2lo9.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.2bypgwvxrkcntgd6.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.2nhwc110agxfi8mz.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.2v65dn4ejefon8d.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.2xnb9eh7473h8j96.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.31vcr0pg99dxbiff.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.3ryx37cdyl2fpwid.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.3tg4bnrda0kiirw.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.43qk031w6iboju6h.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.45nspmr9mxu4586o.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.45pq0hqv2wdq7j37.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.48raa7nzp8g3m20o.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.4dxit4ds0tx2v1m9.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.4hj7cffnz20rkk6m.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.4kimm7r97d3vckw1.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.4u1bflxhprlkd0g0.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.4whoqmo406gls02h.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.4ztayfyv926u2olh.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.4zyhcj74xblvjk8c.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.50cjh2ppf5rxe7ow.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.536s15pbs6rws3fo.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.5gqvf5p31n0dd4pn.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.7vpihhv1udyocq2.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.cvm8yxnypli2rzx.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.eehmdzmpgajz13l.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.lg7q8bjb0g1xgi9.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.mxw4u2flyo9m9hw.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.oai036m3wim21r1.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.qda9tcx23ft1cuy.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.tjcjywktr4oe10u.rcgu.o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.zu6m8zv7ferx3qs.rcgu.o" "-o" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.exe" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\examples\\ch12-160a1eb4ca2fb539.3lhi0sxrdn6bhpjt.rcgu.o" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "C:\\dev_workspace\\rust_learning\\geekbang_rust\\target\\debug\\deps" "-L" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,--start-group" "-Wl,-Bstatic" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-0caf4d662a4ef5f8.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libpanic_unwind-8a59b16c39611151.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libobject-e13e98fb6ab0eff1.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libaddr2line-59ff01db0f1b8d16.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libgimli-62d802be845390cf.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_demangle-5e0f7ff3c15fc8e2.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libhashbrown-a38440dc081fef14.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_alloc-b9a3b45dfac82ae1.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunwind-4fd14f24bde027d2.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcfg_if-f4096be20188f30b.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-af13a5c5272cb500.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-06222cee570f8141.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_core-2486433ecd174ccd.rlib" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-fe3777168aed5f4e.rlib" "-Wl,--end-group" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-46cac4d8e27c6a45.rlib" "-Wl,-Bdynamic" "-ladvapi32" "-lws2_32" "-luserenv" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "C:\\Users\\user\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
= note: C:\dev_workspace\rust_learning\geekbang_rust\target\debug\examples\ch12-160a1eb4ca2fb539.11h101obsoawol9k.rcgu.o: In function `core::result::Result<T,E>::unwrap':
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib/rustlib/src/rust\library\core\src/result.rs:970: undefined reference to `_Unwind_Resume'
C:\dev_workspace\rust_learning\geekbang_rust\target\debug\examples\ch12-160a1eb4ca2fb539.11h101obsoawol9k.rcgu.o: In function `core::result::Result<T,E>::map_err':
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib/rustlib/src/rust\library\core\src/result.rs:592: undefined reference to `_Unwind_Resume'
C:\dev_workspace\rust_learning\geekbang_rust\target\debug\examples\ch12-160a1eb4ca2fb539.11h101obsoawol9k.rcgu.o: In function `core::result::Result<T,E>::map_err':
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib/rustlib/src/rust\library\core\src/result.rs:592: undefined reference to `_Unwind_Resume'
C:\dev_workspace\rust_learning\geekbang_rust\target\debug\examples\ch12-160a1eb4ca2fb539.12446oaoz0kg15aw.rcgu.o: In function `core::cmp::max_by':
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib/rustlib/src/rust\library\core\src/cmp.rs:1010: undefined reference to `_Unwind_Resume'
C:\dev_workspace\rust_learning\geekbang_rust\target\debug\examples\ch12-160a1eb4ca2fb539.19jrxxzcdvvz09ib.rcgu.o: In function `alloc::raw_vec::RawVec<T,A>::allocate_in':
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib/rustlib/src/rust\library\alloc\src/raw_vec.rs:173: undefined reference to `_Unwind_Resume'
C:\dev_workspace\rust_learning\geekbang_rust\target\debug\examples\ch12-160a1eb4ca2fb539.19jrxxzcdvvz09ib.rcgu.o:C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib/rustlib/src/rust\library\alloc\src/raw_vec.rs:154: more undefined references to `_Unwind_Resume' follow
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-8a59b16c39611151.rlib(panic_unwind-8a59b16c39611151.panic_unwind.38mlervg-cgu.0.rcgu.o): In function `panic_unwind::real_imp::panic':
/rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\panic_unwind\src/gcc.rs:62: undefined reference to `_Unwind_RaiseException'
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-8a59b16c39611151.rlib(panic_unwind-8a59b16c39611151.panic_unwind.38mlervg-cgu.0.rcgu.o): In function `rust_eh_personality':
/rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\panic_unwind\src/gcc.rs:273: undefined reference to `_GCC_specific_handler'
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libobject-e13e98fb6ab0eff1.rlib(object-e13e98fb6ab0eff1.object.850eifmv-cgu.0.rcgu.o):object.850eifmv-cg:(.text+0xb7a1): undefined reference to `_Unwind_Resume'
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libobject-e13e98fb6ab0eff1.rlib(object-e13e98fb6ab0eff1.object.850eifmv-cgu.0.rcgu.o):object.850eifmv-cg:(.text+0x12667): undefined reference to `_Unwind_Resume'
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libobject-e13e98fb6ab0eff1.rlib(object-e13e98fb6ab0eff1.object.850eifmv-cgu.0.rcgu.o):object.850eifmv-cg:(.text+0x185fa): undefined reference to `_Unwind_Resume'
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libgimli-62d802be845390cf.rlib(gimli-62d802be845390cf.gimli.u8xany3a-cgu.0.rcgu.o):gimli.u8xany3a-cgu:(.text+0x2955): undefined reference to `_Unwind_Resume'
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libgimli-62d802be845390cf.rlib(gimli-62d802be845390cf.gimli.u8xany3a-cgu.0.rcgu.o):gimli.u8xany3a-cgu:(.text+0x2a54): undefined reference to `_Unwind_Resume'
C:\Users\user\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libgimli-62d802be845390cf.rlib(gimli-62d802be845390cf.gimli.u8xany3a-cgu.0.rcgu.o):gimli.u8xany3a-cgu:(.text+0x2c7e): more undefined references to `_Unwind_Resume' follow
collect2.exe: error: ld returned 1 exit status
mingw w64 6.0 gcc version 8.1.0 win10,rustc 1.48.0
1
共 1 条评论, 1 页
评论区
写评论x86_64-w64-mingw32-gcc
?windows上的mingw不是这个名字吧
总觉得这是32bit的gcc