Making musl and proprietary NVIDIA drivers work together
Chimera Linux describes work to make NVIDIA's proprietary drivers, which are built for glibc, usable on musl-based distributions. NVIDIA cards differ from other GPU vendors: most others use free kernel drivers in-tree with Mesa userspace, while NVIDIA uses an out-of-tree kernel driver and proprietary userland. A free driver exists (Nouveau for kernel/OpenGL, NVK for Vulkan), but performance varies by generation: pre-Maxwell cards are unsupported by the proprietary driver, Maxwell and Pascal are covered by the legacy 580 branch but run poorly on Nouveau due to locked boot clocks, and Turing and newer use GSP firmware from linux-firmware, where the FOSS driver delivers only 40-80% of the proprietary driver's performance.
A pull request is open for both the 580 and 620 driver branches, working on x86_64 and aarch64. Several pieces were needed: stock musl will likely never suffice. Chimera switched to GLVND, NVIDIA's vendor-neutral OpenGL dispatch library, on November 5 2026, since the proprietary drivers mandate it; this required packaging GLVND and rebuilding Mesa to drop its builtin dispatch. The gcompat shim was bumped to the latest Git revision, because the last tagged release lacks some symbols the drivers need, then patchelf is used to strip glibc-only library dependencies from the driver binaries, replace libc.so.6 with libc.so, and add a dependency on libgcompat.so.0, which supplies the missing glibc symbols like mallinfo and dlvsym.
Read the original chimera-linux.orgDiscussion
Discussion
One commenter jokes that merging musl and NVIDIA drivers was easier than viewing the page on a mobile iOS device. Another simply calls the work impressive.
Sources
-
chimera-linux.org
Making musl and proprietary NVIDIA drivers work together
Terms
- musl — A lightweight C standard library used as an alternative to glibc in some Linux distributions.
- glibc — The GNU C library, the standard C library most mainstream Linux distributions are built against.
- GLVND — NVIDIA's vendor-neutral dispatch library that forwards OpenGL calls from applications to whichever driver implementation (Mesa or proprietary) is installed.
- gcompat — A compatibility shim for musl systems that lets some glibc-linked binaries run, via a loader and a preload library implementing missing glibc symbols.



