all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* substitute server not used
@ 2024-02-14 19:11 Marco van Hulten
  2024-02-17 14:36 ` cannot run recent kodi [was: substitute server not used] Marco van Hulten
  0 siblings, 1 reply; 5+ messages in thread
From: Marco van Hulten @ 2024-02-14 19:11 UTC (permalink / raw)
  To: help-guix

Dear all,

Even though a substitute is available [1], one of my Guix system does
not want to use this:


[kodi@watson ~]$ guix package -u kodi
The following packages will be upgraded:
   kodi     (dependencies or package changed)
   kodi-cli (dependencies or package changed)

substitute: updating substitutes from 'https://ci.guix.gnu.org'...
100.0% substitute: updating substitutes from
'https://bordeaux.guix.gnu.org'... 100.0% The following derivation will
be built: /gnu/store/mhq3az363na1wnz1mnzy9nln3s5f40a4-kodi-19.5.drv

building /gnu/store/mhq3az363na1wnz1mnzy9nln3s5f40a4-kodi-19.5.drv...
- 'unpack' phase [...]


It is an "upgrade" because of "changed dependencies".  I *suppose* the
substitute is too old for the outputs to be bit identical?  (I hope I
use the right terminology here and this makes sense.)


# Background/rationale for trying to upgrade Kodi

After I had done a 'guix package -u . --do-not-upgrade=kodi', I still
needed to upgrade Kodi, because otherwise:


[kodi@watson ~]$ cat kodi.log.txt 
libEGL warning: MESA-LOADER: failed to open i915: /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri/i915_dri.so: cannot open shared object file: No such file or directory (search paths /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri, suffix _dri)

libva info: VA-API version 1.18.0
libva info: Trying to open /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libGL error: MESA-LOADER: failed to open i915: /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri/i915_dri.so: cannot open shared object file: No such file or directory (search paths /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri, suffix _dri)
libGL error: failed to load driver: i915
libGL error: MESA-LOADER: failed to open i915: /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri/i915_dri.so: cannot open shared object file: No such file or directory (search paths /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri, suffix _dri)
libGL error: failed to load driver: i915
libva info: VA-API version 1.18.0
libva info: Trying to open /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
/home/kodi/.guix-profile/bin/kodi: line 186:  1634 Segmentation fault      ${KODI_BINARY} $SAVED_ARGS
Crash report available at /home/kodi/kodi_crashlog-20240214_200244.log


Best,
  Marco

[1]: https://ci.guix.gnu.org/build/3395475/details


^ permalink raw reply	[flat|nested] 5+ messages in thread

* cannot run recent kodi [was: substitute server not used]
  2024-02-14 19:11 substitute server not used Marco van Hulten
@ 2024-02-17 14:36 ` Marco van Hulten
  2024-02-17 18:54   ` pelzflorian (Florian Pelz)
  0 siblings, 1 reply; 5+ messages in thread
From: Marco van Hulten @ 2024-02-17 14:36 UTC (permalink / raw)
  To: help-guix

Hello,

Building the package 'kodi' appears hard, as suggested by the failed
builds at
<https://ci.guix.gnu.org/search?query=kodi-19.5+system%3Ax86_64-linux>.
Building also failed on my machine, probably because it has too little
RAM.  Therefore, I decided to skip kodi in upgrading my system.

On Wed, 14 Feb 2024 20:11:11 +0100 Marco van Hulten wrote:
> After I had done a 'guix package -u . --do-not-upgrade=kodi', I got:
> 
> 
> [kodi@watson ~]$ cat kodi.log.txt 
> libEGL warning: MESA-LOADER: failed to open i915: /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri/i915_dri.so: cannot open shared object file: No such file or directory (search paths /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri, suffix _dri)
> 
> libva info: VA-API version 1.18.0
> libva info: Trying to open /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri/iHD_drv_video.so
> libva info: va_openDriver() returns -1
> libGL error: MESA-LOADER: failed to open i915: /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri/i915_dri.so: cannot open shared object file: No such file or directory (search paths /gnu/store/zisvdry6856i6z4iai62ff6l3anbdld8-mesa-23.0.3/lib/dri, suffix _dri)
> libGL error: failed to load driver: i915
> [...]

kodi wants i915_dri.so from mesa@23.0.3, whereas this does not contain
lib/dri/i915_dri.so.

My problems started after a thorough gc, though I kept a Guix profile
from July 2023.  I can run kodi from that profile, but that is not a
good solution.

This file is available on my system only for mesa@20.0.8 and
mesa@20.2.4.

I told kodi to use the the driver by exporting

    export MESA_LOADER_DRIVER_OVERRIDE=../../../m59c9hj9d4n65maimbpmx2xq56d2mvqs-mesa-20.2.4/lib/dri/i915

This ended badly:

```
$ kodi
libEGL fatal: did not find extension DRI_Mesa version 1

/home/kodi/.guix-profile/bin/kodi: line 186:  7867 Segmentation fault      ${KODI_BINARY} $SAVED_ARGS
```

That desperate attempt is a horrible hack anyway.  I wonder

1. if a more recent build of kodi@19.5 would actually solve something,
   as it has mesa-23.3.2 as a dependency, which – just like mesa-23.0.3
   – doesn't include the i915 driver either (I checked by installing)
2. whether kodi worked before because it depended on a mesa version
   that did include lib/dri/i915_dri.so

ad. 2)  I now see that in my July 2023 profile the same error appears
(no i915_dri.so available), but it just isn't fatal.  Some videos play
very slowly.  Could that be related to the problem it cannot load this
driver?  The system is not very new (Intel(R) Core(TM)2 Duo CPU E8500
@3.16GHz with 2 GiB RAM).

  Marco


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cannot run recent kodi [was: substitute server not used]
  2024-02-17 14:36 ` cannot run recent kodi [was: substitute server not used] Marco van Hulten
@ 2024-02-17 18:54   ` pelzflorian (Florian Pelz)
  2024-02-17 19:37     ` Marco van Hulten
  0 siblings, 1 reply; 5+ messages in thread
From: pelzflorian (Florian Pelz) @ 2024-02-17 18:54 UTC (permalink / raw)
  To: Marco van Hulten; +Cc: help-guix

Marco van Hulten <marco@hulten.org> writes:
> I told kodi to use the the driver by exporting
>
>     export MESA_LOADER_DRIVER_OVERRIDE=../../../m59c9hj9d4n65maimbpmx2xq56d2mvqs-mesa-20.2.4/lib/dri/i915

As a blind guess, since a few generations, for VLC I need to use:

export MESA_LOADER_DRIVER_OVERRIDE=i965

Regards,
Florian


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cannot run recent kodi [was: substitute server not used]
  2024-02-17 18:54   ` pelzflorian (Florian Pelz)
@ 2024-02-17 19:37     ` Marco van Hulten
  2024-02-18 17:38       ` pelzflorian (Florian Pelz)
  0 siblings, 1 reply; 5+ messages in thread
From: Marco van Hulten @ 2024-02-17 19:37 UTC (permalink / raw)
  To: pelzflorian (Florian Pelz); +Cc: help-guix

On Sat, 17 Feb 2024 19:54:33 +0100 pelzflorian (Florian Pelz) wrote:
> Marco van Hulten <marco@hulten.org> writes:
> > I told kodi to use the the driver by exporting
> >
> >     export MESA_LOADER_DRIVER_OVERRIDE=../../../m59c9hj9d4n65maimbpmx2xq56d2mvqs-mesa-20.2.4/lib/dri/i915  
> 
> As a blind guess, since a few generations, for VLC I need to use:
> 
> export MESA_LOADER_DRIVER_OVERRIDE=i965

In mesa-20.2.4, this was a symlink:

$ file /gnu/store/m59c9hj9d4n65maimbpmx2xq56d2mvqs-mesa-20.2.4/lib/dri/i965_dri.so
/gnu/store/m59c9hj9d4n65maimbpmx2xq56d2mvqs-mesa-20.2.4/lib/dri/i965_dri.so: symbolic link to i915_dri.so

My guess is that i915 was thrown out at some point, or i965 got a
proper driver at which (or a later) time the i965 hardware became
incompatible with the i915 driver.

The problem I'm having is that neither the i915 nor the i965 driver are
present in mesa-23.0.3/lib/dri/, which is what kodi asks for.  They are
also not in the newest mesa-23.3.2/lib/dri/.

  Marco


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cannot run recent kodi [was: substitute server not used]
  2024-02-17 19:37     ` Marco van Hulten
@ 2024-02-18 17:38       ` pelzflorian (Florian Pelz)
  0 siblings, 0 replies; 5+ messages in thread
From: pelzflorian (Florian Pelz) @ 2024-02-18 17:38 UTC (permalink / raw)
  To: Marco van Hulten; +Cc: help-guix

Indeed apparently it works for my VLC when I specify any non-existent
driver.  Anyway.  You could:

Try
 export MESA_LOADER_DRIVER_OVERRIDE=crocus

If it does not work, open a bug by writing a mail to bug-guix@gnu.org

Of course the driver must be free by FSDG, but I believe this is not the
issue here.

Regards,
Florian


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-18 17:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-14 19:11 substitute server not used Marco van Hulten
2024-02-17 14:36 ` cannot run recent kodi [was: substitute server not used] Marco van Hulten
2024-02-17 18:54   ` pelzflorian (Florian Pelz)
2024-02-17 19:37     ` Marco van Hulten
2024-02-18 17:38       ` pelzflorian (Florian Pelz)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.