Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic building on Windows running: "rm" "-rf" ".termbox" (file not found) #23

Open
micahsnyder opened this issue Dec 7, 2020 · 3 comments

Comments

@micahsnyder
Copy link

I experienced a panic when building termbox-sys on Windows as a dependency of the rex crate.

The output looked like this:

error: failed to run custom build command for `termbox-sys v0.2.12`

Caused by:
  process didn't exit successfully: `C:\Users\build\AppData\Local\Temp\cargo-installKElqYD\release\build\termbox-sys-2c803b9c27aec6fd\build-script-build` (exit code: 101)
  --- stdout
  running: "rm" "-rf" ".termbox"

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', C:\Users\build\.cargo\registry\src\github.aaakk.us.kg-1ecc6299db9ec823\termbox-sys-0.2.12\build.rs:94:18
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `rex v0.1.0`, intermediate artifacts can be found at `C:\Users\build\AppData\Local\Temp\cargo-installKElqYD`

Caused by:
  build failed
@neelkarma
Copy link

neelkarma commented Mar 31, 2021

Same with me:

error: failed to run custom build command for `termbox-sys v0.2.12`

Caused by:
  process didn't exit successfully: `C:\Users\nsdjs\Documents\Programming\Rust\hackertype\target\debug\build\termbox-sys-2f9b5f7709c33c52\build-script-build` (exit code: 101)
  --- stdout
  running: "rm" "-rf" ".termbox"

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', C:\Users\nsdjs\.cargo\registry\src\github.aaakk.us.kg-1ecc6299db9ec823\termbox-sys-0.2.12\build.rs:94:18
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

For me, termbox-sys was a dependency of rustbox

@Ch3nYe
Copy link

Ch3nYe commented Dec 15, 2021

same with me:

error: failed to run custom build command for `termbox-sys v0.2.12`
Caused by:
  process didn't exit successfully: `E:\RustProject\iota\target\debug\build\termbox-sys-27c2e71ca970c78d\build-script-build` (exit code: 101)
  --- stdout
  running: "rm" "-rf" ".termbox"
  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "系统找不到指定的文件。" }',

wanna know how to solve this, 😢

@LoZeno
Copy link

LoZeno commented May 26, 2022

This error has never been addressed?
This command in the build.rs is simply unsupported in Windows...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants