From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30395: =?UTF-8?Q?=E2=80=98gcc=E2=80=99?= doesn't compile with LD_LIBRARY_PATH="$HOME/.guix-profile/lib" Date: Fri, 16 Feb 2018 17:43:23 +0100 Message-ID: <87h8qgnavo.fsf@gnu.org> References: <87vaf72y9w.fsf@gnu.org> <87k1vdqm09.fsf@gnu.org> <87mv09gn3i.fsf@gnu.org> <874lmhozml.fsf@gnu.org> <871shlkmp6.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]:56499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emj7F-0006iD-CE for bug-guix@gnu.org; Fri, 16 Feb 2018 11:44:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emj7C-0004LH-8A for bug-guix@gnu.org; Fri, 16 Feb 2018 11:44:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:39231) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emj7C-0004Ky-3o for bug-guix@gnu.org; Fri, 16 Feb 2018 11:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1emj7B-00084f-M6 for bug-guix@gnu.org; Fri, 16 Feb 2018 11:44:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <871shlkmp6.fsf@gnu.org> (Mathieu Lirzin's message of "Fri, 16 Feb 2018 15:56:21 +0100") 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: Mathieu Lirzin Cc: 30395@debbugs.gnu.org Mathieu Lirzin skribis: > After looking at the attached =E2=80=98strace=E2=80=99 log, as you initia= lly guessed > this issue is that multiple GCC are loaded. My =E2=80=98gcc-toolchain=E2= =80=99 is using > GCC 7.3 and =E2=80=98glibc=E2=80=99 is referring to GCC 5.4. Normally =E2=80=98glibc=E2=80=99 does not contain references to =E2=80=98gc= c=E2=80=99: --8<---------------cut here---------------start------------->8--- $ guix size /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25 store item total s= elf /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25 38.5 = 37.1 96.3% /gnu/store/zhrajv6qf2hzn9c3g2bb07559hyrz5xp-bash-static-4.4.12 1.4 = 1.4 3.7% total: 38.5 MiB --8<---------------cut here---------------end--------------->8--- > After removing =E2=80=98glibc=E2=80=99 and from my profile calling =E2=80= =98gcc=E2=80=99 completes, so I > don't need to install =E2=80=98binutils=E2=80=99 in my profile anymore. I don=E2=80=99t get it yet. The log shows this: --8<---------------cut here---------------start------------->8--- 9543 execve("/gnu/store/x7i79rihhdjkps5fx0f9p2q0svh5a88n-guile-2.2.2/bin/g= uile", ["/gnu/store/x7i79rihhdjkps5fx0f9p"..., "-c", "(load-compiled \"/gnu= /store/w27in"..., "-plugin", "/gnu/store/xjpchnxm9fgg05fqm9apy"..., "-plugi= n-opt=3D/gnu/store/xjpchnxm9"..., "-plugin-opt=3D-fresolution=3D/tmp/cc"...= , "-plugin-opt=3D-pass-through=3D-lgcc", "-plugin-opt=3D-pass-through=3D-lg= cc_"..., "-plugin-opt=3D-pass-through=3D-lgcc_"..., "-plugin-opt=3D-pass-th= rough=3D-lc", "-plugin-opt=3D-pass-through=3D-lgcc", "-plugin-opt=3D-pass-t= hrough=3D-lgcc_"..., "--eh-frame-hdr", "-m", "elf_x86_64", "-dynamic-linker= ", "/gnu/store/3h31zsqxjjg52da5gp3qm"..., "/gnu/store/0qg64bwn2z3g91b5iw16i= "..., "/gnu/store/0qg64bwn2z3g91b5iw16i"..., "/gnu/store/45rhjm5ryms10frcyr= zcd"..., "-L/gnu/store/0qg64bwn2z3g91b5iw1"..., "-L/gnu/store/45rhjm5ryms10= frcyrz"..., "-L/gnu/store/45rhjm5ryms10frcyrz"..., "-L/gnu/store/3h31zsqxjj= g52da5gp3"..., "/tmp/cc9aj9M2.o", "-lgcc", "--as-needed", "-lgcc_s", "--no-= as-needed", "-L/gnu/store/3h31zsqxjjg52da5gp3"..., "-rpath=3D/gnu/store/3h3= 1zsqxjjg52d"..., ...], 0x113a520 /* 31 vars */) =3D 0 9543 open("/home/mthl/.guix-profile/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = =3D 3 9543 write(2, "Uncaught exception:\n", 20) =3D 20 9543 futex(0x7f5d453c6930, FUTEX_WAKE_PRIVATE, 2147483647) =3D 0 9543 futex(0x7f5d43ab0190, FUTEX_WAKE_PRIVATE, 2147483647) =3D 0 9543 close(3) =3D 0 9543 close(4) =3D 0 9543 munmap(0x7f5d455e8000, 4096) =3D 0 9543 exit(0) =3D ? 9539 <... wait4 resumed> 0xcddb20, 0, NULL) =3D ? ERESTARTSYS (To be resta= rted if SA_RESTART is set) 9539 --- SIGINT {si_signo=3DSIGINT, si_code=3DSI_KERNEL} --- --8<---------------cut here---------------end--------------->8--- This is the execution of ld-wrapper and it terminates with =E2=80=9CUncaught exception=E2=80=9D, which isn=E2=80=99t really helpful. Apparently this ha= ppens before =E2=80=98boot-9.scm=E2=80=99 was even search for. Can you reproduce it by running =E2=80=98ld=E2=80=99 directly in that envir= onment? Or better yet, by running =E2=80=98guile=E2=80=99? The next thing is to try a= nd do that in gdb=E2=80=A6 Ludo=E2=80=99.