unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* debian glibc's libX11 depend breaks local profile guix?
@ 2024-06-20 19:20 Foran, Will
  2024-07-17 17:34 ` Simon Tournier
  0 siblings, 1 reply; 8+ messages 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] 8+ messages in thread

end of thread, other threads:[~2024-07-19 10:17 UTC | newest]

Thread overview: 8+ messages (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
2024-07-17 17:34 ` Simon Tournier
2024-07-17 19:47   ` Foran, Will
2024-07-17 20:01     ` Simon Tournier
2024-07-17 20:19       ` Foran, Will
2024-07-18 10:10         ` Simon Tournier
2024-07-18 14:49           ` Foran, Will
2024-07-19  9:54             ` Simon Tournier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).