glxinfo works, /compat/linux/usr/bin/glxinfo - does not
Hello! I'm trying to get an OpenGL-using (Qt5-based) Linux application off the ground on FreeBSD-12.1-STABLE/amd64, and it is dying early on because of OpenGL errors. The machine has an NVidia card, driven by the nvidia-driver-390. The port is compiled with the Linux option on. I also installed the x11/linux-nvidia-libs-390 port. The native glxinfo (installed by the mesa-demos port) works fine: name of display: :0 display: :0 screen: 0 direct rendering: Yes server glx vendor string: NVIDIA Corporation server glx version string: 1.4 ... and glxgears spin as fast as expected. However, the Linux glxinfo (installed by the linux-c7-glx-utils) fails with: name of display: :0 X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 Serial number of failed request: 41 Current serial number in output stream: 42 The customary Linux filesystems are mounted: linprocfs on /compat/linux/proc (linprocfs, local) fdescfs on /dev/fd (fdescfs) linsysfs on /compat/linux/sys (linsysfs, local) What's wrong? Thank you! Yours, -mi ___ freebsd-emulation@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"
Re: linux-c7-libsndfile missing dependency on libgsm
On Mon, 15 Jun 2020 22:45:28 -0700 (MST) Elijah Stone wrote: > Just fyi, libsndfile depends on libgsm, but the linux version of the > latter isn't packaged in freebsd, so every program depending on libsndfile > is broken. > > (E.G. check '/compat/linux/bin/bash -c "ldd > /compat/linux/lib/libsndfile.so.1.0.25"') Fixed in r539414. Thanks for the report. ___ freebsd-emulation@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"
Re: glxinfo works, /compat/linux/usr/bin/glxinfo - does not
On Tue, 16 Jun 2020 22:51:00 -0400 "Mikhail T." wrote: > Hello! > > I'm trying to get an OpenGL-using (Qt5-based) Linux application off the > ground on FreeBSD-12.1-STABLE/amd64, and it is dying early on because of > OpenGL errors. > > The machine has an NVidia card, driven by the nvidia-driver-390. The > port is compiled with the Linux option on. > > I also installed the x11/linux-nvidia-libs-390 port. > > The native glxinfo (installed by the mesa-demos port) works fine: > > name of display: :0 > display: :0 screen: 0 > direct rendering: Yes > server glx vendor string: NVIDIA Corporation > server glx version string: 1.4 > ... > > and glxgears spin as fast as expected. > > However, the Linux glxinfo (installed by the linux-c7-glx-utils) fails with: > > name of display: :0 > X Error of failed request: BadValue (integer parameter out of range > for operation) > Major opcode of failed request: 154 (GLX) > Minor opcode of failed request: 24 (X_GLXCreateNewContext) > Value in failed request: 0x0 > Serial number of failed request: 41 > Current serial number in output stream: 42 > > The customary Linux filesystems are mounted: > > linprocfs on /compat/linux/proc (linprocfs, local) > fdescfs on /dev/fd (fdescfs) > linsysfs on /compat/linux/sys (linsysfs, local) > > What's wrong? Thank you! Yours, The Linux graphics stack has switched to libglvnd while the FreeBSD stack has not so I don't know if Linux libglvnd can figure which stack, mesa or nvidia, it has to load. Try deleting /compat/linux/usr/lib/libGLX_system.so.0 or making it a symlink to /compat/linux/usr/lib/libGLX_nvidia.so.0 or try deleting linux-c7-dri package. ___ freebsd-emulation@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"
Re: glxinfo works, /compat/linux/usr/bin/glxinfo - does not
On Wed, 17 Jun 2020 10:53:18 -0400 "Mikhail T." wrote: > On 17.06.20 08:11, Tijl Coosemans wrote: >> The Linux graphics stack has switched to libglvnd while the FreeBSD >> stack has not so I don't know if Linux libglvnd can figure which >> stack, mesa or nvidia, it has to load. Try deleting >> /compat/linux/usr/lib/libGLX_system.so.0 or making it a symlink to >> /compat/linux/usr/lib/libGLX_nvidia.so.0 or try deleting linux-c7-dri >> package. > > Ok, that seems like the root of the problem indeed: > > /compat/linux/usr/lib/libGLX_system.so.0 -> libGLX_*mesa*.so.0 > > Unfortunately, deinstalling linux-c7-dri, also deinstalled the > linux-c7-glx-utils, which had to be reinstalled with NO_DEPENDS=yes to > avoid dragging in the Mesa stuff again (which must be, what created the > above link to GLX_mesa in the first place)... > > Finally, the symlink-manipulations had to be repeated in > /compat/linux/usr/lib*64* as well (why do linux-c7-/foo/ ports even > bother with 32-bit binaries on amd64?) -- but now both native and Linux > glxinfo binaries work here, and there is much rejoicing. Thank you! > > Should I file bug-report(s) for any of this? Yours, Does "glxinfo | grep glvnd" print anything? ___ freebsd-emulation@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"
Re: glxinfo works, /compat/linux/usr/bin/glxinfo - does not
On Wed, 17 Jun 2020 12:26:25 -0400 "Mikhail T." wrote: > On 17.06.20 11:58, Tijl Coosemans wrote: >> Does "glxinfo | grep glvnd" print anything? > > Yes, both of them print the same thing now: > > root@macropod:/green/home/mi # glxinfo | grep glvnd > GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, > GLX_EXT_libglvnd, > root@macropod:/green/home/mi # /compat/linux/usr/bin/glxinfo | grep > glvnd > GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, > GLX_EXT_libglvnd, Does everything still work if you install linux-c7-dri but remove /compat/linux/usr/lib/libGLX_system.so.0 and /compat/linux/usr/lib64/libGLX_system.so.0? ___ freebsd-emulation@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"
Re: glxinfo works, /compat/linux/usr/bin/glxinfo - does not
On 17.06.20 08:11, Tijl Coosemans wrote: The Linux graphics stack has switched to libglvnd while the FreeBSD stack has not so I don't know if Linux libglvnd can figure which stack, mesa or nvidia, it has to load. Try deleting /compat/linux/usr/lib/libGLX_system.so.0 or making it a symlink to /compat/linux/usr/lib/libGLX_nvidia.so.0 or try deleting linux-c7-dri package. Ok, that seems like the root of the problem indeed: /compat/linux/usr/lib/libGLX_system.so.0 -> libGLX_*mesa*.so.0 Unfortunately, deinstalling linux-c7-dri, also deinstalled the linux-c7-glx-utils, which had to be reinstalled with NO_DEPENDS=yes to avoid dragging in the Mesa stuff again (which must be, what created the above link to GLX_mesa in the first place)... Finally, the symlink-manipulations had to be repeated in /compat/linux/usr/lib*64* as well (why do linux-c7-/foo/ ports even bother with 32-bit binaries on amd64?) -- but now both native and Linux glxinfo binaries work here, and there is much rejoicing. Thank you! Should I file bug-report(s) for any of this? Yours, -mi ___ freebsd-emulation@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"
Re: glxinfo works, /compat/linux/usr/bin/glxinfo - does not
On 17.06.20 11:58, Tijl Coosemans wrote: Does "glxinfo | grep glvnd" print anything? Yes, both of them print the same thing now: root@macropod:/green/home/mi # glxinfo | grep glvnd GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_libglvnd, root@macropod:/green/home/mi # /compat/linux/usr/bin/glxinfo | grep glvnd GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, GLX_EXT_libglvnd, Yours, -mi ___ freebsd-emulation@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-emulation To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"