From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Installing manually built software in Guix Date: Fri, 07 Feb 2014 16:07:12 -0500 Message-ID: <874n4apr7j.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBsem-0002eS-FB for guix-devel@gnu.org; Fri, 07 Feb 2014 16:08:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBseg-0001uU-04 for guix-devel@gnu.org; Fri, 07 Feb 2014 16:08:16 -0500 Received: from world.peace.net ([96.39.62.75]:47733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBsef-0001sS-Sj for guix-devel@gnu.org; Fri, 07 Feb 2014 16:08:09 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Hello all, As a Guile developer, I'm in the habit of building Guile from git, and occasionally installing that version with --prefix=/usr. As a Guix enthusiast, I've recently been experimenting with building Guile from git, with my environment variables set to attempt to use only things from Guix: --8<---------------cut here---------------start------------->8--- export PATH=$HOME/.guix-profile/bin export LIBRARY_PATH=$HOME/.guix-profile/lib export CPATH=$HOME/.guix-profile/include export MANPATH=$HOME/.guix-profile/share/man:$HOME/.guix-profile/man export PKG_CONFIG_PATH=$HOME/.guix-profile/lib/pkgconfig export PYTHONPATH=$HOME/.guix-profile/lib/python2.7/site-packages export XDG_DATA_DIRS=$HOME/.guix-profile/share export PERL5LIB=$HOME/.guix-profile/lib/perl5/site_perl export ACLOCAL_PATH=$HOME/.guix-profile/share/aclocal --8<---------------cut here---------------end--------------->8--- I just tried "make install", as root, with these same environment variable settings (but with HOME=/home/mhw). It failed in the middle. Here's the tail of the log: --8<---------------cut here---------------start------------->8--- make[2]: Entering directory `/home/mhw/guile/guile-readline' make install-am make[3]: Entering directory `/home/mhw/guile/guile-readline' make[4]: Entering directory `/home/mhw/guile/guile-readline' /home/mhw/.guix-profile/bin/mkdir -p '/usr/lib' /bin/bash ../libtool --mode=install /home/mhw/.guix-profile/bin/install -c libguilereadline-v-18.la '/usr/lib' libtool: install: warning: relinking `libguilereadline-v-18.la' libtool: install: (cd /home/mhw/guile/guile-readline; /bin/bash /home/mhw/guile/libtool --silent --tag CC --mode=relink gcc -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wswitch-enum -fno-strict-aliasing -I/nix/store/a9j9bl7m73rhlal9z83z3wbl9m17di4i-libgc-7.4.0/include -g -O2 -version-info 18:0:0 -export-dynamic -no-undefined -o libguilereadline-v-18.la -rpath /usr/lib readline.lo -lreadline -lncurses ../libguile/libguile-2.0.la ../lib/libgnu.la -lcrypt -lm ) libtool: relink: warning: `/home/mhw/.guix-profile/lib/libunistring.la' seems to be moved libtool: relink: warning: `/home/mhw/.guix-profile/lib/libgmp.la' seems to be moved libtool: relink: warning: `/home/mhw/.guix-profile/lib/libltdl.la' seems to be moved /usr/lib/libgc.so: could not read symbols: File in wrong format collect2: error: ld returned 1 exit status libtool: install: error: relink `libguilereadline-v-18.la' with the above command before installing it make[4]: *** [install-libLTLIBRARIES] Error 1 make[4]: Leaving directory `/home/mhw/guile/guile-readline' make[3]: *** [install-am] Error 2 make[3]: Leaving directory `/home/mhw/guile/guile-readline' make[2]: *** [install] Error 2 make[2]: Leaving directory `/home/mhw/guile/guile-readline' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/mhw/guile' make: *** [install] Error 2 --8<---------------cut here---------------end--------------->8--- What went wrong here? Is there a reasonable way to do this? Thanks, Mark