With Arch 6.17.2-zen1-1-zen i don't even need the patchelf anymore for ffmpeg to work :)
Luanti instant crash fix:
echo "video_driver = opengl3" > $HOME/.minetest/minetest.conf
| Git Clone URL: | https://aur.archlinux.org/nvidia-340xx.git (read-only, click to copy) |
|---|---|
| Package Base: | nvidia-340xx |
| Description: | NVIDIA drivers for linux, 340xx legacy branch |
| Upstream URL: | https://www.nvidia.com/ |
| Licenses: | custom |
| Conflicts: | nvidia |
| Submitter: | simonsmh |
| Maintainer: | JerryXiao |
| Last Packager: | JerryXiao |
| Votes: | 74 |
| Popularity: | 0.86 |
| First Submitted: | 2019-06-07 10:29 (UTC) |
| Last Updated: | 2025-08-03 10:26 (UTC) |
With Arch 6.17.2-zen1-1-zen i don't even need the patchelf anymore for ffmpeg to work :)
Luanti instant crash fix:
echo "video_driver = opengl3" > $HOME/.minetest/minetest.conf
Working well on 6.16.10-zen1-1-zen
> sudo patchelf --add-needed /usr/lib/libpthread.so.0 /usr/lib/nvidia/libGL.so.340.108
Fixed Segmentation fault crash with ffmpeg and some other apps, nice work!
success :)
i upgraded from kernel 6.15.9 to 6.16.7 11/sep/2025 .
recompile nvdia-340xx driver , reboot , and everything works
Kudos for you @taz-007 !!! BUT !!! i only did sudo patchelf --add-needed libpthread.so.0 /lib/nvidia/libnvidia-tls.so.340.108
tested on guake console with ffmpeg , kitty , dosbox-x , attract
tested on lxqt desktop with kitty , dosbox-x , attract no new coredumps
the solution is here in the nvidia-utils pkgbuild
https://github.com/flydiscohuebr/nvidia-304/tree/main/Archlinux/nvidia-304.137/nvidia-304xx-utils
gdb showed me that libnvidia-tls always crashed , but gdb and strace had no problem to run these apps , because they used libpthread . didnt know patchelf . a real gamechanger .
@taz-007
Awesome stuff. With fixes, tips and tricks. Thank you for the link!
for those having segfault issues, try running :
sudo cp /usr/lib/nvidia/libGL.so.340.108 /usr/lib/nvidia/libGL.so.340.108.orig
sudo patchelf --add-needed /usr/lib/libpthread.so.0 /usr/lib/nvidia/libGL.so.340.108
solution found from this page : https://github.com/flydiscohuebr/nvidia-304 (thanks!)
The linux kernel is linux 6.16.1.arch1-1 now, this dkms does not work with it. Would you update it, my pc does not work.
hello again . first arch linux do everything you want . BUT you must do everything by yourself . when arch linux drop 32bit support , some people make they own 32bit arch linux !
at the moment i use strace + "programm". works very good. no big cpu/mem impact .
i think bui ld-id is a dead end , but for my and you learning
i tried to set the build id option in /etc/makepkgconf as explained here --->https://interrupt.memfault.com/blog/gnu-build-id-for-firmware
add to -> CFLAGS=" -Wl,--build-id . for a quick test try "yay sfml2" . it quickly crash compile with error "unknown build otion" if you make something wrong. to check build id , readelf -n "file"
readelf -n /opt/sfml2/lib/libsfml-graphics.so or readelf -n /bin/"yoursoftware/" ! i dont know if this is 100% correct ! know i try to compile nvidia-340
Pinned Comments
JerryXiao commented on 2022-10-13 03:51 (UTC) (edited on 2022-10-14 02:44 (UTC) by JerryXiao)
For testing users, contributors: check out https://github.com/archlinux-jerry/nvidia-340xx
Warning: force push may happen to match the aur tree