bitemyapp / brotli2-rs

Brotli encoders/decoers for Rust
Apache License 2.0
28 stars 13 forks source link

failed to run custom build command for `brotli-sys v0.3.2` #34

Closed XiaoZuanFeng001 closed 3 years ago

XiaoZuanFeng001 commented 3 years ago

Hello,how can i solve this problem?

rust target

nightly-x86_64-pc-windows-gnu (default)
rustc 1.49.0-nightly (8dae8cdcc 2020-10-12)

gcc version

gcc --version
gcc (MinGW.org GCC-6.3.0-1) 6.3.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Error Msg

   Compiling brotli-sys v0.3.2
   Compiling trust-dns-resolver v0.19.6
   Compiling actix-server v1.0.4
   Compiling actix-tls v2.0.0
   Compiling actix-testing v1.0.1
   Compiling actix-connect v2.0.0
The following warnings were emitted during compilation:

warning: brotli/common/dictionary.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
warning:  /* Copyright 2013 Google Inc. All Rights Reserved.
warning:

error: failed to run custom build command for `brotli-sys v0.3.2`

Caused by:
  process didn't exit successfully: `D:\Rust\src\actix_web_demo\target\debug\build\brotli-sys-562c09067760e114\build-script-build` (exit code: 1)
  --- stdout
  cargo:include=C:\Users\z00355984\.cargo\registry\src\mirrors.tools.huawei.com-530b4d703ccc752a\brotli-sys-0.3.2\brotli/include
  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,sse,sse2")
  running: "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "brotli/include" "-o" "D:\\Rust\\src\\actix_web_demo\\target\\debug\\build\\brotli-sys-ad5765acf3210d6b\\out\\brotli/common/dictionary.o" "-c" "brotli/common/dictionary.c"
  cargo:warning=brotli/common/dictionary.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
  cargo:warning= /* Copyright 2013 Google Inc. All Rights Reserved.
  cargo:warning=
  exit code: 1

  --- stderr
  fatal: not a git repository (or any of the parent directories): .git

  error occurred: Command "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "brotli/include" "-o" "D:\\Rust\\src\\actix_web_demo\\target\\debug\\build\\brotli-sys-ad5765acf3210d6b\\out\\brotli/common/dictionary.o" "-c" "brotli/common/dictionary.c" with args "gcc.exe" did not execute successfully (status code exit code: 1).

warning: build failed, waiting for other jobs to finish...
error: build failed
XiaoZuanFeng001 commented 3 years ago

I use nightly-x86_64-pc-windows-msvc (default) solved this problem..