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

emacs fails to load on intel iris with surfman #538

Open
ingenieroariel opened this issue Nov 18, 2023 · 1 comment
Open

emacs fails to load on intel iris with surfman #538

ingenieroariel opened this issue Nov 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ingenieroariel
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

on NixOS running on an HP laptop with intel graphics.

on rev eb01913

nix develop
emacs

I got an error from surfman saying left=0, right=0 and left!=right.

[devshell]$ emacs
libEGL warning: MESA-LOADER: failed to open iris: /nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/nm7al9rc9a81q5y7p942xh96n2smbg1j-llvm-15.0.7-lib/lib/libLLVM-15.so) (search paths /run/opengl-driver/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open iris: /nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/nm7al9rc9a81q5y7p942xh96n2smbg1j-llvm-15.0.7-lib/lib/libLLVM-15.so) (search paths /run/opengl-driver/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: /nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/nm7al9rc9a81q5y7p942xh96n2smbg1j-llvm-15.0.7-lib/lib/libLLVM-15.so) (search paths /run/opengl-driver/lib/dri, suffix _dri)

thread '<unnamed>' panicked at 'assertion failed: `(left != right)`
  left: `0`,
 right: `0`', /build/cargo-vendor-dir/surfman-0.8.0/src/platform/unix/x11/connection.rs:309:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Fatal error 6: Aborted
Backtrace:
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x533988]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x4194b4]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x4199d9]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x531898]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x531999]
/nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6(+0x3dbf0)[0x7ffff483dbf0]
/nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6(+0x8abc7)[0x7ffff488abc7]
/nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6(raise+0x16)[0x7ffff483db46]
/nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6(abort+0xd7)[0x7ffff48284b5]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x30adfe7]
/nix/store/pa1j1cncna2255vrdyc1l3z3vxc8xbnb-devshell-dir/bin/emacs: line 4: 224834 Aborted                 (core dumped) $(nix-build . --option substituters "https://cache.nixos.org https://emacsng.cachix.org" --option trusted-public-keys "emacsng.cachix.org-1:i7wOr4YpdRpWWtShI8bT6V7lOTnPeI7Ho6HaZegFWMI= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" --no-out-link)/bin/emacs $@

Expected behavior
Emacs running

OS
Which os do you use? (uname -a)
NixOS on x86_64 Linux from this month.

Error callstack

libEGL warning: MESA-LOADER: failed to open iris: /nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/nm7al9rc9a81q5y7p942xh96n2smbg1j-llvm-15.0.7-lib/lib/libLLVM-15.so) (search paths /run/opengl-driver/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open iris: /nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/nm7al9rc9a81q5y7p942xh96n2smbg1j-llvm-15.0.7-lib/lib/libLLVM-15.so) (search paths /run/opengl-driver/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: /nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/nm7al9rc9a81q5y7p942xh96n2smbg1j-llvm-15.0.7-lib/lib/libLLVM-15.so) (search paths /run/opengl-driver/lib/dri, suffix _dri)

thread '<unnamed>' panicked at 'assertion failed: `(left != right)`
  left: `0`,
 right: `0`', /build/cargo-vendor-dir/surfman-0.8.0/src/platform/unix/x11/connection.rs:309:9
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
   4: surfman::platform::unix::x11::connection::create_egl_display::{{closure}}
   5: std:🧵:local::LocalKey<T>::try_with
   6: std:🧵:local::LocalKey<T>::with
   7: surfman::platform::unix::x11::connection::create_egl_display
   8: surfman::platform::unix::x11::connection::Connection::from_x11_display
   9: surfman::platform::unix::x11::connection::Connection::from_raw_display_handle
  10: surfman::platform::unix::x11::implementation::connection::<impl surfman::connection::Connection for surfman::platform::unix::x11::connection::Connection>::from_raw_display_handle
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Fatal error 6: Aborted
Backtrace:
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x533988]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x4194b4]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x4199d9]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x531898]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x531999]
/nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6(+0x3dbf0)[0x7ffff483dbf0]
/nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6(+0x8abc7)[0x7ffff488abc7]
/nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6(raise+0x16)[0x7ffff483db46]
/nix/store/lqz6hmd86viw83f9qll2ip87jhb7p1ah-glibc-2.35-224/lib/libc.so.6(abort+0xd7)[0x7ffff48284b5]
/nix/store/1mqzp2q5vwgqc62qjppfvdl9rk8ynqj0-emacs-ng-30.0.50/bin/emacs[0x30adfe7]
/nix/store/pa1j1cncna2255vrdyc1l3z3vxc8xbnb-devshell-dir/bin/emacs: line 4: 228148 Aborted                 (core dumped) $(nix-build . --
@ingenieroariel ingenieroariel added the bug Something isn't working label Nov 18, 2023
@declantsien
Copy link
Contributor

Have you tried using https://github.com/nix-community/nixGL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants