You are not logged in.

#51 2014-03-09 15:44:14

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

tonys_ wrote:

After the latest pacman -Syu, kega-fusion (Sega Genesis emulator, 32-bit) won't start.

/usr/lib/kega-fusion/kega-fusion: error while loading shared libraries: libnvidia-glsi.so.334.21: cannot open shared object file: No such file or directory

I do have a /usr/lib/libnvidia-glsi.so.334.21 file but not a /usr/lib32/ version that I'm just guessing it might be looking for.  Anyone know how to fix this?  Thanks!

It seems to be missing in the newest version of lib32-nvidia-utils.

[...]
    # OpenGL core library
    install -D -m755 "libnvidia-glcore.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-glcore.so.${pkgver}"
[...]

https://projects.archlinux.org/svntogit … idia-utils

Compared to the regular nvidia-utils

https://projects.archlinux.org/svntogit … idia-utils

[...]
# OpenGL core library
    install -D -m755 "libnvidia-glcore.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-glcore.so.${pkgver}"
    install -D -m755 "libnvidia-eglcore.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-eglcore.so.${pkgver}"
    install -D -m755 "libnvidia-glsi.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-glsi.so.${pkgver}"
[...]

You could add the two missing lines yourself to the PKGBUILD and rebuild the package. If it works you can open a bug report and attach the patch.

EDIT: I rebuild my lib32 package with this PKGBUILD.

# $Id$
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Contributor: James Rayner <iphitus@gmail.com>

_pkgbasename=nvidia-utils
pkgbase=lib32-$_pkgbasename
pkgname=('lib32-nvidia-utils' 'lib32-nvidia-libgl' 'lib32-opencl-nvidia')
pkgver=334.21
pkgrel=3
arch=('x86_64')
url="http://www.nvidia.com/"
license=('custom')
options=('!strip')

_arch='x86'
_pkg="NVIDIA-Linux-${_arch}-${pkgver}"
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('3b2736dd6ed7e24f71004bad0e55e32e')

build() {
    cd "${srcdir}"
    sh ${_pkg}.run --extract-only
}

package_lib32-opencl-nvidia() {
    pkgdesc="OpenCL implemention for NVIDIA (32-bit)"
    depends=('lib32-libcl' 'lib32-zlib' 'lib32-gcc-libs')
    optdepends=('opencl-headers: headers necessary for OpenCL development')
    cd "${srcdir}/${_pkg}"

    # OpenCL
    install -D -m755 "libnvidia-compiler.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-compiler.so.${pkgver}"
    ln -s "libnvidia-compiler.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-compiler.so.1"
    ln -s "libnvidia-compiler.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-compiler.so"

    install -D -m755 "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-opencl.so.${pkgver}" 
    ln -s "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-opencl.so.1"
    ln -s "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-opencl.so"

    mkdir -p "${pkgdir}/usr/share/licenses"
    ln -s $_pkgbasename "${pkgdir}/usr/share/licenses/lib32-opencl-nvidia"
}

package_lib32-nvidia-libgl() {
    pkgdesc="NVIDIA drivers libraries symlinks (32-bit)"
    depends=('lib32-nvidia-utils')
    replaces=('lib32-nvidia-utils<=313.26-1')
    conflicts=('lib32-libgl')
    provides=('lib32-libgl')
    cd "${srcdir}/${_pkg}"

    mkdir -p "${pkgdir}/usr/lib32"
    ln -s "/usr/lib32/nvidia/libGL.so.${pkgver}" "${pkgdir}/usr/lib32/libGL.so.${pkgver}"
    ln -s "libGL.so.${pkgver}" "${pkgdir}/usr/lib32/libGL.so.1"
    ln -s "libGL.so.${pkgver}" "${pkgdir}/usr/lib32/libGL.so"

    ln -s "/usr/lib32/nvidia/libEGL.so.${pkgver}" "${pkgdir}/usr/lib32/libEGL.so.${pkgver}"
    ln -s "libEGL.so.${pkgver}" "${pkgdir}/usr/lib32/libEGL.so.1"
    ln -s "libEGL.so.${pkgver}" "${pkgdir}/usr/lib32/libEGL.so"

    ln -s "/usr/lib32/nvidia/libGLESv1_CM.so.${pkgver}" "${pkgdir}/usr/lib32/libGLESv1_CM.so.${pkgver}"
    ln -s "libGLESv1_CM.so.${pkgver}" "${pkgdir}/usr/lib32/libGLESv1_CM.so.1"
    ln -s "libGLESv1_CM.so.${pkgver}" "${pkgdir}/usr/lib32/libGLESv1_CM.so"

    ln -s "/usr/lib32/nvidia/libGLESv2.so.${pkgver}" "${pkgdir}/usr/lib32/libGLESv2.so.${pkgver}"
    ln -s "libGLESv2.so.${pkgver}" "${pkgdir}/usr/lib32/libGLESv2.so.2"
    ln -s "libGLESv2.so.${pkgver}" "${pkgdir}/usr/lib32/libGLESv2.so"

    mkdir -p "${pkgdir}/usr/share/licenses"
    ln -s $_pkgbasename "${pkgdir}/usr/share/licenses/lib32-nvidia-libgl"
}

package_lib32-nvidia-utils() {
    pkgdesc="NVIDIA drivers utilities (32-bit)"
    depends=('lib32-zlib' 'lib32-gcc-libs')
    optdepends=('lib32-opencl-nvidia')
    cd "${srcdir}/${_pkg}"

    # OpenGL libraries
    install -D -m755 "libGL.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libGL.so.${pkgver}"
    install -D -m755 "libEGL.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libEGL.so.${pkgver}"
    install -D -m755 "libGLESv1_CM.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libGLESv1_CM.so.${pkgver}"
    install -D -m755 "libGLESv2.so.${pkgver}" "${pkgdir}/usr/lib32/nvidia/libGLESv2.so.${pkgver}"

    # OpenGL core library
    install -D -m755 "libnvidia-glcore.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-glcore.so.${pkgver}"
    install -D -m755 "libnvidia-eglcore.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-eglcore.so.${pkgver}"
    install -D -m755 "libnvidia-glsi.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-glsi.so.${pkgver}"

    # nvidia-ifr library
    install -D -m755 "libnvidia-ifr.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-ifr.so.${pkgver}"
    
    # nvidia-fbc library
    install -D -m755 "libnvidia-fbc.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-fbc.so.${pkgver}"

    # VDPAU
    install -D -m755 "libvdpau_nvidia.so.${pkgver}" "${pkgdir}/usr/lib32/vdpau/libvdpau_nvidia.so.${pkgver}"

    # nvidia-tls library
    install -D -m755 "tls/libnvidia-tls.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-tls.so.${pkgver}"
    install -D -m755 "libnvidia-cfg.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-cfg.so.${pkgver}"
    install -D -m755 "libnvidia-ml.so.${pkgver}" "${pkgdir}/usr/lib32/libnvidia-ml.so.${pkgver}"

    # CUDA
    install -D -m755 "libcuda.so.${pkgver}" "${pkgdir}/usr/lib32/libcuda.so.${pkgver}"
    install -D -m755 "libnvcuvid.so.${pkgver}" "${pkgdir}/usr/lib32/libnvcuvid.so.${pkgver}"

    # create soname links
    for _lib in $(find "${pkgdir}" -name '*.so*'); do
        _soname="$(dirname ${_lib})/$(LC_ALL=C readelf -d "$_lib" | sed -nr 's/.*Library soname: \[(.*)\].*/\1/p')"
        if [ ! -e "${_soname}" ]; then
            ln -s "$(basename ${_lib})" "${_soname}"
            ln -s "$(basename ${_soname})" "${_soname/.[0-9]*/}"
        fi
    done

    rm -rf "${pkgdir}"/usr/{include,share,bin}
    mkdir -p "${pkgdir}/usr/share/licenses"
    ln -s $_pkgbasename "${pkgdir}/usr/share/licenses/${pkgname}"
}

Now kega-fusion works.

Last edited by blackout23 (2014-03-09 16:25:10)

Offline

#52 2014-03-09 16:59:04

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

It's a bug in the lib32-nvidia-utils package. It should contain this library, but it doesn't. The eglcore library is also missing. Open a bug on the bugtracker.

Edit: Oops, for some reason I didn't see blakout23 already replied. Bug is here: https://bugs.archlinux.org/task/39254

Last edited by Gusar (2014-03-09 17:06:12)

Offline

#53 2014-03-09 17:54:56

tonys_
Member
Registered: 2014-02-06
Posts: 2

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

Wow, that was a quick response.  Thanks blackout and Gusar.  I will wait for an update to the lib32-nvidia-utils package to resolve this.

Offline

#54 2014-03-09 21:51:08

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

Don't panic if you can't upgrade for a day, guys. Seriously. We try to fix breakages as quickly as we can. You can help. Send patches and coffee.

Offline

#55 2014-03-10 00:02:00

TheChosenOne
Member
Registered: 2012-09-27
Posts: 130

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

Gregosky wrote:

For now I run following:

pacman -Syu --ignore nvidia-libgl

Lol. This has bricked my system (constant loop of nvidia screen and black screen, like nvidia is trying to start). I couldn't even reach tty.
Used live-cd and updated the system under chroot. Everything works again.

Offline

#56 2014-03-10 03:40:39

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

kraxor wrote:
t0m5k1 wrote:

another great reason to browse news, forum, bugs prior to running:

pacman -Syu

Am I really expected to browse the forums and bug reports before every update? Come on.

Yes you are. This is a rolling release, so those actions are always recommended.

[Reason: Less antagonistic -- as that was not the intent]

Last edited by mrunion (2014-03-10 12:24:16)


Matt

"It is very difficult to educate the educated."

Offline

#57 2014-03-10 08:46:48

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

TheChosenOne wrote:

Lol. This has bricked my system (constant loop of nvidia screen and black screen, like nvidia is trying to start). I couldn't even reach tty.
Used live-cd and updated the system under chroot. Everything works again.

If everything works now, you have not bricked your system. Bricking a device means... the device is now a brick. Permanently.

Apologies for the above rant, but people saying a device is bricked when it only temporarily doesn't work really irks me.

Offline

#58 2014-03-10 13:31:07

sean85
Member
From: United States
Registered: 2012-08-12
Posts: 6

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

Has this been fixed? I still can't play any 32-bit games in Wine ever since I updated.

Offline

#59 2014-03-10 14:10:40

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

sean85 wrote:

Has this been fixed? I still can't play any 32-bit games in Wine ever since I updated.

Just use the PKGBUILD I posted in my last post. Run makepkg -si and install the resulting packages. The same changes will be made to the repo package sooner or later.

Last edited by blackout23 (2014-03-10 14:11:25)

Offline

#60 2014-03-10 15:02:34

sean85
Member
From: United States
Registered: 2012-08-12
Posts: 6

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

The thing is that I actually am using your pkgbuild at the moment, but it seems lib32-nvidia-libgl is still not functioning properly. Do you think this is an unrelated bug?

On a side note, are you blackout24 on Reddit and the JB IRC?

Last edited by sean85 (2014-03-10 15:03:29)

Offline

#61 2014-03-10 15:44:30

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

sean85 wrote:

The thing is that I actually am using your pkgbuild at the moment, but it seems lib32-nvidia-libgl is still not functioning properly. Do you think this is an unrelated bug?

On a side note, are you blackout24 on Reddit and the JB IRC?

Yes I settled on the 24 for now. ;-) What message do you get when trying to start a 32 Bit application with my PKGBUILD installed?

Offline

#62 2014-03-10 16:32:59

sean85
Member
From: United States
Registered: 2012-08-12
Posts: 6

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

Unhandled exception: page fault on read access to 0x00001ff0 in 32-bit code (0x00001ff0).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:00001ff0 ESP:0032e918 EBP:00000002 EFLAGS:00010246(  R- --  I  Z- -P- )
EAX:ffef63d4 EBX:f77b0fbc ECX:00000004 EDX:7dcadee4
ESI:00000000 EDI:7dcadcd4
Stack dump:
0x0032e918:  f779f00e 00000002 ffef63d4 ffef63e0
0x0032e928:  00000001 00000000 0000005b 00000000
0x0032e938:  f77b0fbc 0000000e 7c76a308 00000034
0x0032e948:  f779f104 ffef63d4 ffef63e0 00000000
0x0032e958:  f75f1000 f75f1420 00000002 ffef63d4
0x0032e968:  f74bf928 80000000 7da911c8 f779f08b
Backtrace:
=>0 0x00001ff0 (0x00000002)
0x00001ff0: -- no code accessible --


Edit: 32 bit programs still run, just not games or anything else graphically accelerated.

Last edited by sean85 (2014-03-10 16:35:15)

Offline

#63 2014-03-10 16:42:15

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

What game are you trying to start? At first glance it doesn't look like something is missing in the 32 bit driver, because it would give a "file not found" error otherwise.

Offline

#64 2014-03-10 17:11:05

sean85
Member
From: United States
Registered: 2012-08-12
Posts: 6

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

That was the debugger output from Wine trying to launch the Halo CE installer.

Here is what happens when I try to run Super Hexagon in x86:

[sean@arch-box ~]$ '/home/sean/.steam/steam/SteamApps/common/Super Hexagon/x86/superhexagon.x86'
/home/sean/.steam/steam/SteamApps/common/Super Hexagon/x86/superhexagon.x86: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory

I'll try out a different game and see what happens.

Edit: I edited Super Hexagon's launcher from default to 32 bit and it is working. Uplink, Thomas Was Alone, , Little Inferno, and Rust also are working with 32 bit. So the problem lies with Wine but I can't figure out why...

Edit 2: So it turns out to not be a missing file so I'm going to take this up to Winehq. Thanks for the help blackout smile

Last edited by sean85 (2014-03-10 17:47:23)

Offline

#65 2014-03-10 17:50:40

Thorsten Reinbold
Member
From: Germany
Registered: 2011-12-06
Posts: 353

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

Is it a side effect of this bug that opencl in some apps isn't working actually?

Offline

#66 2014-03-11 15:48:46

ypnos
Member
Registered: 2007-12-30
Posts: 59

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

Thorsten: The bug as reported by blackout only affects 32bit applications.

Last edited by ypnos (2014-03-11 15:49:43)

Offline

#67 2014-03-11 17:30:27

Gregosky
Member
From: UK
Registered: 2013-07-26
Posts: 173

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

TheChosenOne wrote:
Gregosky wrote:

For now I run following:

pacman -Syu --ignore nvidia-libgl

Lol. This has bricked my system (constant loop of nvidia screen and black screen, like nvidia is trying to start). I couldn't even reach tty.
Used live-cd and updated the system under chroot. Everything works again.

Sorry mate, I did not come across that issue and I would not have left my comment if it was braking my system...

Offline

#68 2014-03-12 23:59:43

ifelseforeach
Member
Registered: 2014-03-12
Posts: 22

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

Today after a system upgrade, I ran into the same problem: When I try to start my wm (awesome) I get:

"awesome: error while loading shared libraries: libEGL.so.1: cannot open shared object file: No such file or directory"

I use the catalyst driver from the unofficial repo: https://wiki.archlinux.org/index.php/Un … s#catalyst

Is there already a solution for this problem?

Offline

#69 2014-03-13 00:02:50

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

You'd be better off reading one of the catalyst threads. Posting about a catalyst problem is an nvidia thread isn't likely to get you much support.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#70 2014-03-13 00:23:23

ifelseforeach
Member
Registered: 2014-03-12
Posts: 22

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

alright, I created a new thread for this topic; so my previous post can be ignored here

Offline

#71 2014-03-14 08:53:19

tehgeek
Member
Registered: 2013-02-24
Posts: 12

Re: nvidia-libgl: /usr/lib/libEGL.so exists in file system

ifelseforeach wrote:

Today after a system upgrade, I ran into the same problem: When I try to start my wm (awesome) I get:

"awesome: error while loading shared libraries: libEGL.so.1: cannot open shared object file: No such file or directory"

I use the catalyst driver from the unofficial repo: https://wiki.archlinux.org/index.php/Un … s#catalyst

Is there already a solution for this problem?

You'll probably get better response posting in the AMD/ATi thread then starting a new one. This topic looks to be covered there.

The AMD/ATI Bar & Grill

Offline

Board footer

Powered by FluxBB