unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Simon Tournier <zimon.toutoune@gmail.com>
To: "Foran, Will" <foranw@upmc.edu>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: debian glibc's libX11 depend breaks local profile guix?
Date: Fri, 19 Jul 2024 11:54:49 +0200	[thread overview]
Message-ID: <87le1x1zbq.fsf@gmail.com> (raw)
In-Reply-To: <87frs6ah6x.fsf@upmc.edu>

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


      reply	other threads:[~2024-07-19 10:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=87le1x1zbq.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=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).