From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul van der Walt Subject: Re: Everything segfaults Date: Tue, 14 Jun 2016 20:30:51 +0200 Message-ID: <874m8vpqqs.fsf@Cage.localdomain> References: <87bn3a2xtl.fsf@Cage.localdomain> <20160609172825.GA2080@solar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCt7E-0006QE-BF for help-guix@gnu.org; Tue, 14 Jun 2016 14:31:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCt79-0006Ev-AV for help-guix@gnu.org; Tue, 14 Jun 2016 14:31:08 -0400 Received: from aibo.runbox.com ([91.220.196.211]:39635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCt79-00069U-2p for help-guix@gnu.org; Tue, 14 Jun 2016 14:31:03 -0400 In-reply-to: <20160609172825.GA2080@solar> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Andreas Enge Cc: help-guix@gnu.org Hey Andreas! Sorry for the delay! Busy busy. On 2016-06-09 at 19:28, quoth Andreas Enge: > the following looks very strange: > >> [very strange output] > > Your Guix less seems to open libraries from your Arch system, which are > incompatible. Did you set LD_LIBRARY_PATH? > Maybe you could try "ldd /home/paul/.guix-profile/bin/less". If i open a terminal, then $ echo $LD_LIBRARY_PATH /home/paul/GNUstep/Library/Libraries:/usr/lib Here's some output: Case A: $ ldd .guix-profile/bin/less linux-vdso.so.1 (0x00007ffe775d7000) libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x00007f8401bc3000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f84019ad000) libc.so.6 => /usr/lib/libc.so.6 (0x00007f840160c000) /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2 (0x00007f8401e30000) Case B: $ LD_LIBRARY_PATH="~/.guix-profile/lib" ldd .guix-profile/bin/less linux-vdso.so.1 (0x00007ffe7cedb000) libncursesw.so.6 => /gnu/store/xadbq6k36aphlx0haxxzym3xmd5r1rp8-ncurses-6.0/lib/libncursesw.so.6 (0x00007fbc6dbdb000) libgcc_s.so.1 => /gnu/store/v39bh3ln3ncnzhyw0kd12d46kww9747v-gcc-4.9.3-lib/lib/libgcc_s.so.1 (0x00007fbc6d9c5000) libc.so.6 => /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/libc.so.6 (0x00007fbc6d620000) /gnu/store/8m00x5x8ykmar27s9248cmhnkdb2n54a-glibc-2.22/lib/ld-linux-x86-64.so.2 (0x00007fbc6de4b000) (when i try setting LD_..="~/.guix-profile/lib:$LD_..", that is, i only prepend the Guix lib path, then i get the same output from ldd as in case A -- is that what i expect?) So there's definitely something funny going on with LD_LIBRARY_PATH indeed. But here's another stupid question: surely if i want arbitrary Guix binaries to work on my system i'd apparently (?) have to put something like export LD_LIBRARY_PATH="$HOME/.guix-profile/lib" in my .xinitrc, but that would surely break other binaries (those installed by my usual package manager)? And if i put export LD_LIBRARY_PATH="$HOME/.guix-profile/lib:$LD_LIBRARY_PATH" in my .xinitrc, then as in case A, surely i won't have fixed my issue? Sorry to be so thick about this! Kind regards, p.