sfackler / r2d2

A generic connection pool for Rust
Apache License 2.0
1.51k stars 82 forks source link

Internal error occurred: Command "gcc.exe" #80

Closed zhuxiujia closed 5 years ago

zhuxiujia commented 5 years ago

error: failed to run custom build command for miniz-sys v0.1.11 process didn't exit successfully: D:\Rust\Rd2dTest\target\debug\build\miniz-sys-d13c924666e24cd6\build-script-build (exit code: 101) --- stdout TARGET = Some("x86_64-pc-windows-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-pc-windows-gnu") CC_x86_64-pc-windows-gnu = None CC_x86_64_pc_windows_gnu = None HOST_CC = None CC = None CFLAGS_x86_64-pc-windows-gnu = None CFLAGS_x86_64_pc_windows_gnu = None HOST_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,mmx,sse,sse2") running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-DMINIZ_NO_STDIO" "-DMINIZ_NO_ARCHIVE_APIS" "-DMINIZ_NO_ARCHIVE_WRITING_APIS" "-DMINIZ_NO_TIME" "-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES" "-o" "D:\Rust\Rd2dTest\target\debug\build\miniz-sys-935e563594ae4ae2\out\miniz.o" "-c" "miniz.c" cargo:warning=cc1.exe: sorry, unimplemented: 64-bit mode not compiled in exit code: 1

--- stderr thread 'main' panicked at '

Internal error occurred: Command "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-DMINIZ_NO_STDIO" "-DMINIZ_NO_ARCHIVE_APIS" "-DMINIZ_NO_ARCHIVE_WRITING_APIS" "-DMINIZ_NO_TIME" "-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES" "-o" "D:\Rust\Rd2dTest\target\debug\build\miniz-sys-935e563594ae4ae2\out\miniz.o" "-c" "miniz.c" with args "gcc.exe" did not execute successfully (status code exit code: 1).

', C:\Users\xiujie.zhu.cargo\registry\src\github.com-1ecc6299db9ec823\cc-1.0.35\src\lib.rs:2398:5 stack backtrace: 0: std::sys_common::backtrace::_print at src\libstd\sys\windows\backtrace/mod.rs:95 at src\libstd\sys\windows\backtrace/mod.rs:82 at src\libstd\sys_common/backtrace.rs:71 1: std::panicking::default_hook::{{closure}} at src\libstd\sys_common/backtrace.rs:59 at src\libstd/panicking.rs:197 2: std::panicking::default_hook at src\libstd/panicking.rs:211 3: std::panicking::rust_panic_with_hook at src\libstd/panicking.rs:474 4: std::panicking::continue_panic_fmt at src\libstd/panicking.rs:381 5: std::panicking::begin_panic_fmt at src\libstd/panicking.rs:336 6: cc::fail at C:\Users\xiujie.zhu.cargo\registry\src\github.com-1ecc6299db9ec823\cc-1.0.35\src/lib.rs:2398 7: cc::Build::compile at C:\Users\xiujie.zhu.cargo\registry\src\github.com-1ecc6299db9ec823\cc-1.0.35\src/lib.rs:951 8: build_script_build::main at .\build.rs:23 9: std::rt::lang_start::{{closure}} at /rustc/474e7a6486758ea6fc761893b1a49cd9076fb0ab\src\libstd/rt.rs:64 10: std::panicking::try::do_call at src\libstd/rt.rs:49 at src\libstd/panicking.rs:293 11: _rust_maybe_catch_panic at src\libpanic_unwind/lib.rs:87 12: std::rt::lang_start_internal at src\libstd/panicking.rs:272 at src\libstd/panic.rs:388 at src\libstd/rt.rs:48 13: std::rt::lang_start at /rustc/474e7a6486758ea6fc761893b1a49cd9076fb0ab\src\libstd/rt.rs:64 14: main 15: _tmainCRTStartup 16: mainCRTStartup 17: unit_addrs_search 18: unit_addrs_search

sfackler commented 5 years ago

This was caused by the miniz-sys crate, not by r2d2.