all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* libsigsegv does not compile in core-updates
@ 2013-04-08 20:30 Andreas Enge
  2013-04-09 12:18 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Enge @ 2013-04-08 20:30 UTC (permalink / raw)
  To: bug-guix

Here is what is output:

checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/nix-build-
libsigsegv-2.10.drv-0/libsigsegv-2.10':
configure: error: C compiler cannot create executables
See `config.log' for more details
phase `configure' failed after 1 seconds

config.log contains the following lines:
gcc version 4.7.2 (GCC)
configure:3126: $? = 0
configure:3115: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3126: $? = 1
configure:3115: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3126: $? = 1
configure:3146: checking whether the C compiler works
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: $? = 1
configure:3210: result: no

Does anyone else have the same problem? What could be happening?

Andreas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libsigsegv does not compile in core-updates
  2013-04-08 20:30 libsigsegv does not compile in core-updates Andreas Enge
@ 2013-04-09 12:18 ` Ludovic Courtès
  2013-04-09 15:17   ` Andreas Enge
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2013-04-09 12:18 UTC (permalink / raw)
  To: Andreas Enge; +Cc: bug-guix

[-- Attachment #1: Type: text/plain, Size: 724 bytes --]

Hi!

Andreas Enge <andreas@enge.fr> 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: $? = 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 ‘LIBRARY_PATH’ at the beginning of the log file?

It should have /path/to/glibc-2.17/lib, but I guess it doesn’t.

Hmm, indeed ‘implicit-search-paths’ in gnu.scm is always empty.

I think this patch should fix it:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1435 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 41 bytes --]


Can you confirm?

Thanks,
Ludo’.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: libsigsegv does not compile in core-updates
  2013-04-09 12:18 ` Ludovic Courtès
@ 2013-04-09 15:17   ` Andreas Enge
  2013-04-09 17:02     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Enge @ 2013-04-09 15:17 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: bug-guix

Am Dienstag, 9. April 2013 schrieb Ludovic Courtès:
> Hmm, indeed ‘implicit-search-paths’ in gnu.scm is always empty.
> I think this patch should fix it:
> Can you confirm?

Yes, it does. Could you push it? Thanks,

Andreas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libsigsegv does not compile in core-updates
  2013-04-09 15:17   ` Andreas Enge
@ 2013-04-09 17:02     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2013-04-09 17:02 UTC (permalink / raw)
  To: Andreas Enge; +Cc: bug-guix

Andreas Enge <andreas@enge.fr> skribis:

> Am Dienstag, 9. April 2013 schrieb Ludovic Courtès:
>> Hmm, indeed ‘implicit-search-paths’ in gnu.scm is always empty.
>> I think this patch should fix it:
>> Can you confirm?
>
> Yes, it does. Could you push it? Thanks,

Done, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-09 17:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-08 20:30 libsigsegv does not compile in core-updates Andreas Enge
2013-04-09 12:18 ` Ludovic Courtès
2013-04-09 15:17   ` Andreas Enge
2013-04-09 17:02     ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.