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

Neovide formula on Linux installs build configured for MacOS #201094

Open
4 tasks done
kika opened this issue Dec 13, 2024 · 2 comments
Open
4 tasks done

Neovide formula on Linux installs build configured for MacOS #201094

kika opened this issue Dec 13, 2024 · 2 comments
Labels
bug Reproducible Homebrew/homebrew-core bug

Comments

@kika
Copy link

kika commented Dec 13, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

HOMEBREW_VERSION: 4.4.11
ORIGIN: https://github.com/Homebrew/brew
HEAD: ad356d365837a691a52dfec32b3fb5f282f3aefc
Last commit: 5 days ago
Branch: stable
Core tap JSON: 12 Dec 01:16 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 32
Homebrew Ruby: 3.3.6 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 32-core 64-bit zen4
Clang: N/A
Git: 2.46.2 => /home/linuxbrew/.linuxbrew/bin/git
Curl: 8.5.0 => /bin/curl
Kernel: Linux 6.8.0-50-generic x86_64 GNU/Linux
OS: Ubuntu 24.04.1 LTS (noble)
Host glibc: 2.39
/usr/bin/gcc: 13.2.0
/usr/bin/ruby: N/A
glibc: 2.35_1
gcc@11: N/A
gcc: 14.2.0
xorg: N/A

Your system is ready to brew.

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

I tried to run neovide
why: because I like it and use it on MacOS

What happened (include all command output)?

Neovide panicked with the message 'Failed to create winit event loop: NotSupported(NotSupportedError)'. (File: src/window/mod.rs; Line: 126, Column: 38)

What did you expect to happen?

I'd expect neovide to run

Step-by-step reproduction instructions (by running brew commands)

Install neovide with brew on Ubuntu 24.04.1 LTS Desktop (fresh install, minimal customizations).
Ryzen 7950X3D, Nvidia 4090
According to the neovide maintainer the build configuration for neovide on Linux is the same as on MacOS, the code that panics should not even run on Linux.
See neovide/neovide#2890 (comment)

@kika kika added the bug Reproducible Homebrew/homebrew-core bug label Dec 13, 2024
@carlocab
Copy link
Member

/home/linuxbrew/.linuxbrew/opt/neovide$ file bin/neovide
bin/neovide: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /home/linuxbrew/.linuxbrew/lib/ld.so, for GNU/Linux 3.2.0, BuildID[sha1]=ff0169ef0030e1a75945e38890c785244a1f5205, stripped

It seems unlikely that the macOS version would produce that output. (ELF executables don't work on macOS, much less ELF executables for GNU/Linux.)

You might want to adjust the issue title accordingly.

@kika kika changed the title Neovide formula on Linux installs MacOS build Neovide formula on Linux installs build configured for MacOS Dec 13, 2024
@cho-m
Copy link
Member

cho-m commented Dec 13, 2024

From glance, the code that failed should still run on Linux. Line 125 and 128 may be macOS-only but 126 doesn't seem so.


Anyways, the line that fails is for winit library. Probably need someone to check how Neovide's windowing and graphics are set up on Linux side.

I would guess there are some missing X11 or Wayland dependencies.

May also need to check on OpenGL(Mesa) or Vulkan dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug
Projects
None yet
Development

No branches or pull requests

3 participants