I am using the reform debian image, and a recent apt update
, apt upgrade
, apt autoremove
caused some errors when i tried to launch any of the graphical desktop environments (sway, gnome, reform-windowmaker). Below are the errors I got when I launched sway
. Gnome wouldn’t even output any errors, it would just fall back to command line.
MESA-LOADER: failed to open imx-dcss: libLLVM-11.so.1: cannot open shared object file: No such file or directory (search paths /usr/local/lib/aarch64-linux-gnu/dri)
failed to load driver: imx-dcss
MESA-LOADER: failed to open kms_swrast: libLLVM-11.so.1: cannot open shared object file: No such file or directory (search paths /usr/local/lib/aarch64-linux-gnu/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: libLLVM-11.so.1: cannot open shared object file: No such file or directory (search paths /usr/local/lib/aarch64-linux-gnu/dri)
failed to load swrast driver
00:00:00.029 [ERROR] [wlr] [backend/drm/renderer.c:28] Failed to create GBM device
00:00:00.029 [ERROR] [wlr] [backend/drm/backend.c:201] Failed to initialize renderer
00:00:00.031 [ERROR] [wlr] [backend/backend.c:174] Failed to create DRM backend
00:00:00.031 [ERROR] [wlr] [backend/backend.c:312] Failed to open any DRM device
00:00:00.147 [ERROR] [sway/server.c:55] Unable to create backend
Looking closely at the apt log in /var/log/apt/history.log
, I noticed that the upgrade installed LLVM 13, and autoremove got rid of LLVM 11. After reinstalling the neccessary packages:
apt install llvm-11*
my graphical environments now launch without issue. Hopefully this helps someone else! I was mid-writeup of this problem when I figured it out