-
Notifications
You must be signed in to change notification settings - Fork 3k
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
alacritty 0.9.0 / v0.10.0-dev fails to compile on OpenBSD 6.9-current #5422
Comments
I've created #5423 hope that's fine. |
Do you have any arguments why this should be added to Alacritty as a permanent thing? Either documentation or build.rs? Otherwise I'd advocate for leaving it up to OpenBSD users to figure out how to make compilers work with their operating system. |
|
I've found this stackoverflow question with nice answers which explain the different ways this can be solved without the maintainer changing cargo the build or modifying the code here. Some of this can be specified in [build]
rustflags = ["-L","/usr/local/lib"] I'm now waiting for a reply by the rust/lang maintainer as I wish that cargo and alacritty (or any other future rust project) work out of the box in OpenBSD without looking for this hack. |
Answering as OpenBSD lang/rust maintainer. The problem is related to Any programs using this crate on OpenBSD (or NetBSD) will have the same problem. The right solution would be Regarding the workaround, passing |
Thanks for looking into this and sending a PR @semarie. This should get resolved upstream relatively quickly together with a patch release. At that point the propagation of the dependency will hopefully take care of the problem by itself over time. |
After installing as written in the
INSTALL.md
, and runningcargo build --release
at last step of compilation it fails to compile the program. At first glance it looks like missing something in thebuild.rs
but I'm not a Rust expert to say this.The same happens with
cargo install alacritty
.System
OS: OpenBSD 6.9-current
Version: failed to compile
alacritty v0.9.0
/alacritty v0.10.0-dev
the error is the sameLinux/BSD: Xenocara, i3
Logs
But I have
libxkbcommon
:So I think I should probably say somewhere to get also the
/usr/local/lib/
, but this looks awkward as it could have failed somewhere else.Solution
While this get fixed,
RUSTFLAGS='-L/usr/local/lib' cargo build --release
.In
alacritty/build.rs
, in themain
function add the following:println!(r"cargo:rustc-link-search=/usr/local/lib")
The text was updated successfully, but these errors were encountered: