Bumblebee-Project / Bumblebee

Bumblebee daemon and client rewritten in C
http://www.bumblebee-project.org/
GNU General Public License v3.0
1.3k stars 142 forks source link

optirun fails glxgears saying undefined symbol: _glapi_tls_Current #1030

Open Francexi opened 5 years ago

Francexi commented 5 years ago

as per title, when running glx_gears (and any other application by far) i receive the following

francesco@darkstar:/usr/lib64$ optirun -v glxgears
[ 2634.437737] [INFO]Configured driver: nvidia
[ 2635.153372] [INFO]Response: Yes. X is active.
[ 2671.299568] [INFO]Running application using primus.
primus: fatal: failed to load any of the libraries: /usr/$LIB/libGL.so.1:/usr/lib/$LIB/libGL.so.1:/usr/$LIB/mesa/libGL.so.1:/usr/lib/$LIB/mesa/libGL.so.1
/usr/lib64/libGL.so.1: undefined symbol: _glapi_tls_Current
/usr/lib/$LIB/libGL.so.1: cannot open shared object file: No such file or directory
/usr/$LIB/mesa/libGL.so.1: cannot open shared object file: No such file or directory
/usr/lib/$LIB/mesa/libGL.so.1: cannot open shared object file: No such file or directory

any idea?

worth noting that:

francesco@darkstar:/usr/lib64$ readelf -Ws /usr/lib64/libGL.so | grep tls
    18: 0000000000000000     0 TLS     GLOBAL DEFAULT  UND _glapi_tls_Current

so the symbol is actually there

rafaelzigx commented 5 years ago

What's the nvidia driver version you're running? I'm having issues with >=version-430. Downgrading to 418 solved. They have changed something with 430.

gsgatlin commented 5 years ago

@rafaelzigx see: https://devtalk.nvidia.com/default/topic/1050786/linux/nvidia-drivers-430-09-causes-xorg-segfault-at-start