BLAKE3-team / BLAKE3

the official Rust and C implementations of the BLAKE3 cryptographic hash function
Apache License 2.0
5.06k stars 346 forks source link

Error while compiling blake3 as dependency #394

Closed TuinboonDev closed 4 months ago

TuinboonDev commented 4 months ago

Hello, im facing and issue while running cargo run in my Rust project using bevy (bevy is using blake as dependency). Im getting this error, I see its something with gcc and cpp which I do have installed so I do not see an issue on my end. Does somebody know if this is a blake issue?

The following warnings were emitted during compilation:

warning: blake3@1.5.1: Compiler family detection failed due to error: ToolExecError: Command "gcc.exe" "-E" "D:\\Code\\voxel\\target\\debug\\build\\blake3-d13856d3f0d3967c\\out\\3729518873297885370detect_compiler_family.c" with args gcc.exe did not execute successfully (status code exit code: 1).
warning: blake3@1.5.1: Compiler family detection failed due to error: ToolExecError: Command "gcc.exe" "-E" "D:\\Code\\voxel\\target\\debug\\build\\blake3-d13856d3f0d3967c\\out\\12815125128098934799detect_compiler_family.c" with args gcc.exe did not execute successfully (status code exit code: 1).
warning: blake3@1.5.1: Compiler family detection failed due to error: ToolExecError: Command "gcc.exe" "-E" "D:\\Code\\voxel\\target\\debug\\build\\blake3-d13856d3f0d3967c\\out\\10015102449287916502detect_compiler_family.c" with args gcc.exe did not execute successfully (status code exit code: 1).
warning: blake3@1.5.1: The C compiler "gcc.exe" does not support -mavx512f and -mavx512vl.
warning: blake3@1.5.1: Warnings in CI are treated as errors. Build failed.

error: failed to run custom build command for `blake3 v1.5.1`

Caused by:
  process didn't exit successfully: `D:\Code\voxel\target\debug\build\blake3-f7284f303c4ac0bf\build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=CARGO_FEATURE_PURE
  cargo:rerun-if-env-changed=CARGO_FEATURE_NO_NEON
  HOST = Some("x86_64-pc-windows-gnu")
  TARGET = Some("x86_64-pc-windows-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-pc-windows-gnu
  CC_x86_64-pc-windows-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_pc_windows_gnu
  CC_x86_64_pc_windows_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:warning=Compiler family detection failed due to error: ToolExecError: Command "gcc.exe" "-E" "D:\\Code\\voxel\\target\\debug\\build\\blake3-d13856d3f0d3967c\\out\\3729518873297885370detect_compiler_family.c" with args gcc.exe did not execute successfully (status code exit code: 1).
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:warning=Compiler family detection failed due to error: ToolExecError: Command "gcc.exe" "-E" "D:\\Code\\voxel\\target\\debug\\build\\blake3-d13856d3f0d3967c\\out\\12815125128098934799detect_compiler_family.c" with args gcc.exe did not execute successfully (status code exit code: 1).
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-gnu
  CFLAGS_x86_64-pc-windows-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_gnu
  CFLAGS_x86_64_pc_windows_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  OPT_LEVEL = Some("0")
  cargo:warning=Compiler family detection failed due to error: ToolExecError: Command "gcc.exe" "-E" "D:\\Code\\voxel\\target\\debug\\build\\blake3-d13856d3f0d3967c\\out\\10015102449287916502detect_compiler_family.c" with args gcc.exe did not execute successfully (status code exit code: 1).
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,sse,sse2,sse3")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-gnu
  CFLAGS_x86_64-pc-windows-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_gnu
  CFLAGS_x86_64_pc_windows_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=The C compiler "gcc.exe" does not support -mavx512f and -mavx512vl.
  cargo:rerun-if-env-changed=BLAKE3_CI
  cargo:warning=Warnings in CI are treated as errors. Build failed.
warning: build failed, waiting for other jobs to finish...