Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Building in windows seems to require gcc? #72

Open
jjpepper opened this issue Nov 16, 2020 · 0 comments
Open

Building in windows seems to require gcc? #72

jjpepper opened this issue Nov 16, 2020 · 0 comments

Comments

@jjpepper
Copy link

I get this error in windows 10 building release build with cargo build --release.

   Compiling bincode v1.0.1
error: failed to run custom build command for `miniz-sys v0.1.11`

Caused by:
  process didn't exit successfully: `C:\Users\jesse\source\repos\github\xi-editor\xi-win\target\release\build\miniz-sys-201f847f1e1c804d\build-script-build` (exit code: 101)
  --- 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
  DEBUG = Some("false")
  running: "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-DMINIZ_NO_STDIO" "-DMINIZ_NO_ARCHIVE_APIS" "-DMINIZ_NO_ARCHIVE_WRITING_APIS" "-DMINIZ_NO_TIME" "-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES" "-o" "C:\\Users\\jesse\\source\\repos\\github\\xi-editor\\xi-win\\target\\release\\build\\miniz-sys-c81999ae0ba5eca0\\out\\miniz.o" "-c" "miniz.c"

  --- stderr
  thread 'main' panicked at '

  Internal error occurred: Failed to find tool. Is `gcc.exe` installed? (see https://github.com/alexcrichton/cc-rs#compile-time-requirements for help)

  ', C:\Users\jesse\.cargo\registry\src\github.com-1ecc6299db9ec823\cc-1.0.25\src\lib.rs:2260:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

My compiler version:

$ rustc --version
rustc 1.46.0 (04488afe3 2020-08-24)
@ghost ghost mentioned this issue Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant