all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* debian glibc's libX11 depend breaks local profile guix?
@ 2024-06-20 19:20 Foran, Will
  0 siblings, 0 replies; only message in thread
From: Foran, Will @ 2024-06-20 19:20 UTC (permalink / raw)
  To: help-guix@gnu.org



Hi all! I'm trying to run guix on top of debian stable/bookworm (12.5, libc6=2.36) but am blocked by
>  error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

Currently, I'm only having luck using guix like
    /usr/bin/guix shell -NC --share=/gnu  --share=/var/guix/ --share=$HOME/.guix-profile  guix nss-certs

I got here afer using the install script and doing a 'guix pull && guix package -u'. Now guix dies before it can do anything!

    guix --help
      /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper/bin/guile:
      error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory


I suspect glibc version mismatches are causing a problem (guix=2.33;deb libX11@2.34 (?);debian=2.36).
This is a warning from ldd on guix's version of bash:
    /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libc.so.6:
    version `GLIBC_2.34' not found (required by /lib/x86_64-linux-gnu/libX11.so.6)


For what it's worth, in debian, ldd shows libX11 on libc!?

   ldd /usr/lib/x86_64-linux-gnu/libc.so.6|grep X11
           libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f7dfca49000)


   apt-cache policy libc6  # Installed: 2.36-9+deb12u7
   cat /etc/debian_version # 12.5


For debuging below, I'm using the installer version of guix instead of the one in my user's home profile.
I'm using the 'bash' package (arbitrarily) to inspect when/how libX11 is a problem
'guix shell' without --container always errors out. But when I include 'glibc' in the package list, libX11 is not found.

-------------

guix --version
# /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper/bin/guile: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

stat -c "%N"  $(which guix)
# '/gnu/store/s7a2xqwcy03vd76cggzy661ismnxviyp-profile/bin/guix' -> '/gnu/store/iy3r8ddghvyp9rnhcl4vzkk4b8n30034-guix-command'

alias guix=/usr/bin/guix # version from installer
guix shell -C bash -- bash --version
# ... version 5.1.8(1)-release ...

guix shell bash -- bash --version
# bash: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

guix shell bash -- which bash         | xargs readlink -f
guix shell -C bash which -- which bash| xargs readlink -f
# /gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin/bash

ldd /gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin/bash |grep libX11
# /gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin/bash: /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libc.so.6: version `GLIBC_2.34' not found (required by /lib/x86_64-linux-gnu/libX11.so.6)
#         libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007fbca48fc000

guix shell bash   -- ldd /gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin/bash|grep X11
#        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007fc26083d000)

guix shell bash glibc  -- ldd /gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin/bash|grep X11
#        libX11.so.6 => not found

guix shell bash glibc  -- ldd /gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin/bash|wc -l
# 14

guix shell -C bash glibc  -- ldd /gnu/store/d99ykvj3axzzidygsmdmzxah4lvxd6hw-bash-5.1.8/bin/bash|wc -l
# 8

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-21  7:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-20 19:20 debian glibc's libX11 depend breaks local profile guix? Foran, Will

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.