Closed colemickens closed 2 years ago
Oops, I forgot to attach the build log:
also, here's ldd on wezterm-gui
:
❯ ldd ./result/bin/wezterm-gui
linux-vdso.so.1 (0x00007fff12993000)
/nix/store/4xhxnafmr1skiarlmq4gml3s7q9km09w-libglvnd-1.4.0/lib/libEGL.so.1 (0x00007fc3702c7000)
libssl.so.1.1 => /nix/store/8v88bq325ldf2jvxb48nfvmkg7840kj6-openssl-1.1.1m/lib/libssl.so.1.1 (0x00007fc370230000)
libcrypto.so.1.1 => /nix/store/8v88bq325ldf2jvxb48nfvmkg7840kj6-openssl-1.1.1m/lib/libcrypto.so.1.1 (0x00007fc36ff42000)
libdl.so.2 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libdl.so.2 (0x00007fc36ff3b000)
libxcb-util.so.1 => /nix/store/cvk916vfhm1n7ngn2pzdb3f3qqy23k8s-xcb-util-0.4.0/lib/libxcb-util.so.1 (0x00007fc36ff33000)
libxcb.so.1 => /nix/store/4sw5w1kchsldm4lsljmg4ih5wibiczjk-libxcb-1.14/lib/libxcb.so.1 (0x00007fc36ff07000)
libxkbcommon.so.0 => /nix/store/5wpi03vjdxwn4bnimv76mx5gg183vqja-libxkbcommon-1.3.1/lib/libxkbcommon.so.0 (0x00007fc36fec1000)
libxkbcommon-x11.so.0 => /nix/store/5wpi03vjdxwn4bnimv76mx5gg183vqja-libxkbcommon-1.3.1/lib/libxkbcommon-x11.so.0 (0x00007fc36feb6000)
libxcb-icccm.so.4 => /nix/store/mvfbds0nzh9w0zi26iifn6wdch30rmbp-xcb-util-wm-0.4.1/lib/libxcb-icccm.so.4 (0x00007fc36feac000)
libxcb-ewmh.so.2 => /nix/store/mvfbds0nzh9w0zi26iifn6wdch30rmbp-xcb-util-wm-0.4.1/lib/libxcb-ewmh.so.2 (0x00007fc36fe9c000)
libxcb-image.so.0 => /nix/store/28aiags1z6l8qcl6481iirw3y3i80aag-xcb-util-image-0.4.0/lib/libxcb-image.so.0 (0x00007fc36fe95000)
libxcb-keysyms.so.1 => /nix/store/6bw7slz2r31xq2w7gpvj8xsi4bwz1i2k-xcb-util-keysyms-0.4.0/lib/libxcb-keysyms.so.1 (0x00007fc36fe90000)
libX11-xcb.so.1 => /nix/store/fhgrngvj2r3zgwr0847l93nxk4ffpyyp-libX11-1.7.2/lib/libX11-xcb.so.1 (0x00007fc36fe8b000)
libxcb-render.so.0 => /nix/store/4sw5w1kchsldm4lsljmg4ih5wibiczjk-libxcb-1.14/lib/libxcb-render.so.0 (0x00007fc36fe7b000)
libxcb-xkb.so.1 => /nix/store/4sw5w1kchsldm4lsljmg4ih5wibiczjk-libxcb-1.14/lib/libxcb-xkb.so.1 (0x00007fc36fe5b000)
libX11.so.6 => /nix/store/fhgrngvj2r3zgwr0847l93nxk4ffpyyp-libX11-1.7.2/lib/libX11.so.6 (0x00007fc36fd16000)
libfontconfig.so.1 => /nix/store/7vz5kf7g2appfgfwian8r59v1mfhi6sk-fontconfig-2.13.94-lib/lib/libfontconfig.so.1 (0x00007fc36fcca000)
libc.so.6 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libc.so.6 (0x00007fc36faf4000)
/nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/ld-linux-x86-64.so.2 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib64/ld-linux-x86-64.so.2 (0x00007fc37387e000)
libwayland-egl.so.1 => /nix/store/71jjmysnf18y4gwhwyhwx8hb6qhkvwn0-wayland-1.20.0/lib/libwayland-egl.so.1 (0x00007fc36faef000)
libwayland-client.so.0 => /nix/store/71jjmysnf18y4gwhwyhwx8hb6qhkvwn0-wayland-1.20.0/lib/libwayland-client.so.0 (0x00007fc36fada000)
libgcc_s.so.1 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libgcc_s.so.1 (0x00007fc36fac0000)
libutil.so.1 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libutil.so.1 (0x00007fc36fabb000)
librt.so.1 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/librt.so.1 (0x00007fc36fab0000)
libpthread.so.0 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libpthread.so.0 (0x00007fc36fa90000)
libm.so.6 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libm.so.6 (0x00007fc36f94f000)
libGLdispatch.so.0 => /nix/store/4xhxnafmr1skiarlmq4gml3s7q9km09w-libglvnd-1.4.0/lib/libGLdispatch.so.0 (0x00007fc36f894000)
libXau.so.6 => /nix/store/yg0m0yfacnidf39i9fyvx796ail5gf8c-libXau-1.0.9/lib/libXau.so.6 (0x00007fc36f88f000)
libXdmcp.so.6 => /nix/store/1zx6463j5b8zm2zzwganabaqg2nk9jxs-libXdmcp-1.1.3/lib/libXdmcp.so.6 (0x00007fc36f887000)
libxcb-shm.so.0 => /nix/store/4sw5w1kchsldm4lsljmg4ih5wibiczjk-libxcb-1.14/lib/libxcb-shm.so.0 (0x00007fc36f882000)
libfreetype.so.6 => /nix/store/06yix2p8krcma80bx3c86408ns0lkahh-freetype-2.11.1/lib/libfreetype.so.6 (0x00007fc36f7b9000)
libbz2.so.1 => /nix/store/r2np23859ksmp2yxqycsy87xmb65yypn-bzip2-1.0.6.0.2/lib/libbz2.so.1 (0x00007fc36f7a6000)
libpng16.so.16 => /nix/store/mv9k6hyaaaqv0h1ja67bgm95bmrpxl7v-libpng-apng-1.6.37/lib/libpng16.so.16 (0x00007fc36f76c000)
libz.so.1 => /nix/store/92wmg8niqrvwxsfigh5hhjpb0y9ska1i-zlib-1.2.11/lib/libz.so.1 (0x00007fc36f74f000)
libexpat.so.1 => /nix/store/rmqz58p09d13vk9mn6kn2h5ifwmkarn3-expat-2.4.2/lib/libexpat.so.1 (0x00007fc36f71c000)
libffi.so.8 => /nix/store/ljr3c02zwg5sy1jcabjymjdyw7w3jrwa-libffi-3.4.2/lib/libffi.so.8 (0x00007fc36f70f000)
Oh, I see, wezterm
seems to default to X11 (:cry:) and our XWayland+EGL+Nvidia setup in NixOS is not working right now.
Forcing enable_wayland
bypasses this issue. (and of course wezterm is working on a non-nvidia system...).
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.
early note
note: wezterm builds fine but fails to use EGL properly on NixOS. This seems to be a recent development as some stable version is already pakckaged in nixpkgs.
Build Environment (please complete the following information):
BUILD_ID="22.05.20220203.5a47072"
Linux porty 5.16.4 #1-NixOS SMP PREEMPT Sat Jan 29 09:59:25 UTC 2022 x86_64 GNU/Linux
Dependencies
Did you run the
get-deps
script to install required system dependencies? Was it successful?N/A
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.
Yes
The build output
The build was successful, here's the nix build output:
But it fails to run:
note, the
egl GetDisplay: Failed but with error code: SUCCESS
bit.