Failed to run custom build command for `time v0.1.25`

时间:2015-04-29 00:25:24

标签: rust

I am trying to compile a script using cargo build --release but get the following output (full stacktrace):

running: "gcc" "-O0" "-c" "-ffunction-sections" "-fdata-sections" "-mwin32" "-m64" "-fPIC" "C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\time-0.1.25\src/time_helpers.c" "-o" "D:\Projects\hots-unpack\target\release\build\time-e758cbe877e9589d\out\src\time_helpers.o"     

failed to run custom build command for `time v0.1.25`

Process didn't exit successfully: `D:\Projects\hots-unpack\target\release\build\time-e758cbe877e9589d\build-script-build` (exit code: 101)

--- stderr
thread '<main>' panicked at 'explicit panic', C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\gcc-0.3.4\src\lib.rs:380

This is the script I want to compile

1 个答案:

答案 0 :(得分:2)

我需要64位版本的gcc for windows:http://mingw-w64.org

现在像魅力一样工作。