From: "Foran, Will" <foranw@upmc.edu>
To: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: debian glibc's libX11 depend breaks local profile guix?
Date: Thu, 20 Jun 2024 19:20:37 +0000 [thread overview]
Message-ID: <8734p74e0r.fsf@upmc.edu> (raw)
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
next reply other threads:[~2024-06-21 7:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-20 19:20 Foran, Will [this message]
2024-07-17 17:34 ` debian glibc's libX11 depend breaks local profile guix? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734p74e0r.fsf@upmc.edu \
--to=foranw@upmc.edu \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).