Skip to content
New issue

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

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

Already on GitHub? # to your account

Error making wezterm-git when updating from AUR #3020

Closed
ErlanRG opened this issue Jan 27, 2023 · 3 comments
Closed

Error making wezterm-git when updating from AUR #3020

ErlanRG opened this issue Jan 27, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@ErlanRG
Copy link

ErlanRG commented Jan 27, 2023

Build Environment (please complete the following information):

  • OS:
    Linux X11
    LSB Version: n/a
    Distributor ID: EndeavourOS
    Description: EndeavourOS Linux
    Release: rolling
    Codename: rolling

  • Linux:
    EndeavourOS:
    Linux 6.1.8-arch1-1 build issue with harfbuzz #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000 x86_64 GNU/Linux

  • Compiler:
    gcc version 12.2.1 20230111 (GCC)

  • Rust version:
    stable-x86_64-unknown-linux-gnu (default)
    rustc 1.64.0 (a55dd71d5 2022-09-19)

Dependencies

Did you run the get-deps script to install required system dependencies?
Was it successful?

R/ Yes. Successful installation. $OSTYPE is linux-gnu was the final output.

If building from the git repo, did you update the submodules? Not doing this
is a common source of problems; see the information at
https://wezfurlong.org/wezterm/install/source.html for more information.

R/ Yes, I did update the submodules but still throwing errors.

The build output

Please include the output from running the build command:

cargo build --release

error[E0412]: cannot find type `RawFd` in `std::os::fd`
   --> pty/src/unix.rs:326:48
    |
326 |     fn as_raw_fd(&self) -> Option<std::os::fd::RawFd> {
    |                                                ^^^^^ not found in `std::os::fd`
    |
help: consider importing this type alias
    |
3   | use std::os::unix::prelude::RawFd;
    |
help: if you import `RawFd`, refer to it directly
    |
326 -     fn as_raw_fd(&self) -> Option<std::os::fd::RawFd> {
326 +     fn as_raw_fd(&self) -> Option<RawFd> {
    |

error[E0412]: cannot find type `RawFd` in `std::os::fd`
   --> pty/src/serial.rs:245:48
    |
245 |     fn as_raw_fd(&self) -> Option<std::os::fd::RawFd> {
    |                                                ^^^^^ not found in `std::os::fd`
    |
help: consider importing this type alias
    |
8   | use std::os::unix::prelude::RawFd;
    |
help: if you import `RawFd`, refer to it directly
    |
245 -     fn as_raw_fd(&self) -> Option<std::os::fd::RawFd> {
245 +     fn as_raw_fd(&self) -> Option<RawFd> {
    |

error[E0412]: cannot find type `RawFd` in `std::os::fd`
   --> pty/src/lib.rs:114:48
    |
114 |     fn as_raw_fd(&self) -> Option<std::os::fd::RawFd>;
    |                                                ^^^^^ not found in `std::os::fd`
    |
help: consider importing this type alias
    |
40  | use std::os::unix::prelude::RawFd;
    |
help: if you import `RawFd`, refer to it directly
    |
114 -     fn as_raw_fd(&self) -> Option<std::os::fd::RawFd>;
114 +     fn as_raw_fd(&self) -> Option<RawFd>;
    |

error[E0603]: module `fd` is private
   --> pty/src/unix.rs:326:44
    |
326 |     fn as_raw_fd(&self) -> Option<std::os::fd::RawFd> {
    |                                            ^^ private module
    |
note: the module `fd` is defined here
   --> /home/rangeler/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/mod.rs:150:1
    |
150 | mod fd;
    | ^^^^^^

error[E0603]: module `fd` is private
   --> pty/src/serial.rs:245:44
    |
245 |     fn as_raw_fd(&self) -> Option<std::os::fd::RawFd> {
    |                                            ^^ private module
    |
note: the module `fd` is defined here
   --> /home/rangeler/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/mod.rs:150:1
    |
150 | mod fd;
    | ^^^^^^

error[E0603]: module `fd` is private
   --> pty/src/lib.rs:114:44
    |
114 |     fn as_raw_fd(&self) -> Option<std::os::fd::RawFd>;
    |                                            ^^ private module
    |
note: the module `fd` is defined here
   --> /home/rangeler/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/mod.rs:150:1
    |
150 | mod fd;
    | ^^^^^^

   Compiling zvariant_derive v3.10.0
   Compiling zbus_macros v3.7.0
Some errors have detailed explanations: E0412, E0603.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `portable-pty` due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
@ErlanRG ErlanRG added the bug Something isn't working label Jan 27, 2023
@ErlanRG ErlanRG changed the title Erro making wezterm-git when updating from AUR Error making wezterm-git when updating from AUR Jan 27, 2023
@wez
Copy link
Member

wez commented Jan 27, 2023

Can you try with a newer version of rust? Sounds like we'll need to update the min supported version

@wez wez added waiting-on-op Waiting for more information from the original poster labels Jan 27, 2023
@ErlanRG
Copy link
Author

ErlanRG commented Jan 28, 2023

Using rustc 1.67.0 instead of 1.66.1-2 did the job.

I managed to update this from source and directly from the AUR (just to be sure), but had to install the latest version available in the Rust's webpage first.

The get-deps script installs the 1.66 version of rust though. That might be the only change required to solve the issue.

Thanks!

@github-actions github-actions bot removed the waiting-on-op Waiting for more information from the original poster label Jan 28, 2023
@ErlanRG ErlanRG closed this as completed Jan 30, 2023
wez added a commit that referenced this issue Feb 6, 2023
imsnif pushed a commit to imsnif/wezterm that referenced this issue Feb 11, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants