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

Error compiling on alpine linux #95

Closed
jedahan opened this issue Sep 1, 2018 · 3 comments
Closed

Error compiling on alpine linux #95

jedahan opened this issue Sep 1, 2018 · 3 comments

Comments

@jedahan
Copy link
Contributor

jedahan commented Sep 1, 2018

Might be a termbox issue?

~ cat /etc/alpine-release
3.8.0

~ cargo version
cargo 1.28.0
error: failed to run custom build command for `termbox-sys v0.2.10`
process didn't exit successfully: `/tmp/cargo-installZ4DhuZ/release/build/termbox-sys-0ca8eb4d7f3df740/build-script-build` (exit code: 101)
--- stdout
running: "git" "clone" "https://github.com/nsf/termbox" ".termbox"

--- stderr
fatal: destination path '.termbox' already exists and is not an empty directory.
thread 'main' panicked at 'assertion failed: cmd.stdout(Stdio::inherit()).stderr(Stdio::inherit()).status().unwrap().success()', /home/micro/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.10/build.rs:87:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@jmacdonald
Copy link
Owner

Yep, looks like an issue with termbox-sys.

@jmacdonald
Copy link
Owner

I've put a temporary workaround in place. There are two build issues related to termbox at the moment:

  1. The termbox-sys crate doesn't clean itself (removing the old .termbox directory) before running its build steps again.
  2. The upstream termbox library itself doesn't work with Python 3.7. I've added a patch to termbox-sys that points the cloned termbox build script to python2, while we wait for a fix upstream.

@jedahan
Copy link
Contributor Author

jedahan commented Sep 3, 2018

Thank you!

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

2 participants