From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: libsigsegv does not compile in core-updates Date: Tue, 09 Apr 2013 14:18:48 +0200 Message-ID: <87txnfaod3.fsf@gnu.org> References: <201304082230.54961.andreas@enge.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPXVq-0008VA-VY for bug-guix@gnu.org; Tue, 09 Apr 2013 08:19:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPXVp-0001Va-MA for bug-guix@gnu.org; Tue, 09 Apr 2013 08:18:58 -0400 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=50974 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPXVp-0001Sy-Ew for bug-guix@gnu.org; Tue, 09 Apr 2013 08:18:57 -0400 In-Reply-To: <201304082230.54961.andreas@enge.fr> (Andreas Enge's message of "Mon, 8 Apr 2013 22:30:54 +0200") 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! Andreas Enge skribis: > Here is what is output: [...] > configure:3168: gcc conftest.c >&5 > ld: cannot find crt1.o: No such file or directory > ld: cannot find crti.o: No such file or directory > collect2: error: ld returned 1 exit status > configure:3172: $? =3D 1 > configure:3210: result: no > > Does anyone else have the same problem? What could be happening? Most likely my search path commit broke something. Can you check the value of =E2=80=98LIBRARY_PATH=E2=80=99 at the beginning of the log file? It should have /path/to/glibc-2.17/lib, but I guess it doesn=E2=80=99t. Hmm, indeed =E2=80=98implicit-search-paths=E2=80=99 in gnu.scm is always em= pty. I think this patch should fix it: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm index d5ad1e3..bee8430 100644 --- a/guix/build-system/gnu.scm +++ b/guix/build-system/gnu.scm @@ -135,6 +135,13 @@ use `--strip-all' as the arguments to `strip'." ;; Store passed to STANDARD-INPUTS. (make-parameter #f)) +(define (standard-packages) + "Return the list of standard packages used as implicit inputs." + + ;; Resolve (gnu packages base) lazily to hide circular dependency. + (let ((distro (resolve-module '(gnu packages base)))) + (module-ref distro '%final-inputs))) + (define standard-inputs (memoize (lambda (system) @@ -148,9 +155,7 @@ System: GCC, GNU Make, Bash, Coreutils, etc." (z (error "invalid standard input" z))) - ;; Resolve (gnu packages base) lazily to hide circular dependency. - (let* ((distro (resolve-module '(gnu packages base))) - (inputs (module-ref distro '%final-inputs))) + (let ((inputs (standard-packages))) (append inputs (append-map (match-lambda ((name package _ ...) @@ -203,7 +208,7 @@ which could lead to gratuitous input divergence." (package-native-search-paths p)) (_ '())) - implicit-inputs) + (standard-packages)) '())) (define builder --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Can you confirm? Thanks, Ludo=E2=80=99. --=-=-=--