From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Bootstrapping Guix on HPC without Root Date: Mon, 17 Jul 2017 15:48:59 +0200 Message-ID: <8760er6uno.fsf@gnu.org> References: <20170712174615.2f0db165@Saltsus> 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]:47816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX6Oj-0001TV-7b for guix-devel@gnu.org; Mon, 17 Jul 2017 09:49:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX6Of-0001gL-Bi for guix-devel@gnu.org; Mon, 17 Jul 2017 09:49:17 -0400 In-Reply-To: <20170712174615.2f0db165@Saltsus> (Wm Salt Hale's message of "Wed, 12 Jul 2017 17:46:15 -0700") 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" To: Wm Salt Hale Cc: guix-devel@gnu.org, Pjotr Prins Hello! Wm Salt Hale skribis: > I have been attempting to install Guix on the University of > Washington's HPC using a modified bootstrapping script based on > https://github.com/pjotrp/nix-no-root > > The script can currently be found here (to be forked and pushed to GH > when verified as working): > > https://communitydata.cc/~salt/guix-bootstrap.sh > > > This produces a semi-working installation, it can spit out a version > and spend a good deal of time trying to complete `guix pull` > > The first run was logged via `|& tee -a` > > https://communitydata.cc/~salt/guix_first_run.log For the sake of those not following links ;-), the build error is: --8<---------------cut here---------------start------------->8--- build/genhooks.o build/errors.o ../build-x86_64-unknown-linux-gnu/libib= erty/libiberty.a g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables= -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-= format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadi= c-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_F= ILE -Wl,-rpath=3D/com/guix/guix/store/qrxkb00z8qmj0aql4gd8zcmf3ldvz583-glib= c-2.25/lib -Wl,-dynamic-linker -Wl,/com/guix/guix/store/qrxkb00z8qmj0aql4gd= 8zcmf3ldvz583-glibc-2.25/lib/ld-linux-x86-64.so.2 -L/com/guix/guix/store/89= f8avya4dzh8jrvzxw1q9pf27af702h-libstdc++-5.4.0/lib -L/com/guix/guix/store/y= r6nya39hzwx960y8nbiqq91w5yk842x-zlib-1.2.11/lib -Wl,-rpath=3D/com/guix/guix= /store/yr6nya39hzwx960y8nbiqq91w5yk842x-zlib-1.2.11/lib -o build/genchecksu= m \ build/genchecksum.o ../build-x86_64-unknown-linux-gnu/libiberty/libiber= ty.a x86_64-guix-linux-gnu-ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status make[3]: *** [Makefile:2613: build/genhooks] Error 1 make[3]: *** Waiting for unfinished jobs.... x86_64-guix-linux-gnu-ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status make[3]: *** [Makefile:2613: build/genchecksum] Error 1 --8<---------------cut here---------------end--------------->8--- The =E2=80=98guix-bootstrap.sh=E2=80=99 script above runs guix-daemon with =E2=80=98--disable-chroot=E2=80=99, which means build processes are not bei= ng isolated. I=E2=80=99m fairly confident that this is the root cause of the problem; for instance because GCC=E2=80=99s build processes end up picking a few things = from /usr/bin instead of /gnu/store. (ISTR Roel Janssen experienced a similar issue back then, maybe Roel can comment.) Pjotr mentioned PRoot. An intermediate solution would be to build and =E2=80=9Cpack=E2=80=9D the software you want to run on your laptop (any mac= hine where Guix is already installed), to send it to the HPC machine, and to run it there with PRoot. I gave instructions at: https://lists.gnu.org/archive/html/guix-devel/2017-05/msg00182.html I know Pjotr has been experimenting with another nice option, I=E2=80=99ll = let him explain. :-) HTH! Ludo=E2=80=99.