< 返回版块

Yasinli29 发表于 2021-05-01 12:05

Tags:wasm-pack

cargo install wasm-pack 前面下载正常。 在不同PC 安装 wasm-pack 都会存在安装失败的情况

error: failed to run custom build command for libz-sys v1.1.3

Caused by: process didn't exit successfully: C:\Users\Yasin\AppData\Local\Temp\cargo-install3vbZ04\release\build\libz-sys-502818c0cbd60791\build-script-build (exit code: 1) --- stdout cargo:rerun-if-env-changed=LIBZ_SYS_STATIC cargo:rerun-if-changed=build.rs cargo:rerun-if-env-changed=ZLIB_NO_PKG_CONFIG cargo:rerun-if-env-changed=PKG_CONFIG cargo:rerun-if-env-changed=ZLIB_STATIC cargo:rerun-if-env-changed=ZLIB_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-gnu cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_PATH cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-gnu cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-gnu cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_gnu cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR TARGET = Some("x86_64-pc-windows-gnu") OPT_LEVEL = Some("3") 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("false") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/zlib" "-o" "C:\Users\Yasin\AppData\Local\Temp\cargo-install3vbZ04\release\build\libz-sys-42c9846063065e49\out\lib\src/zlib/adler32.o" "-c" "src/zlib/adler32.c" cargo:warning=cc1.exe: sorry, unimplemented: 64-bit mode not compiled in exit code: 1

--- stderr

error occurred: Command "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "src/zlib" "-o" "C:\Users\Yasin\AppData\Local\Temp\cargo-install3vbZ04\release\build\libz-sys-42c9846063065e49\out\lib\src/zlib/adler32.o" "-c" "src/zlib/adler32.c" with args "gcc.exe" did not execute successfully (status code exit code: 1).

warning: build failed, waiting for other jobs to finish... error: failed to run custom build command for bzip2-sys v0.1.10+1.0.8

Caused by: process didn't exit successfully: C:\Users\Yasin\AppData\Local\Temp\cargo-install3vbZ04\release\build\bzip2-sys-6511087d0d8a5ffc\build-script-build (exit code: 1) --- stdout TARGET = Some("x86_64-pc-windows-gnu") OPT_LEVEL = Some("3") 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("false") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "bzip2-1.0.8" "-D_WIN32" "-DBZ_EXPORT" "-D_FILE_OFFSET_BITS=64" "-DBZ_NO_STDIO" "-o" "C:\Users\Yasin\AppData\Local\Temp\cargo-install3vbZ04\release\build\bzip2-sys-d19d1a652ce3d422\out\lib\bzip2-1.0.8/blocksort.o" "-c" "bzip2-1.0.8/blocksort.c" cargo:warning=cc1.exe: sorry, unimplemented: 64-bit mode not compiled in exit code: 1

--- stderr

error occurred: Command "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "bzip2-1.0.8" "-D_WIN32" "-DBZ_EXPORT" "-D_FILE_OFFSET_BITS=64" "-DBZ_NO_STDIO" "-o" "C:\Users\Yasin\AppData\Local\Temp\cargo-install3vbZ04\release\build\bzip2-sys-d19d1a652ce3d422\out\lib\bzip2-1.0.8/blocksort.o" "-c" "bzip2-1.0.8/blocksort.c" with args "gcc.exe" did not execute successfully (status code exit code: 1).

warning: build failed, waiting for other jobs to finish... error: failed to compile wasm-pack v0.9.1, intermediate artifacts can be found at C:\Users\Yasin\AppData\Local\Temp\cargo-install3vbZ04

Caused by: build failed

评论区

写评论

还没有评论

1 共 0 条评论, 1 页