From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Mickey Subject: Re: Running guix on nixos Date: Thu, 21 Jan 2016 14:24:59 -0800 Message-ID: <87y4biy3ic.fsf@nevada.int.iggy.bz> References: <87a8nzzzhr.fsf@nevada.int.iggy.bz> <874me79uf2.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]:42497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMNf9-0006zw-8L for help-guix@gnu.org; Thu, 21 Jan 2016 17:25:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMNf4-0001P4-By for help-guix@gnu.org; Thu, 21 Jan 2016 17:25:07 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:33658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMNf4-0001MI-7E for help-guix@gnu.org; Thu, 21 Jan 2016 17:25:02 -0500 In-Reply-To: <874me79uf2.fsf@gnu.org> 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-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: help-guix@gnu.org * Ludovic Court=C3=A8s [2016-01-21 01:02]: > guix build -K hello This fails with the exact same error, it can't build gcc. g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables= -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-= format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlen= gth-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-rpath=3D/nix= /store/dbdj046q2ybl01ld56ywr0rkpy91g0xz-glibc-2.22/lib -Wl,-dynamic-linker = -Wl,/nix/store/dbdj046q2ybl01ld56ywr0rkpy91g0xz-glibc-2.22/lib/ld-linux-x86= -64.so.2 -L/nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib = -o build/genhooks \ 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 -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlen= gth-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-rpath=3D/nix= /store/dbdj046q2ybl01ld56ywr0rkpy91g0xz-glibc-2.22/lib -Wl,-dynamic-linker = -Wl,/nix/store/dbdj046q2ybl01ld56ywr0rkpy91g0xz-glibc-2.22/lib/ld-linux-x86= -64.so.2 -L/nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib = -o build/genchecksum \ build/genchecksum.o ../build-x86_64-unknown-linux-gnu/libiberty/libiber= ty.a /nix/store/xw7xz3cr8nhw24m6cchiha8g6lslwv1j-binutils-cross-boot0-2.25.1/bin= /x86_64-guix-linux-gnu-ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status Makefile:2532: recipe for target 'build/genhooks' failed make[3]: *** [build/genhooks] Error 1 make[3]: *** Waiting for unfinished jobs.... /nix/store/xw7xz3cr8nhw24m6cchiha8g6lslwv1j-binutils-cross-boot0-2.25.1/bin= /x86_64-guix-linux-gnu-ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status Makefile:2532: recipe for target 'build/genchecksum' failed If I look in /nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib I see the following: $ ls /nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib $ ls /nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/ include lib lib64 share $ ls /nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib64 libstdc++.a libstdc++.a-gdb.py libstdc++.la libsupc++.a libsupc++.la $ So.. it looks like the lib64 part isn't getting propagated correctly in the guix build. > Also, make sure nix-daemon uses pristine chroot builds. [...] Yes, had to add nix.useChroot to true in my /etc/nixos/configuration.nix. God I miss some s-exp. Thanks for your help! Really appreciate it. // codemac