From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: bug#30395: =?UTF-8?Q?=E2=80=98gcc=E2=80=99?= doesn't compile with LD_LIBRARY_PATH="$HOME/.guix-profile/lib" Date: Sun, 18 Feb 2018 22:51:46 +0100 Message-ID: <871shi0xvx.fsf@gnu.org> References: <87vaf72y9w.fsf@gnu.org> <87k1vdqm09.fsf@gnu.org> <87mv09gn3i.fsf@gnu.org> <874lmhozml.fsf@gnu.org> <871shlkmp6.fsf@gnu.org> <87h8qgnavo.fsf@gnu.org> <87a7w7a18h.fsf@gnu.org> <87606vjp0t.fsf@gnu.org> <87606v9qq2.fsf@gnu.org> <87d112iey5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enWsN-0001TL-Ud for bug-guix@gnu.org; Sun, 18 Feb 2018 16:52:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enWsM-00063Z-VM for bug-guix@gnu.org; Sun, 18 Feb 2018 16:52:04 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enWsM-00063V-RZ for bug-guix@gnu.org; Sun, 18 Feb 2018 16:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1enWsM-0005jB-IR for bug-guix@gnu.org; Sun, 18 Feb 2018 16:52:02 -0500 In-Reply-To: <87vaf72y9w.fsf@gnu.org> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30395@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mathieu Lirzin skribis: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> How come this =E2=80=98gconv-modules=E2=80=99 file doesn=E2=80=99t exis= t? I have it here. >>> I have: >>> >>> $ guix hash -r /gnu/store/5x9zxdmxphmprlchfl3a2y8w5ykcwkjc-glibc-2.25 >>> 03la0p9pigf6r33px5nckky9fxvrynvw1fgn9v2l04zlys7k3k2y >>> $ wget -q -O - https://berlin.guixsd.org/5x9zxdmxphmprlchfl3a2y8w5ykcwk= jc.narinfo | grep NarHash >>> NarHash: sha256:03la0p9pigf6r33px5nckky9fxvrynvw1fgn9v2l04zlys7k3k2y >>> >>> >>> What about you? >> >> $ guix hash -r /gnu/store/5x9zxdmxphmprlchfl3a2y8w5ykcwkjc-glibc-2.25 >> guix hash: error: lstat: Aucun fichier ou dossier de ce type: "/gnu/stor= e/5x9zxdmxphmprlchfl3a2y8w5ykcwkjc-glibc-2.25" >> >> There is no corresponding store item, so it seems logical that the >> =E2=80=98gconv-modules=E2=80=99 are not found. :-)=20 > > Oh! Now your mission, if you accept it, will be to find where that > 5x9zxdmxphmprlchfl3a2y8w5ykcwkjc-glibc-2.25 comes from. I am not clear regarding what to search for, so let me reason at loud. The following command allows me to find the corresponding derivation: $ find /gnu/store -name '*.drv' -exec grep 5x9zxdmxphmprlchfl3a2y8w5ykcwk= jc {} + =E2=86=92 /gnu/store/xhg66izrd1ijnaqzk8zxrfn6i5lwgqdi-glibc-2.25.drv Next to see what packages refers to this derivation I run this: $ guix gc --referrers /gnu/store/xhg66izrd1ijnaqzk8zxrfn6i5lwgqdi-glibc-2= .25.drv =E2=86=92 /gnu/store/1msbfj9jljqm3zj17fwq0gqzw4vww7h8-glibc-2.25.drv This corresponds to 38kr8xi7nib8rx8xr4gi0w0d8knyca3k-glibc-2.25 found in the following =E2=80=9Cbad=E2=80=9D strace log: --8<---------------cut here---------------start------------->8--- 30147 open("/gnu/store/38kr8xi7nib8rx8xr4gi0w0d8knyca3k-glibc-2.25/lib/gcon= v/gconv-modules.cache", O_RDONLY) =3D -1 ENOENT (No such file or directory) 30147 open("/gnu/store/5x9zxdmxphmprlchfl3a2y8w5ykcwkjc-glibc-2.25/lib/gcon= v/gconv-modules", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or direct= ory) --8<---------------cut here---------------end--------------->8--- IIUC 38kr8 is a grafted version of 5x9zx. So what seems to happen is that there is =E2=80=9Csomething=E2=80=9D found in =E2=80=9C$HOME/.guix-pro= file/lib=E2=80=9D by the dynamic loader that contains a reference to '5x9zx' but should be grafted to refer to '38kr8'. Is that correct? So the faulty package should be in the outputs corresponding to the following list: $ guix gc --referrers /gnu/store/1msbfj9jljqm3zj17fwq0gqzw4vww7h8-glibc-2= .25.drv /gnu/store/2mf7rkp0gs61gffip9k3vzxrqdin2nqw-xdg-mime-database.drv /gnu/store/64xh3mr0l597j2dwqsaw4y72563mg2n2-gtk-icon-themes.drv /gnu/store/7d6q1y1py9w6f5ikcq16nl147lw41vdm-ca-certificate-bundle.drv /gnu/store/8x4mx1vghdgfjcygq34h9160bcvanfd4-manual-database.drv /gnu/store/d53hf10ljmnavyhy08wxvd91lmkm04xg-gtk-icon-themes.drv /gnu/store/h0khj5wnfskjrw9r3cmp6rsk5ncj29ws-info-dir.drv /gnu/store/jamz10xa4hbglbqc49iyj3wp6fm7sq3b-gtk-im-modules.drv /gnu/store/lx64j3l2j53sav1gzi2flylm0lp5kvym-profile.drv /gnu/store/q28f7j4qn0fgsc5b51cq5jvpixnd1jrs-fonts-dir.drv /gnu/store/s01vvhbb2hz76fsch1js5g0p50vbk9y5-xdg-mime-database.drv /gnu/store/wdzl6xdrdvy196ia9n0mj7f5v5fiyl2r-xdg-desktop-database.drv Would it possible to grep in the corresponding outputs? For now I have run tried in my profile without success: $ grep -RU 5x9zxdmxphmprlchfl3a2y8w5ykcwkjc-glibc-2.25 $HOME/.guix-profile > Perhaps what would help is to diff the =E2=80=9Cgood=E2=80=9D and the =E2= =80=9Cbad=E2=80=9D strace > logs. What would be your methodology? --=20 Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37