tmux-thumbs: Error building (termbox) on macOS
I am getting the following error when attempting to build this crate on macOS Catalina (10.15.3 (19D76)):
❯ env RUST_BACKTRACE=1 cargo build
Compiling termbox-sys v0.2.11
Compiling num-traits v0.1.43
Compiling regex v1.3.1
Compiling tempfile v3.1.0
Compiling gag v0.1.10
error: failed to run custom build command for `termbox-sys v0.2.11`
Caused by:
process didn't exit successfully: `/Users/jonathan/.tmux/plugins/tmux-thumbs/target/debug/build/termbox-sys-c35f0e040836f872/build-script-build` (exit code: 101)
--- stdout
running: "rm" "-rf" ".termbox"
running: "git" "clone" "https://github.com/nsf/termbox" ".termbox"
waf configure: setting CFLAGS to: `-m64 -fPIC`
running: "./waf" "configure" "--prefix=/"
Setting top to : /Users/jonathan/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox
Setting out to : /Users/jonathan/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.11/.termbox/build
Checking for 'clang' (C compiler) : /usr/bin/clang
'configure' finished successfully (0.227s)
--- stderr
Cloning into '.termbox'...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:1188:5
stack backtrace:
0: std::sys_common::at_exit_imp::push
1: core::fmt::ArgumentV1::show_usize
2: std::io::Write::write_fmt
3: std::panicking::default_hook::{{closure}}
4: std::panicking::default_hook
5: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
6: std::panicking::try::do_call
7: core::panicking::panic_fmt
at src/libcore/panicking.rs:84
8: core::result::unwrap_failed
at src/libcore/result.rs:1188
9: core::result::Result<T,E>::unwrap
at /rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8/src/libcore/result.rs:956
10: build_script_build::run
at ./build.rs:88
11: build_script_build::configure
at ./build.rs:58
12: build_script_build::main
at ./build.rs:11
13: std::rt::lang_start::{{closure}}
14: std::panicking::try::do_call
15: panic_unwind::dwarf::eh::read_encoded_pointer
16: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
17: std::rt::lang_start
18: build_script_build::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 22 (11 by maintainers)
The branch was merged! 🚀 Also I enabled again the mac build in CI. Closing this issue!
It seems that the termion branch solves the long line issue too. 💪
I start to feel really comfortable with the stability of this branch. So the merge will be sooner than later.
Nice! I have a working branch using
termion💪 . I want to review it a bit before release it.@fcsonline 👇
It seems that rustbox crate is not maintained. I’ll try to find an alternative. Something like https://github.com/redox-os/termion
@avshyz and @rafi I just pushed new code in that branch. Review it because I think I fixed the glitches you are talking about.
Double-check you use the last code because I force pushed the branch.
Perfect, now it is time to rustbox to update the dependency 🤞 :
https://github.com/gchp/rustbox