FS#53069 - [nvidia-340xx-utils] 340.102-5 fails to build mpv-git
Attached to Project:
Arch Linux
Opened by helle vaanzinn (glitsj16) - Thursday, 23 February 2017, 20:49 GMT
Last edited by Laurent Carlier (lordheavy) - Thursday, 02 March 2017, 20:59 GMT
Opened by helle vaanzinn (glitsj16) - Thursday, 23 February 2017, 20:49 GMT
Last edited by Laurent Carlier (lordheavy) - Thursday, 02 March 2017, 20:59 GMT
|
Details
Description:
Building mpv-git from AUR recently throws an error about ld not able to find -lEGL & -lGL. Downgrading nvidia-340xx-utils to 340.102.1 works just fine. Several changes have happenend recently with the nvidia-340xx-utils packaging, can't really tell what's causing this. Attaching mpv-git makepkg logs for both nvidia-340xx-utils versions 340.102-1 & 340.102-5. Regards. |
This task depends upon
Closed by Laurent Carlier (lordheavy)
Thursday, 02 March 2017, 20:59 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in [testing]
Thursday, 02 March 2017, 20:59 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in [testing]
The current package is completely unsuitable for compiling. The development symlinks are in /usr/lib/nvidia while mesa that contains the .pc files doesn't specify the linker path, so gcc/ld will never find the libraries.
Thanks, will try and report back as soon as my kernel build is finished. It's a bit confusing though, I always looked at mesa & nvidia as mutually exclusive (Xorg driver-wise).
Installed mesa-libgl, but that resulted in exactly the same error when compiling mpv-git. Based on the comment from Jan de Groot and some testing, I have a PKGBUILD for nvidia-340xx-utils 340.102-5 that works just fine for compilation: https://gist.github.com/glitsj16/f053d88d55c5bfa6ee258327200ac730
The PKGBUILD differs with the current official one from extra on 3 points:
(1) re-adds symlinks in /usr/lib to /usr/lib/nvidia as 340.102-1 did;
(2) adds nvidia-utils to provides (which fixes https://bugs.archlinux.org/task/53067?project=1&cat[0]=2&string=nvidia-340xx-utils); and
(3) runs create_links before creating /etc/ld.so.conf.d/00-nvidia.conf (to silence readelf complaining about /etc/ld.so.conf.d not being a regular file).
Thoughts?
(1) it will break multigpu (optimus/bumblebee) system
(2) fixed soon
(3) only a cosmetic change
Finally got things working. After installing nvidia-340xx-utils & mesa (both from testing) things are back to normal. Thanks for your response.