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

* Re: debian glibc's libX11 depend breaks local profile guix?
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Tournier @ 2024-07-17 17:34 UTC (permalink / raw)
  To: Foran, Will, help-guix@gnu.org

Hi,

Sorry for the late reply.  Well, I am not seeing any reply, so in case… :-)

On Thu, 20 Jun 2024 at 19:20, "Foran, Will" <foranw@upmc.edu> wrote:
> 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)

Hum, this seems some environment variables incorrectly set.  Maybe try
with a clean shell, for instance run:

        env -i $(which bash) --login --noprofile --norc
        which guix
        guix describe
        source ~/.config/guix/current/etc/profile
        which guix
        guix describe

Do you still have the error?

Cheers,
simon


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

* Re: debian glibc's libX11 depend breaks local profile guix?
  2024-07-17 17:34 ` Simon Tournier
@ 2024-07-17 19:47   ` Foran, Will
  2024-07-17 20:01     ` Simon Tournier
  0 siblings, 1 reply; 8+ messages in thread
From: Foran, Will @ 2024-07-17 19:47 UTC (permalink / raw)
  To: Simon Tournier, help-guix@gnu.org


Thanks for looking!
I still see the libX11 error even with a clear env.

'guix describe' has an (expected) error with the installer version in /usr/bin
'guix describe' can't load libX11.so.6 when using the guix profile path


env -i $(which bash) --login --noprofile --norc
 bash-5.2$ which guix
    /usr/bin/guix
 bash-5.2$ guix describe
    guix describe: error: failed to determine origin
    hint: Perhaps this `guix' command was not obtained with `guix pull'? Its version string is 1.4.0.

 bash-5.2$ source ~/.config/guix/current/etc/profile
 bash-5.2$ which guix
    /gnu/store/s7a2xqwcy03vd76cggzy661ismnxviyp-profile/bin/guix
 bash-5.2$ guix describe
    /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


 bash-5.2$ ldd /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper/bin/guile|grep libX11.so
     libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f1e4f17d000)

 bash-5.2$ env
     PWD=/home/foranw
     SHLVL=1
     PATH=/gnu/store/s7a2xqwcy03vd76cggzy661ismnxviyp-profile/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.
     _=/usr/bin/env


----

Here's some more glibc and system info:

objdump -T /lib/x86_64-linux-gnu/libX11.so.6 | grep -Po '(?<=GLIBC_)[.0-9]*' | sort -Vu
  2.2.5
  2.3
  2.3.2
  2.3.4
  2.4
  2.7
  2.14
  2.15
  2.26
  2.33
  2.34

apt-file search /lib/x86_64-linux-gnu/libX11.so
  libx11-6: /usr/lib/x86_64-linux-gnu/libX11.so.6
  libx11-6: /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0
  libx11-dev: /usr/lib/x86_64-linux-gnu/libX11.so


head /etc/ld.so.conf.d/*
  ==> /etc/ld.so.conf.d/fakeroot-x86_64-linux-gnu.conf <==
  /usr/lib/x86_64-linux-gnu/libfakeroot

  ==> /etc/ld.so.conf.d/libc.conf <==
  # libc default configuration
  /usr/local/lib

  ==> /etc/ld.so.conf.d/x86_64-linux-gnu.conf <==
  # Multiarch support
  /usr/local/lib/x86_64-linux-gnu
  /lib/x86_64-linux-gnu
  /usr/lib/x86_64-linux-gnu

  ==> /etc/ld.so.conf.d/zz_i386-biarch-compat.conf <==
  # Legacy biarch compatibility support
  /lib32
  /usr/lib32

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

* Re: debian glibc's libX11 depend breaks local profile guix?
  2024-07-17 19:47   ` Foran, Will
@ 2024-07-17 20:01     ` Simon Tournier
  2024-07-17 20:19       ` Foran, Will
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Tournier @ 2024-07-17 20:01 UTC (permalink / raw)
  To: Foran, Will; +Cc: help-guix@gnu.org

Re,

On Wed, 17 Jul 2024 at 21:47, Foran, Will <foranw@upmc.edu> wrote:

>  bash-5.2$ guix describe
>     /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
>
>  bash-5.2$ ldd /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper/bin/guile|grep libX11.so
>      libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f1e4f17d000)

Hum?!

Could you share the content of  ~/.config/guix/current/manifest ?

Thanks,
simon


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

* Re: debian glibc's libX11 depend breaks local profile guix?
  2024-07-17 20:01     ` Simon Tournier
@ 2024-07-17 20:19       ` Foran, Will
  2024-07-18 10:10         ` Simon Tournier
  0 siblings, 1 reply; 8+ messages in thread
From: Foran, Will @ 2024-07-17 20:19 UTC (permalink / raw)
  To: Simon Tournier; +Cc: help-guix@gnu.org


Simon Tournier <zimon.toutoune@gmail.com> writes:
> Could you share the content of  ~/.config/guix/current/manifest ?

Happily!


cat ~/.config/guix/current/manifest

;; This file was automatically generated and is for internal use only.
;; It cannot be passed to the '--manifest' option.
;; Run 'guix package --export-manifest' if you want to export a file
;; suitable for '--manifest'.

(manifest
  (version 3)
  (packages
    (("guix"
      "a575d0f"
      "out"
      "/gnu/store/4aq33jf91kj6qvl7ym5f7mc3hxsqxhw0-guix-a575d0f5d"
      (propagated-inputs ())
      (search-paths ())
      (properties
        (source
          (repository
            (version 0)
            (url "https://git.savannah.gnu.org/git/guix.git")
            (branch "master")
            (commit
              "a575d0f5d5322bac977423b6bd2742c8dc5a14a6")
            (name guix)
            (introduction
              (channel-introduction
                (version 0)
                (commit
                  "9edb3f66fd807b096b48283debdcddccfea34bad")
                (signer
                  "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA"))))))))))

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

* Re: debian glibc's libX11 depend breaks local profile guix?
  2024-07-17 20:19       ` Foran, Will
@ 2024-07-18 10:10         ` Simon Tournier
  2024-07-18 14:49           ` Foran, Will
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Tournier @ 2024-07-18 10:10 UTC (permalink / raw)
  To: Foran, Will; +Cc: help-guix@gnu.org

Hi,

On Wed, 17 Jul 2024 at 20:19, "Foran, Will" <foranw@upmc.edu> wrote:

>       "/gnu/store/4aq33jf91kj6qvl7ym5f7mc3hxsqxhw0-guix-a575d0f5d"

[...]

>               "a575d0f5d5322bac977423b6bd2742c8dc5a14a6")

Well, I do not have this item
/gnu/store/4aq33jf91kj6qvl7ym5f7mc3hxsqxhw0-guix-a575d0f5d when I run:

  guix time-machine --commit=a575d0f5d5322bac977423b6bd2742c8dc5a14a6 -- describe

      or

   guix pull --commit=a575d0f5d5322bac977423b6bd2742c8dc5a14a6 -p /tmp/foo

But I do not think it comes from that.


>  bash-5.2$ guix describe
>     /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

That’s weird.  For instance, I get:

--8<---------------cut here---------------start------------->8---
$ /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper/bin/guile --version
guile (GNU Guile) 3.0.9
Copyright (C) 2023 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
--8<---------------cut here---------------end--------------->8---


>  bash-5.2$ ldd /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper/bin/guile|grep libX11.so
>      libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f1e4f17d000)

And no libX11:

--8<---------------cut here---------------start------------->8---
$ ldd /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper/bin/guile|grep lib
	libguile-3.0.so.1 => /gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/lib/libguile-3.0.so.1 (0x000071acbc702000)
	libgcc_s.so.1 => /gnu/store/16zls6rxxma08js8f3rkgmrg99r7qrqr-gcc-11.3.0-lib/lib/libgcc_s.so.1 (0x000071acbc6e8000)
	libc.so.6 => /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libc.so.6 (0x000071acbc4ec000)
	libgc.so.1 => /gnu/store/k1ha4n9v8d7myiiszvl2ic7xnb56l219-libgc-8.2.2/lib/libgc.so.1 (0x000071acbc47d000)
	libffi.so.8 => /gnu/store/l0y8jkmip7qpa7x33972mn0dsfy8ac01-libffi-3.4.4/lib/libffi.so.8 (0x000071acbc46d000)
	libunistring.so.2 => /gnu/store/jmhgczf8brflqrq5qir8gw5aq7f16g1i-libunistring-1.0/lib/libunistring.so.2 (0x000071acbc2c0000)
	libcrypt.so.1 => /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libcrypt.so.1 (0x000071acbc286000)
	libm.so.6 => /gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libm.so.6 (0x000071acbc1a9000)
	/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x000071acbc849000)
--8<---------------cut here---------------end--------------->8---

Well, could you try

    guix build /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper

which should redownload the binary?  Then, could you try

    guix gc --derivers /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper

?  I get: /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv.
I might be different and if it is, we will scrutinize later. :-)

Then, let rebuild this derivation:

--8<---------------cut here---------------start------------->8---
drv=$(guix gc --derivers /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper)
guix build $drv
guix build $drv --check -K
--8<---------------cut here---------------end--------------->8---

Does it pass?  If yes, do you still liX11 in the picture?


Cheers,
simon


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

* Re: debian glibc's libX11 depend breaks local profile guix?
  2024-07-18 10:10         ` Simon Tournier
@ 2024-07-18 14:49           ` Foran, Will
  2024-07-19  9:54             ` Simon Tournier
  0 siblings, 1 reply; 8+ messages in thread
From: Foran, Will @ 2024-07-18 14:49 UTC (permalink / raw)
  To: Simon Tournier; +Cc: help-guix@gnu.org


Thanks again for spending time on this!

guile-wrapper.drv matches! When I run build, the only new download not in the cache was glibc-2.35.
Build succeeds but still includes X11 and fails to run. I tried building again after 'guix gc' with the same results.
So I tried to start fresh -- nuked the install! That didn't help either.

For what it's worth, I tried the same install procedure on a debian:stable-slim container with libx11-6 and guile-3.0-dev packages and had no errors!
So the issue is definitely isolated to something weird/broken on my system.

I'd previously claimed I used the guix installer, but this was not the actual state of my install!
The working /usr/bin/guix command was from the debian package, discovered when trying to start fresh.

  sudo apt remove guix
  sudo env -i -- bash --norc --noprofile --login
    cd /tmp
    umount /gnu/store
    ./guix-install.sh --uninstall
    GUIX_ALLOW_OVERWRITE=1 ./guix-install.sh

I hit familiar errors near the end of the binary install script.

> Permit downloading pre-built package binaries from the project's build farms? [Y/n]y
  /gnu/store/5kj8lyybjrdl7xd0fx9g9vzkz8sklqsy-guix-1.4.0/libexec/guix/guile: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
  /gnu/store/5kj8lyybjrdl7xd0fx9g9vzkz8sklqsy-guix-1.4.0/libexec/guix/guile: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory


----
after a fresh ./guix-install.sh with now broken guix and guix-daemon
ldd /gnu/store/*3.0.8/bin/guile
/gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/bin/guile: /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)
/gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/bin/guile: /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libc.so.6: version `GLIBC_2.36' not found (required by /lib/x86_64-linux-gnu/libstdc++.so.6)
/gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/bin/guile: /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libc.so.6: version `GLIBC_2.34' not found (required by /lib/x86_64-linux-gnu/libstdc++.so.6)
        linux-vdso.so.1 (0x00007ffdd17f4000)
        /usr/local/lib/AppProtection/libAppProtection.so (0x00007f1021e00000)
        libguile-3.0.so.1 => /gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/lib/libguile-3.0.so.1 (0x00007f1022085000)
        libgc.so.1 => /gnu/store/2lczkxbdbzh4gk7wh91bzrqrk7h5g1dl-libgc-8.0.4/lib/libgc.so.1 (0x00007f1021d90000)
        libpthread.so.0 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libpthread.so.0 (0x00007f1022063000)
        libffi.so.7 => /gnu/store/wgqhlc12qvlwiklam7hz2r311fdcqfim-libffi-3.3/lib/libffi.so.7 (0x00007f1022056000)
        libunistring.so.2 => /gnu/store/hkhbq2q1gfs970gsp2nhsmcqb4vmv2xr-libunistring-0.9.10/lib/libunistring.so.2 (0x00007f1021c0d000)
        libcrypt.so.1 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libcrypt.so.1 (0x00007f1021bd3000)
        libdl.so.2 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libdl.so.2 (0x00007f1022051000)
        libm.so.6 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libm.so.6 (0x00007f1021a92000)
        libgcc_s.so.1 => /gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/libgcc_s.so.1 (0x00007f1022035000)
        libc.so.6 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libc.so.6 (0x00007f10218d0000)
        /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f10221dc000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f102176b000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f1021741000)
        libXi.so.6 => /lib/x86_64-linux-gnu/libXi.so.6 (0x00007f102172d000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1021400000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f102202e000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f1021000000)
        libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f1021718000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f1021702000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f10216f5000)


----
logs from before removing debian's guix, when I had a working guix-daemon

/usr/bin/guix gc --derivers /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper
/usr/bin/guix build /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv
  ...
  downloading from https://ci.guix.gnu.org/nar/lzip/i2g0is6wjq3ccs6m1l6w9mhf44k4042h-glibc-2.35-static ...
   glibc-2.35-static
  ...

/usr/bin/guix build $drv --check -K
  The following derivation will be built:
    /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv
  building /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv...
  successfully built /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv
  successfully built /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv
  /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper

# non-debian guile still throws libX11 error


---

working guix in containerized debian with potentially offending packages (libx11-6, guile-3.0-dev)

podman run --rm -it debian:bookworm-slim  \
  bash -c 'apt update && apt install xz-utils gpg wget libx11-6 guile-3.0-dev && \
    cd /tmp && wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh && yes | bash guix-install.sh && guix describe && ldd /gnu/store/*guile-3.0.8/bin/guile'

  guix 8e2f32c
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 8e2f32cee982d42a79e53fc1e9aa7b8ff0514714

        linux-vdso.so.1 (0x0000785ca8e45000)
        libguile-3.0.so.1 => /gnu/store/qlmpcy5zi84m6dikq3fnx5dz38qpczlc-guile-3.0.8/lib/libguile-3.0.so.1 (0x0000785ca8cea000)
        libgc.so.1 => /gnu/store/2lczkxbdbzh4gk7wh91bzrqrk7h5g1dl-libgc-8.0.4/lib/libgc.so.1 (0x0000785ca8c7a000)
        libpthread.so.0 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libpthread.so.0 (0x0000785ca8c5a000)
        libffi.so.7 => /gnu/store/wgqhlc12qvlwiklam7hz2r311fdcqfim-libffi-3.3/lib/libffi.so.7 (0x0000785ca8c4b000)
        libunistring.so.2 => /gnu/store/hkhbq2q1gfs970gsp2nhsmcqb4vmv2xr-libunistring-0.9.10/lib/libunistring.so.2 (0x0000785ca8ac8000)
        libcrypt.so.1 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libcrypt.so.1 (0x0000785ca8a8e000)
        libdl.so.2 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libdl.so.2 (0x0000785ca8a89000)
        libm.so.6 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libm.so.6 (0x0000785ca8948000)
        libgcc_s.so.1 => /gnu/store/094bbaq6glba86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/libgcc_s.so.1 (0x0000785ca892c000)
        libc.so.6 => /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/libc.so.6 (0x0000785ca876a000)
        /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000785ca8e47000)

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

* Re: debian glibc's libX11 depend breaks local profile guix?
  2024-07-18 14:49           ` Foran, Will
@ 2024-07-19  9:54             ` Simon Tournier
  0 siblings, 0 replies; 8+ messages in thread
From: Simon Tournier @ 2024-07-19  9:54 UTC (permalink / raw)
  To: Foran, Will; +Cc: help-guix@gnu.org

Hi,

On Thu, 18 Jul 2024 at 14:49, "Foran, Will" <foranw@upmc.edu> wrote:

> guile-wrapper.drv matches! When I run build, the only new download not in the cache was glibc-2.35.
> Build succeeds but still includes X11 and fails to run.

That’s not possible! :-)


> /usr/bin/guix gc --derivers /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper
> /usr/bin/guix build /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv
>   ...
>   downloading from https://ci.guix.gnu.org/nar/lzip/i2g0is6wjq3ccs6m1l6w9mhf44k4042h-glibc-2.35-static ...
>    glibc-2.35-static
>   ...
>
> /usr/bin/guix build $drv --check -K
>   The following derivation will be built:
>     /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv
>   building /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv...
>   successfully built /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv
>   successfully built /gnu/store/n8rm2vj4hb2x8dakayhz988ggly557zq-guile-wrapper.drv
>   /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper


The first question is: What is the output of ldd on this newly rebuild
guile-wrapper?

    item=/gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper
    drv=$(guix gc --derivers $item)
    ldd $(guix build $drv --check)


Since the derivation,

--8<---------------cut here---------------start------------->8---
Derive
([("out","/gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper","","")]
 ,[("/gnu/store/0zjk0c9fvgambb06advdfdic1k8vrqv6-module-import-compiled.drv",["out"])
   ,("/gnu/store/2sx3m3pl91zf1hhwni0g086fjqgpl9s4-bash-minimal-5.1.16.drv",["out"])
   ,("/gnu/store/2vzk0pggcg07jps4rakaykkh9824dlzh-xz-5.2.8.drv",["out"])
   ,("/gnu/store/417cb6f5fy4zq4n8fq38fh2m3117di88-gzip-1.12.drv",["out"])
   ,("/gnu/store/4220x2mav9gr6m2hvnnz6fyvgdin5hjq-linux-libre-headers-5.15.49.drv",["out"])
   ,("/gnu/store/4nbww5pazy06cspizdyqz905xqbl41pg-libgc-8.2.2.drv",["out"])
   ,("/gnu/store/5bqhdbbl71r9r936w6w8zzqlk41md3wx-glibc-2.35.drv",["out"])
   ,("/gnu/store/65awpa8wn4f29r30shnszcv0qrb4ma3j-ld-wrapper-0.drv",["out"])
   ,("/gnu/store/71zjcp7cnwwkdr99ik8vbzxx7qbr6b2i-gawk-5.2.1.drv",["out"])
   ,("/gnu/store/736kxrzhcs3j0f7hsmqryd6jwshlx682-gcc-toolchain-11.3.0.drv",["out"])
   ,("/gnu/store/7h80pp4rhli380019zzwi177f0vq52l5-sed-4.8.drv",["out"])
   ,("/gnu/store/9cpbcz5zy2qli3dfp2ygvzq3i5v4nr11-gcc-11.3.0.drv",["out"])
   ,("/gnu/store/b4m72vk02gv78zwbbz8c94chxq1wy022-grep-3.8.drv",["out"])
   ,("/gnu/store/bfbwrwfs74vaj095ajris3qm08xml2kr-bash-minimal-5.1.16.drv",["out"])
   ,("/gnu/store/cwp3jiclamfn5if6i9l5n0fvgafn1ign-binutils-2.38.drv",["out"])
   ,("/gnu/store/gra08x2djgwx86z7v4q6xn5msd64jkv1-libffi-3.4.4.drv",["out"])
   ,("/gnu/store/h7257i2k485f2haz3jq1aa7gl0wj86pr-libunistring-1.0.drv",["out"])
   ,("/gnu/store/hd566ps78law19mg8kg3qqnwkpa0jq0j-patch-2.7.6.drv",["out"])
   ,("/gnu/store/jgz6gzxg6pcd14pj4qq63ga5sd5s79jp-diffutils-3.8.drv",["out"])
   ,("/gnu/store/jjd8jwysh5v3gc7gqblv6sg4xbax8w2v-guile-3.0.9.drv",["out"])
   ,("/gnu/store/jp63bvm3xzs37ki7yh3w8kay7cjlfvvg-pkg-config-0.29.2.drv",["out"])
   ,("/gnu/store/lv39lmg2qsyidnkivqakqfm4f9zjm1xq-findutils-4.9.0.drv",["out"])
   ,("/gnu/store/n9kblf5cx4lphrydjr90sp3zfvcdr1pb-glibc-utf8-locales-2.35.drv",["out"])
   ,("/gnu/store/q8hxlyzbfdvbxj2bqlhx1436vis1h7gh-file-5.44.drv",["out"])
   ,("/gnu/store/sxhj38l914rklrrnfbawl35avh2b98fb-bzip2-1.0.8.drv",["out"])
   ,("/gnu/store/xphmpn1w9qcf56nxc6sr964mw9qqysvh-make-4.3.drv",["out"])
   ,("/gnu/store/z3nbmh643y37z8nfa3m3canwkm5y68gy-tar-1.34.drv",["out"])
   ,("/gnu/store/z4vfa0jx4y51qd1qvcki7p5iljmaavyw-coreutils-9.1.drv",["out"])]
 ,["/gnu/store/7kyna1kkr5kd4j1548g8mwbzl7sn2gqr-guile-launcher.c","/gnu/store/pj751v3199vmv6i6sf0szp185ryzcfdg-module-import","/gnu/store/rym012hvcqv3j43qpglwb6wnffhl54j2-guile-wrapper-builder"]
 ,"x86_64-linux","/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/bin/guile",["--no-auto-compile","-L","/gnu/store/pj751v3199vmv6i6sf0szp185ryzcfdg-module-import","-C","/gnu/store/iqbchmbmhmi34bwgv4sm14li9m24dpnl-module-import-compiled","/gnu/store/rym012hvcqv3j43qpglwb6wnffhl54j2-guile-wrapper-builder"]
 ,[("out","/gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper")
   ,("preferLocalBuild","1")])
--8<---------------cut here---------------end--------------->8---

does not contain libX11 as inputs and the builder reads,

--8<---------------cut here---------------start------------->8---
(begin
  (use-modules
   (guix build utils)
   (srfi srfi-26))
  (mkdir-p
   (string-append
    ((@
      (guile)
      getenv)
     "out")
    "/bin"))
  (setenv "PATH" "/gnu/store/rxj73693alaf16khpr79ca084yaj8yk1-gcc-toolchain-11.3.0/bin")
  (setenv "C_INCLUDE_PATH"
          (string-join
           (map
            (cut string-append <> "/include")
            (quote
             ("/gnu/store/y353jkh1k0zg71jf5i2qn9lzs8c1vrss-pkg-config-0.29.2" "/gnu/store/vmkxkzvc42bjzq83ird7rhdh2qls676s-libffi-3.4.4" "/gnu/store/z37sfhs8ax8kvx3b9mp3k64yjbskyfss-bash-minimal-5.1.16" "/gnu/store/gdc91d0j6g7hvi5jgn0hgxsxabj63if7-libunistring-1.0" "/gnu/store/wl08kgpdc163yn8bdywsfp1d2iqb3pps-libgc-8.2.2" "/gnu/store/sbvig457pjaw8lx84jfw817ybr5ykw1h-tar-1.34" "/gnu/store/cyfj4yrz9x90nc095cjpbfq7wkl2g0a2-gzip-1.12" "/gnu/store/0ngy7fmrp9g3q35wwccnjxzaaqq9f8wi-bzip2-1.0.8" "/gnu/store/7g5jkdllp3hs511kc8c27va7k8nv9w2q-file-5.44" "/gnu/store/2f3c79yqr8ybd6n2kcm33a1xazfdrjgi-diffutils-3.8" "/gnu/store/vzvpbh92rqwmlxvn09yn6iq3mnrq3i7s-patch-2.7.6" "/gnu/store/bmijic3s8dffgy4brixbnjfmdiagcykx-findutils-4.9.0" "/gnu/store/i15ck92nri7y0smqbs2g72hjpsaq7cd7-gawk-5.2.1" "/gnu/store/0wpywa5fi9a5lm3j950b5n5s9wwj2val-sed-4.8" "/gnu/store/a79001z72gykafj2pkb95aw61cvm94wa-grep-3.8" "/gnu/store/ja6f9jlsijdwp24hr3ycjc3gk2fazsx2-xz-5.2.8" "/gnu/store/9v9xjn6lvmavsqbsfr0s22ydmzldzq85-coreutils-9.1" "/gnu/store/yzan10da6ai627wq8f6x7bg00fpf4pxq-make-4.3" "/gnu/store/3l2282bkqkhjiy2jmic88pdypk2pmyvz-bash-minimal-5.1.16" "/gnu/store/v5aqhqxjqdvh9fhi64ifxnfji562j178-ld-wrapper-0" "/gnu/store/bnw209k5cvbyi04kngddlk2ir77x8yii-binutils-2.38" "/gnu/store/xdhavds2ld8i8154b4hg6q3kflbcks9w-gcc-11.3.0" "/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35" "/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35" "/gnu/store/visfdda934gvivwihwhlm63fdqhhcc8a-glibc-utf8-locales-2.35" "/gnu/store/5iklcps70c0sfkxvlrhg8jhf3q4h18bj-linux-libre-headers-5.15.49")))
           ":"))
  (setenv "LIBRARY_PATH" "/gnu/store/rxj73693alaf16khpr79ca084yaj8yk1-gcc-toolchain-11.3.0/lib")
  (setenv "GUIX_LD_WRAPPER_DISABLE_RPATH" "1")
  (invoke "gcc" "/gnu/store/7kyna1kkr5kd4j1548g8mwbzl7sn2gqr-guile-launcher.c" "-Wall" "-g0" "-O2" "-I" "/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/include/guile/3.0" "-L" "/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/lib" "-Wl,-rpath" "/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/lib" "-lguile-3.0" "-o"
          (string-append
           ((@
             (guile)
             getenv)
            "out")
           "/bin/guile")))
--8<---------------cut here---------------end--------------->8---
           
Therefore, it means that if you still get the output you mentioned
earlier [1]:

    bash-5.2$ ldd /gnu/store/ni2dckdc0lcb6b77b6q3qfy2mr60z8c2-guile-wrapper/bin/guile|grep libX11.so
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f1e4f17d000)

then it implies a serious bug about the isolation on your system, from
my understanding.


Cheers,
simon


1: Re: debian glibc's libX11 depend breaks local profile guix?
"Foran, Will" <foranw@upmc.edu>
Wed, 17 Jul 2024 19:47:17 +0000
id:87msmfaji3.fsf@upmc.edu
https://lists.gnu.org/archive/html/help-guix/2024-07
https://yhetil.org/guix/87msmfaji3.fsf@upmc.edu


^ 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).