无法 运行 为“time v0.1.25”自定义构建命令
Failed to run custom build command for `time v0.1.25`
我正在尝试使用 cargo build --release
编译脚本但得到以下输出 (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
这是我要编译的script
我需要 64 位版本的 gcc windows:http://mingw-w64.org
现在工作得很好。
我正在尝试使用 cargo build --release
编译脚本但得到以下输出 (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
这是我要编译的script
我需要 64 位版本的 gcc windows:http://mingw-w64.org
现在工作得很好。