unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* Installing guix from Git
@ 2013-06-07 15:42 Konrad Hinsen
  2013-06-07 16:22 ` Ludovic Courtès
  0 siblings, 1 reply; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-07 15:42 UTC (permalink / raw)
  To: bug-guix

After initially playing with Guix 0.2, I now want to switch to the bleeding edge.
I cloned the Git repository, ran "autoreconf -vi", and then "configure". This
ends with an error message:

  ./configure: line 6575: syntax error near unexpected token `GUILE,'
  ./configure: line 6575: `PKG_CHECK_MODULES(GUILE, guile-2.0 >= 2.0.5)'

This looks like autoconf doesn't know as much as it should about
Guile, but I have no idea what to do about this. Suggestions?

Konrad.

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

* Re: Installing guix from Git
  2013-06-07 15:42 Installing guix from Git Konrad Hinsen
@ 2013-06-07 16:22 ` Ludovic Courtès
  2013-06-08 17:16   ` Konrad Hinsen
  0 siblings, 1 reply; 20+ messages in thread
From: Ludovic Courtès @ 2013-06-07 16:22 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> After initially playing with Guix 0.2, I now want to switch to the bleeding edge.
> I cloned the Git repository, ran "autoreconf -vi", and then "configure". This
> ends with an error message:
>
>   ./configure: line 6575: syntax error near unexpected token `GUILE,'
>   ./configure: line 6575: `PKG_CHECK_MODULES(GUILE, guile-2.0 >= 2.0.5)'

This message means that Autoconf didn’t pick up the definition of the
‘PKG_CHECK_MODULES’ M4 macro.

That macro is provided by pkg.m4, from the ‘pkg-config’ package.  Thus,
if you install ‘pkg-config’, Autoconf should automatically find it.

(If you still have Guix 0.2 installed, you can run ‘guix package -i
autoconf -i automake -i pkg-config’, and export the environment
variables as noted.)

Let us know how it goes.

Thanks,
Ludo’.

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

* Re: Installing guix from Git
  2013-06-07 16:22 ` Ludovic Courtès
@ 2013-06-08 17:16   ` Konrad Hinsen
  2013-06-08 17:27     ` Nikita Karetnikov
  0 siblings, 1 reply; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-08 17:16 UTC (permalink / raw)
  To: bug-guix

Ludovic Courtès writes:

 > That macro is provided by pkg.m4, from the ‘pkg-config’ package.  Thus,
 > if you install ‘pkg-config’, Autoconf should automatically find it.

Aaaahhhh.....

Of course I thought about pkg-config. But I thought I had installed
it. Which I had - through apt-get. And then autoconf via guix, so
autoconf can't possibly know about pkg-config. First lesson about Guix ;-)

With that out of the way, and lots of other stuff installed via Guix
(gcc, glibc, guile, bzip2, sqlite, and perhaps a few more),
"configure" runs to the end without complaining. But then "make" fails:

make: *** No rule to make target `nix/libstore/schema.sql', needed by `nix/libstore/schema.sql.hh'.  Stop.

SQL isn't my strong point either :-(

Konrad.

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

* Re: Installing guix from Git
  2013-06-08 17:16   ` Konrad Hinsen
@ 2013-06-08 17:27     ` Nikita Karetnikov
  2013-06-09 10:03       ` Konrad Hinsen
  0 siblings, 1 reply; 20+ messages in thread
From: Nikita Karetnikov @ 2013-06-08 17:27 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

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

> With that out of the way, and lots of other stuff installed via Guix
> (gcc, glibc, guile, bzip2, sqlite, and perhaps a few more),
> "configure" runs to the end without complaining. But then "make" fails:

> make: *** No rule to make target `nix/libstore/schema.sql', needed by `nix/libstore/schema.sql.hh'.  Stop.

Could you try to run './bootstrap' before './configure && make && make
check'?

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

* Re: Installing guix from Git
  2013-06-08 17:27     ` Nikita Karetnikov
@ 2013-06-09 10:03       ` Konrad Hinsen
  2013-06-09 10:23         ` Ludovic Courtès
  0 siblings, 1 reply; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-09 10:03 UTC (permalink / raw)
  To: bug-guix

Nikita Karetnikov writes:

 > > make: *** No rule to make target `nix/libstore/schema.sql', needed by `nix/libstore/schema.sql.hh'.  Stop.
 > 
 > Could you try to run './bootstrap' before './configure && make && make
 > check'?

Thanks, that helped me make a lot of progress!

Now the build procedure crashes during "make", see below for the error message.
As always I am very open to suggestions ;-)

Konrad.



g++  -g -O2   -o guix-daemon nix/nix-daemon/guix_daemon-nix-daemon.o nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a libformat.a -lbz2 -L/nix/store/8dk06b6wm9gc1kwqr9fn7a1x6bvl8pf2-sqlite-3.7.15.2/lib -lsqlite3   -L/home/hinsen/.guix-profile//lib -lgcrypt 
libutil.a(libutil_a-hash.o): In function `finish':
/home/hinsen/Development/guix/nix/libutil/hash.cc:271: undefined reference to `SHA256_Final'
/home/hinsen/Development/guix/nix/libutil/hash.cc:269: undefined reference to `MD5_Final'
/home/hinsen/Development/guix/nix/libutil/hash.cc:270: undefined reference to `SHA1_Final'
libutil.a(libutil_a-hash.o): In function `update':
/home/hinsen/Development/guix/nix/libutil/hash.cc:263: undefined reference to `SHA256_Update'
/home/hinsen/Development/guix/nix/libutil/hash.cc:261: undefined reference to `MD5_Update'
/home/hinsen/Development/guix/nix/libutil/hash.cc:262: undefined reference to `SHA1_Update'
libutil.a(libutil_a-hash.o): In function `start':
/home/hinsen/Development/guix/nix/libutil/hash.cc:254: undefined reference to `SHA256_Init'
/home/hinsen/Development/guix/nix/libutil/hash.cc:252: undefined reference to `MD5_Init'
/home/hinsen/Development/guix/nix/libutil/hash.cc:253: undefined reference to `SHA1_Init'
collect2: error: ld returned 1 exit status
make[2]: *** [guix-daemon] Error 1
make[2]: Leaving directory `/media/sf_mac-hinsen/Development/guix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/sf_mac-hinsen/Development/guix'
make: *** [all] Error 2

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

* Re: Installing guix from Git
  2013-06-09 10:03       ` Konrad Hinsen
@ 2013-06-09 10:23         ` Ludovic Courtès
  2013-06-10  6:33           ` Konrad Hinsen
  0 siblings, 1 reply; 20+ messages in thread
From: Ludovic Courtès @ 2013-06-09 10:23 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> g++  -g -O2   -o guix-daemon nix/nix-daemon/guix_daemon-nix-daemon.o nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a libformat.a -lbz2 -L/nix/store/8dk06b6wm9gc1kwqr9fn7a1x6bvl8pf2-sqlite-3.7.15.2/lib -lsqlite3   -L/home/hinsen/.guix-profile//lib -lgcrypt 
> libutil.a(libutil_a-hash.o): In function `finish':
> /home/hinsen/Development/guix/nix/libutil/hash.cc:271: undefined reference to `SHA256_Final'

Looks like you may have stale .o files (in Guix ‘SHA256_Final’ is an
inline function defined in sha256.h.)

Can you try ‘make clean && make’?

HTH,
Ludo’.

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

* Re: Installing guix from Git
  2013-06-09 10:23         ` Ludovic Courtès
@ 2013-06-10  6:33           ` Konrad Hinsen
  2013-06-10  8:26             ` Ludovic Courtès
  2013-06-10  8:27             ` Ludovic Courtès
  0 siblings, 2 replies; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-10  6:33 UTC (permalink / raw)
  To: bug-guix

Ludovic Courtès writes:

 > Looks like you may have stale .o files (in Guix ‘SHA256_Final’ is an
 > inline function defined in sha256.h.)
 > 
 > Can you try ‘make clean && make’?

That got me back to the same problem 30 seconds later.

Next, I made a fresh clone of the Git repository, and then everything
went smoothly:

  ./bootstrap
  ./configure --with-libgcrypt-prefix=$HOME/.guix-profile/
  make
  sudo make install

And now I can smile happily as 'guix --version' says 0.3 :-)

Thanks,
  Konrad.

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

* Re: Installing guix from Git
  2013-06-10  6:33           ` Konrad Hinsen
@ 2013-06-10  8:26             ` Ludovic Courtès
  2013-06-10  8:27             ` Ludovic Courtès
  1 sibling, 0 replies; 20+ messages in thread
From: Ludovic Courtès @ 2013-06-10  8:26 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> Ludovic Courtès writes:
>
>  > Looks like you may have stale .o files (in Guix ‘SHA256_Final’ is an
>  > inline function defined in sha256.h.)
>  > 
>  > Can you try ‘make clean && make’?
>
> That got me back to the same problem 30 seconds later.

Then probably ‘rm -rf nix’ before running ./bootstrap would have solved
the problem.  Something like that.  ;-)

> Next, I made a fresh clone of the Git repository, and then everything
> went smoothly:
>
>   ./bootstrap
>   ./configure --with-libgcrypt-prefix=$HOME/.guix-profile/
>   make
>   sudo make install
>
> And now I can smile happily as 'guix --version' says 0.3 :-)

Ah, good.  :-)

Ludo’.

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

* Re: Installing guix from Git
  2013-06-10  6:33           ` Konrad Hinsen
  2013-06-10  8:26             ` Ludovic Courtès
@ 2013-06-10  8:27             ` Ludovic Courtès
  2013-06-10  9:55               ` Konrad Hinsen
  1 sibling, 1 reply; 20+ messages in thread
From: Ludovic Courtès @ 2013-06-10  8:27 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

>   ./bootstrap
>   ./configure --with-libgcrypt-prefix=$HOME/.guix-profile/
>   make
>   sudo make install

Oh, could you also run ‘make check’?  If it fails, please post
test-suite.log and the .log file that corresponds to the failing test
file.

Thanks,
Ludo’.

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

* Re: Installing guix from Git
  2013-06-10  8:27             ` Ludovic Courtès
@ 2013-06-10  9:55               ` Konrad Hinsen
  2013-06-10 22:02                 ` Ludovic Courtès
  0 siblings, 1 reply; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-10  9:55 UTC (permalink / raw)
  To: bug-guix

[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 730 bytes --]

Ludovic Courtès writes:

 > Oh, could you also run ‘make check’?  If it fails, please post
 > test-suite.log and the .log file that corresponds to the failing test
 > file.

Oops, I should have done this before installing... There are a couple
of failures.  The logs are attached.

Many failures are due to this problem:

  /home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory

I installed sqlite throuh Guix for my user profile, which I used for
building Guix. I suspect that the daemon does not have access to it
because it doesn't run under my user id. But I have no idea how to fix
that.

Konrad.


[-- Attachment #2: builders.log --]
[-- Type: application/octet-stream, Size: 391 bytes --]

%%%% Starting test builders
Group begin: builders
Test begin:
  test-name: "url-fetch"
Test end:
  result-kind: fail
  actual-value: #f
Test begin:
  test-name: "gnu-build-system"
Test end:
  result-kind: pass
  actual-value: #t
Test begin:
  test-name: "gnu-build"
Test end:
  result-kind: fail
  actual-value: #f
Group end: builders
# of expected passes      1
# of unexpected failures  2

[-- Attachment #3: derivations.log --]
[-- Type: application/octet-stream, Size: 2807 bytes --]

%%%% Starting test derivations
Group begin: derivations
Test begin:
  test-name: "parse & export"
Test end:
  result-kind: pass
  actual-value: #t
Test begin:
  test-name: "add-to-store, flat"
Test end:
  result-kind: skip
Test begin:
  test-name: "add-to-store, recursive"
Test end:
  result-kind: skip
Test begin:
  test-name: "derivation with no inputs"
Test end:
  result-kind: skip
Test begin:
  test-name: "build derivation with 1 source"
Test end:
  result-kind: skip
Test begin:
  test-name: "derivation with local file as input"
Test end:
  result-kind: skip
Test begin:
  test-name: "fixed-output derivation"
Test end:
  result-kind: skip
Test begin:
  test-name: "fixed-output derivation: output paths are equal"
Test end:
  result-kind: skip
Test begin:
  test-name: "derivation with a fixed-output input"
Test end:
  result-kind: skip
Test begin:
  test-name: "multiple-output derivation"
Test end:
  result-kind: skip
Test begin:
  test-name: "multiple-output derivation, non-alphabetic order"
Test end:
  result-kind: skip
Test begin:
  test-name: "user of multiple-output derivation"
Test end:
  result-kind: skip
Test begin:
  test-name: "build derivation with coreutils"
Test end:
  result-kind: skip
Test begin:
  test-name: "build-expression->derivation and derivation-prerequisites"
Test end:
  result-kind: skip
Test begin:
  test-name: "build-expression->derivation without inputs"
Test end:
  result-kind: skip
Test begin:
  test-name: "build-expression->derivation and max-silent-time"
Test end:
  result-kind: skip
Test begin:
  test-name: "build-expression->derivation and derivation-prerequisites-to-build"
Test end:
  result-kind: skip
Test begin:
  test-name: "derivation-prerequisites-to-build when outputs already present"
Test end:
  result-kind: skip
Test begin:
  test-name: "derivation-prerequisites-to-build and substitutes"
Test end:
  result-kind: skip
Test begin:
  test-name: "build-expression->derivation with expression returning #f"
Test end:
  result-kind: skip
Test begin:
  test-name: "build-expression->derivation with two outputs"
Test end:
  result-kind: fail
  actual-value: #f
Test begin:
  test-name: "build-expression->derivation with one input"
Test end:
  result-kind: skip
Test begin:
  test-name: "imported-files"
Test end:
  result-kind: fail
  actual-value: #f
Test begin:
  test-name: "build-expression->derivation with modules"
Test end:
  result-kind: fail
  actual-value: #f
Test begin:
  test-name: "build-expression->derivation: same fixed-output path"
Test end:
  result-kind: fail
  actual-value: #f
Test begin:
  test-name: "build-expression->derivation with a fixed-output input"
Test end:
  result-kind: fail
  actual-value: #f
Group end: derivations
# of expected passes      1
# of unexpected failures  5
# of skipped tests        20

[-- Attachment #4: nar.log --]
[-- Type: application/octet-stream, Size: 301 bytes --]

%%%% Starting test nar
Group begin: nar
Test begin:
  test-name: "write-file + restore-file"
Test end:
  result-kind: fail
  actual-value: #f
Test begin:
  test-name: "write-file + restore-file with symlinks"
Test end:
  result-kind: fail
  actual-value: #f
Group end: nar
# of unexpected failures  2

[-- Attachment #5: packages.log --]
[-- Type: application/octet-stream, Size: 1677 bytes --]

%%%% Starting test packages
Group begin: packages
Test begin:
  test-name: "package-field-location"
Test end:
  result-kind: pass
  actual-value: #t
Test begin:
  test-name: "package-transitive-inputs"
Test end:
  result-kind: pass
  actual-value: #t
Test begin:
  test-name: "return values"
Test end:
  result-kind: skip
Test begin:
  test-name: "package-output"
Test end:
  result-kind: skip
Test begin:
  test-name: "trivial"
Test end:
  result-kind: skip
Test begin:
  test-name: "trivial with local file as input"
Test end:
  result-kind: skip
Test begin:
  test-name: "trivial with system-dependent input"
Test end:
  result-kind: skip
Test begin:
  test-name: "search paths"
Test end:
  result-kind: skip
Test begin:
  test-name: "package-cross-derivation"
Test end:
  result-kind: fail
  actual-value: #f
Test begin:
  test-name: "package-cross-derivation, trivial-build-system"
Test end:
  result-kind: fail
  actual-value: #f
Test begin:
  test-name: "package-cross-derivation, no cross builder"
Test end:
  result-kind: pass
  actual-value: #t
Test begin:
  test-name: "GNU Make, bootstrap"
Test end:
  result-kind: fail
  actual-value: #f
Test begin:
  test-name: "fold-packages"
Test end:
  result-kind: pass
  actual-value: #<package hello-2.8 gnu/packages/base.scm:50 2c59370>
  expected-value: #<package hello-2.8 gnu/packages/base.scm:50 2c59370>
Test begin:
  test-name: "find-packages-by-name"
Test end:
  result-kind: pass
  actual-value: #t
Test begin:
  test-name: "find-packages-by-name with version"
Test end:
  result-kind: pass
  actual-value: #t
Group end: packages
# of expected passes      6
# of unexpected failures  3
# of skipped tests        6

[-- Attachment #6: test-suite.log --]
[-- Type: application/octet-stream, Size: 23543 bytes --]

====================================
   GNU Guix 0.3: ./test-suite.log
====================================

# TOTAL: 18
# PASS:  9
# SKIP:  0
# XFAIL: 0
# FAIL:  9
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/builders
====================

/home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
%%%% Starting test builders  (Writing full log to "builders.log")
FAIL url-fetch
FAIL gnu-build
# of expected passes      1
# of unexpected failures  2
In unknown file:
   ?: 19 [apply-smob/1 #<catch-closure 18f3ca0>]
In ice-9/boot-9.scm:
  63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 17 [eval # #]
In ice-9/boot-9.scm:
2320: 16 [save-module-excursion #<procedure 1922b80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 15 [#<procedure 1922b80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 14 [%start-stack load-stack ...]
1650: 13 [#<procedure 1928d50 ()>]
In unknown file:
   ?: 12 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/builders.scm"]
In ice-9/eval.scm:
 432: 11 [eval # #]
 411: 10 [eval # #]
In ice-9/boot-9.scm:
 157: 9 [catch #t #<procedure 205a8d0 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
 411: 8 [eval # #]
In guix/download.scm:
 181: 7 [url-fetch #f # sha256 ...]
In guix/packages.scm:
 309: 6 [cache # "x86_64-linux" #<procedure thunk ()>]
 396: 5 [thunk]
In gnu/packages/bootstrap.scm:
 166: 4 [build #f "guile-bootstrap-2.0" ...]
In guix/store.scm:
 467: 3 [#<procedure 1ce1900 at guix/store.scm:459:4 (server basename recursive? hash-algo file-name)> #f ...]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 203f240 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
In unknown file:
   ?: 19 [apply-smob/1 #<catch-closure 18f3ca0>]
In ice-9/boot-9.scm:
  63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 17 [eval # #]
In ice-9/boot-9.scm:
2320: 16 [save-module-excursion #<procedure 1922b80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 15 [#<procedure 1922b80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 14 [%start-stack load-stack ...]
1650: 13 [#<procedure 1928d50 ()>]
In unknown file:
   ?: 12 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/builders.scm"]
In ice-9/eval.scm:
 432: 11 [eval # #]
 411: 10 [eval # #]
In ice-9/boot-9.scm:
 157: 9 [catch #t #<procedure 20071b0 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
 411: 8 [eval # #]
In guix/download.scm:
 181: 7 [url-fetch #f "http://ftp.gnu.org/gnu/hello/hello-2.8.tar.gz" ...]
In guix/packages.scm:
 309: 6 [cache # "x86_64-linux" #<procedure thunk ()>]
 396: 5 [thunk]
In gnu/packages/bootstrap.scm:
 166: 4 [build #f "guile-bootstrap-2.0" ...]
In guix/store.scm:
 467: 3 [#<procedure 1ce1900 at guix/store.scm:459:4 (server basename recursive? hash-algo file-name)> #f ...]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 25acf80 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
./test-env: 1: kill: No such process


FAIL: tests/derivations
=======================

/home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
In unknown file:
   ?: 19 [apply-smob/1 #<catch-closure 1894ca0>]
In ice-9/boot-9.scm:
  63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 17 [eval # #]
In ice-9/boot-9.scm:
2320: 16 [save-module-excursion #<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 15 [#<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 14 [%start-stack load-stack ...]
1650: 13 [#<procedure 18c9d50 ()>]
In unknown file:
   ?: 12 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/derivations.scm"]
In ice-9/eval.scm:
 432: 11 [eval # #]
 411: 10 [eval # #]
In ice-9/boot-9.scm:
 157: 9 [catch #t #<procedure 230cdb0 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
 411: 8 [eval # #]
In guix/derivations.scm:
 739: 7 [build-expression->derivation #f "double" ...]
In guix/utils.scm:
 250: 6 [#<procedure 1c93540 at guix/utils.scm:246:4 args> #f]
In guix/derivations.scm:
 410: 5 [#<procedure 1c97580 at guix/derivations.scm:407:3 (path #:optional output)> #f ...]
In ice-9/boot-9.scm:
 788: 4 [call-with-input-file #f ...]
In unknown file:
   ?: 3 [open-file #f "r" #:encoding #f #:guess-encoding #f]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 2174500 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
In ice-9/boot-9.scm:
 157: 19 [catch #t #<catch-closure 1894ca0> ...]
In unknown file:
   ?: 18 [apply-smob/1 #<catch-closure 1894ca0>]
In ice-9/boot-9.scm:
  63: 17 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 16 [eval # #]
In ice-9/boot-9.scm:
2320: 15 [save-module-excursion #<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 14 [#<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 13 [%start-stack load-stack ...]
1650: 12 [#<procedure 18c9d50 ()>]
In unknown file:
   ?: 11 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/derivations.scm"]
In ice-9/eval.scm:
 432: 10 [eval # #]
 411: 9 [eval # #]
In ice-9/boot-9.scm:
 157: 8 [catch #t #<procedure 220ef30 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
 411: 7 [eval # #]
In guix/derivations.scm:
 621: 6 [imported-files #f (# # # #) #:name ...]
In srfi/srfi-1.scm:
 578: 5 [map #<procedure 3144560 at guix/derivations.scm:621:23 (expr)> (# # # #)]
In guix/derivations.scm:
 624: 4 [#<procedure 3144560 at guix/derivations.scm:621:23 (expr)> #]
In guix/store.scm:
 467: 3 [#<procedure 1c7f720 at guix/store.scm:459:4 (server basename recursive? hash-algo file-name)> #f ...]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 3147900 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
In unknown file:
   ?: 19 [apply-smob/1 #<catch-closure 1894ca0>]
In ice-9/boot-9.scm:
  63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 17 [eval # #]
In ice-9/boot-9.scm:
2320: 16 [save-module-excursion #<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 15 [#<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 14 [%start-stack load-stack ...]
1650: 13 [#<procedure 18c9d50 ()>]
In unknown file:
   ?: 12 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/derivations.scm"]
In ice-9/eval.scm:
 432: 11 [eval # #]
 411: 10 [eval # #]
In ice-9/boot-9.scm:
 157: 9 [catch #t #<procedure 20dea20 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
 411: 8 [eval # #]
In guix/derivations.scm:
 739: 7 [build-expression->derivation #f "test-with-modules" ...]
In guix/utils.scm:
 250: 6 [#<procedure 1c93540 at guix/utils.scm:246:4 args> #f]
In guix/derivations.scm:
 410: 5 [#<procedure 1c97580 at guix/derivations.scm:407:3 (path #:optional output)> #f ...]
In ice-9/boot-9.scm:
 788: 4 [call-with-input-file #f ...]
In unknown file:
   ?: 3 [open-file #f "r" #:encoding #f #:guess-encoding #f]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 2225b00 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
In unknown file:
   ?: 19 [apply-smob/1 #<catch-closure 1894ca0>]
In ice-9/boot-9.scm:
 %%%% Starting test derivations  (Writing full log to "derivations.log")
FAIL build-expression->derivation with two outputs
FAIL imported-files
FAIL build-expression->derivation with modules
FAIL build-expression->derivation: same fixed-output path
FAIL build-expression->derivation with a fixed-output input
# of expected passes      1
# of unexpected failures  5
# of skipped tests        20
 63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 17 [eval # #]
In ice-9/boot-9.scm:
2320: 16 [save-module-excursion #<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 15 [#<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 14 [%start-stack load-stack ...]
1650: 13 [#<procedure 18c9d50 ()>]
In unknown file:
   ?: 12 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/derivations.scm"]
In ice-9/eval.scm:
 432: 11 [eval # #]
 411: 10 [eval # #]
In ice-9/boot-9.scm:
 157: 9 [catch #t #<procedure 20f4390 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
 411: 8 [eval # #]
In guix/derivations.scm:
 739: 7 [build-expression->derivation #f "fixed" ...]
In guix/utils.scm:
 250: 6 [#<procedure 1c93540 at guix/utils.scm:246:4 args> #f]
In guix/derivations.scm:
 410: 5 [#<procedure 1c97580 at guix/derivations.scm:407:3 (path #:optional output)> #f ...]
In ice-9/boot-9.scm:
 788: 4 [call-with-input-file #f ...]
In unknown file:
   ?: 3 [open-file #f "r" #:encoding #f #:guess-encoding #f]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 1f6e600 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
In unknown file:
   ?: 19 [apply-smob/1 #<catch-closure 1894ca0>]
In ice-9/boot-9.scm:
  63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 17 [eval # #]
In ice-9/boot-9.scm:
2320: 16 [save-module-excursion #<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 15 [#<procedure 18c3b80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 14 [%start-stack load-stack ...]
1650: 13 [#<procedure 18c9d50 ()>]
In unknown file:
   ?: 12 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/derivations.scm"]
In ice-9/eval.scm:
 432: 11 [eval # #]
 411: 10 [eval # #]
In ice-9/boot-9.scm:
 157: 9 [catch #t #<procedure 212eab0 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
 411: 8 [eval # #]
In guix/derivations.scm:
 739: 7 [build-expression->derivation #f "fixed" ...]
In guix/utils.scm:
 250: 6 [#<procedure 1c93540 at guix/utils.scm:246:4 args> #f]
In guix/derivations.scm:
 410: 5 [#<procedure 1c97580 at guix/derivations.scm:407:3 (path #:optional output)> #f ...]
In ice-9/boot-9.scm:
 788: 4 [call-with-input-file #f ...]
In unknown file:
   ?: 3 [open-file #f "r" #:encoding #f #:guess-encoding #f]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 24b6fc0 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
./test-env: 1: kill: No such process


FAIL: tests/packages
====================

/home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
In ice-9/boot-9.scm:
1650: 19 [#<procedure 243ed50 ()>]
In unknown file:
   ?: 18 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/packages.scm"]
In ice-9/eval.scm:
 432: 17 [eval # #]
 411: 16 [eval # #]
In ice-9/boot-9.scm:
 157: 15 [catch #t #<procedure 305c810 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/r4rs.scm:
  39: 14 [call-with-values #<procedure 305c7e0 at ice-9/eval.scm:416:20 ()> ...]
In guix/packages.scm:
 309: 13 [cache # # #<procedure thunk ()>]
 452: 12 [thunk]
In guix/build-system/gnu.scm:
 359: 11 [gnu-cross-build #f "p-0" "mips64el-linux-gnu" #f () () #:guile #f ...]
In guix/utils.scm:
 250: 10 [#<procedure 28a5b40 at guix/utils.scm:246:4 args> "x86_64-linux" ...]
In srfi/srfi-1.scm:
 578: 9 [map #<procedure input-package->derivation (expr)> (# # # # ...)]
In guix/build-system/gnu.scm:
 169: 8 [input-package->derivation ("cross-gcc" #)]
In guix/packages.scm:
 309: 7 [cache # "x86_64-linux" #<procedure thunk ()>]
 384: 6 [thunk]
In srfi/srfi-1.scm:
 578: 5 [map #<procedure 3097930 at guix/packages.scm:385:39 (t-5514)> (# # # ...)]
In guix/packages.scm:
 337: 4 [expand-input #f # # ...]
In guix/store.scm:
 467: 3 [#<procedure 2779d20 at guix/store.scm:459:4 (server basename recursive? hash-algo file-name)> #f ...]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 25385c0 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
In guix/packages.scm:
 309: 19 [cache # "x86_64-linux" #<procedure thunk ()>]
 384: 18 [thunk]
In srfi/srfi-1.scm:
 578: 17 [map #<procedure 2d5e900 at guix/packages.scm:385:39 (t-5514)> (# # # ...)]
In guix/packages.scm:
 346: 16 [expand-input #f # # ...]
 309: 15 [cache # "x86_64-linux" #<procedure thunk ()>]
 384: 14 [thunk]
In srfi/srfi-1.scm:
 578: 13 [map #<procedure 2d61420 at guix/packages.scm:385:39 (t-5514)> (# # # ...)]
In guix/packages.scm:
 346: 12 [expand-input #f #<package bash-4.2 gnu/packages/base.scm:1006 382a790> ...]
 309: 11 [cache # "x86_64-linux" #<procedure thunk ()>]
 384: 10 [thunk]
In srfi/srfi-1.scm:
 578: 9 [map #<procedure 2d65d80 at guix/packages.scm:385:39 (t-5514)> (# # # ...)]
In guix/packages.scm:
 361: 8 [expand-input #f #<package gcc-4.7.3 gnu/packages/gcc.scm:36 3831370> ...]
In guix/download.scm:
 181: 7 [url-fetch #f "mirror://gnu/gmp/gmp-5.1.1.tar.xz" ...]
In guix/packages.scm:
 309: 6 [cache # "x86_64-linux" #<procedure thunk ()>]
 396: 5 [thunk]
In gnu/packages/bootstrap.scm:
 166: 4 [build #f "guile-bootstrap-2.0" ...]
In guix/store.scm:
 467: 3 [#<procedure 2779d20 at guix/store.scm:459:4 (server basename recursive? hash-algo file-name)> #f ...]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 2ada300 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
In unknown file:
   ?: 19 [apply-smob/1 #<catch-closure 2409ca0>]
In ice-9/boot-9.scm:
  63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 17 [eval # #]
In ice-9/boot-9.scm:
2320: 16 [save-module-excursion #<procedure 2438b80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 15 [#<procedure 2438b80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 14 [%start-stack load-stack ...]
1650: 13 [#<procedure 243ed50 ()>]
In unknown file:
   ?: 12 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/packages.scm"]
In ice-9/eval.scm:
 432: 11 [eval # #]
 411: 10 [eval # #]
In ice-9/boot-9.scm:
 157: 9 [catch #t #<procedure 2535b70 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/eval.scm:
 411: 8 [eval # #]
In guix/packages.scm:
 309: 7 [cache # "x86_64-linux" #<procedure thunk ()>]
 384: 6 [thunk]
In srfi/srfi-1.scm:
 578: 5 [map #<procedure 25358d0 at guix/packages.scm:385:39 (t-5514)> (# # # ...)]
In guix/packages.scm:
 337: 4 [expand-input #f # # ...]
In guix/store.scm:
 467: 3 [#<procedure 2779d20 at guix/store.scm:459:4 (server basename recursive? hash-algo file-name)> #f ...]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 2b9f900 at ice-9/boot-9.scm:97:6 (thrown-k . args)> wrong-type-arg ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
I%%%% Starting test packages  (Writing full log to "packages.log")

;;; (x (("b" #<package b-0 /media/sf_mac-hinsen/Development/guix/./tests/packages.scm:81 2cbc0b0>) ("b/a" #<package a-0 /media/sf_mac-hinsen/Development/guix/./tests/packages.scm:80 2cbc160>) ("c" #<package c-0 /media/sf_mac-hinsen/Development/guix/./tests/packages.scm:83 2cbc000>) ("d" #<package d-0 /media/sf_mac-hinsen/Development/guix/./tests/packages.scm:85 33d3f20>) ("d/x" "something.drv")))
FAIL package-cross-derivation
FAIL package-cross-derivation, trivial-build-system
FAIL GNU Make, bootstrap
# of expected passes      6
# of unexpected failures  3
# of skipped tests        6
n unknown file:
   ?: 0 [make-stack #t]
./test-env: 1: kill: No such process


FAIL: tests/nar
===============

/home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
%%%% Starting test nar  (Writing full log to "nar.log")
FAIL write-file + restore-file
FAIL write-file + restore-file with symlinks
# of unexpected failures  2
In ice-9/boot-9.scm:
 157: 18 [catch #t #<catch-closure 154cca0> ...]
In unknown file:
   ?: 17 [apply-smob/1 #<catch-closure 154cca0>]
In ice-9/boot-9.scm:
  63: 16 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 15 [eval # #]
In ice-9/boot-9.scm:
2320: 14 [save-module-excursion #<procedure 157bb80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 13 [#<procedure 157bb80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 12 [%start-stack load-stack ...]
1650: 11 [#<procedure 1581d50 ()>]
In unknown file:
   ?: 10 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/nar.scm"]
In ice-9/eval.scm:
 432: 9 [eval # #]
 411: 8 [eval # #]
In ice-9/boot-9.scm:
 157: 7 [catch #t #<procedure 1d6e360 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/r4rs.scm:
  90: 6 [dynamic-wind #<procedure 1cf6a00 at ice-9/boot-9.scm:1054:2 _> ...]
  90: 5 [dynamic-wind #<procedure 1d6e2d0 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/boot-9.scm:
 700: 4 [for-each #<procedure 1d6e180 at ice-9/eval.scm:416:20 (a)> (# # #)]
In unknown file:
   ?: 3 [symlink "reg" "./test-nar-3550.input/root/sym"]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 1c98840 at ice-9/boot-9.scm:97:6 (thrown-k . args)> system-error ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
In ice-9/boot-9.scm:
  63: 19 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 18 [eval # #]
In ice-9/boot-9.scm:
2320: 17 [save-module-excursion #<procedure 157bb80 at ice-9/boot-9.scm:3961:3 ()>]
3968: 16 [#<procedure 157bb80 at ice-9/boot-9.scm:3961:3 ()>]
1645: 15 [%start-stack load-stack ...]
1650: 14 [#<procedure 1581d50 ()>]
In unknown file:
   ?: 13 [primitive-load "/media/sf_mac-hinsen/Development/guix/./tests/nar.scm"]
In ice-9/eval.scm:
 432: 12 [eval # #]
 411: 11 [eval # #]
In ice-9/boot-9.scm:
 157: 10 [catch #t #<procedure 1d6e360 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/r4rs.scm:
  90: 9 [dynamic-wind #<procedure 1cf6a00 at ice-9/boot-9.scm:1054:2 _> ...]
  90: 8 [dynamic-wind #<procedure 1d6e2d0 at ice-9/eval.scm:416:20 ()> ...]
In ice-9/boot-9.scm:
 700: 7 [for-each #<procedure 1d6e180 at ice-9/eval.scm:416:20 (a)> (# # #)]
In unknown file:
   ?: 6 [symlink "reg" "./test-nar-3550.input/root/sym"]
In ice-9/boot-9.scm:
 105: 5 [#<procedure 1c98840 at ice-9/boot-9.scm:97:6 (thrown-k . args)> system-error ...]
  65: 4 [abort-to-prompt catch4480 system-error ...]
In unknown file:
   ?: 3 [rmdir "./test-nar-3550.input"]
In ice-9/boot-9.scm:
 102: 2 [#<procedure 1c98840 at ice-9/boot-9.scm:97:6 (thrown-k . args)> system-error ...]
In ice-9/eval.scm:
 387: 1 [eval # #]
In unknown file:
   ?: 0 [make-stack #t]
./test-env: 1: kill: No such process


FAIL: tests/guix-build
======================

/home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
+ guix build --version
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/hinsen/Development/guix/scripts/guix
;;; compiled /home/hinsen/Development/guix/test-tmp/var/3575/cache-3575/guile/ccache/2.0-LE-8-2.0/media/sf_mac-hinsen/Development/guix/scripts/guix.go
guix build (GNU Guix) 0.3
+ guix build -e +
guix build: error: failed to connect to `/home/hinsen/Development/guix/test-tmp/var/3575/daemon-socket/socket': No such file or directory
+ true
+ guix build -e '(@ (gnu packages bootstrap) %bootstrap-glibc)' -S
guix build: error: failed to connect to `/home/hinsen/Development/guix/test-tmp/var/3575/daemon-socket/socket': No such file or directory
+ true
+ grep -e -guile-
+ guix build -e '(@@ (gnu packages base) %bootstrap-guile)'
guix build: error: failed to connect to `/home/hinsen/Development/guix/test-tmp/var/3575/daemon-socket/socket': No such file or directory
./test-env: 1: kill: No such process


FAIL: tests/guix-download
=========================

/home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
+ guix download --version
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/hinsen/Development/guix/scripts/guix
;;; compiled /home/hinsen/Development/guix/test-tmp/var/3595/cache-3595/guile/ccache/2.0-LE-8-2.0/media/sf_mac-hinsen/Development/guix/scripts/guix.go
guix download (GNU Guix) 0.3
+ guix download http://does.not/exist
guix download: error: failed to connect to `/home/hinsen/Development/guix/test-tmp/var/3595/daemon-socket/socket': No such file or directory
+ true
+ guix download unknown://some/where
guix download: error: failed to connect to `/home/hinsen/Development/guix/test-tmp/var/3595/daemon-socket/socket': No such file or directory
+ true
+ guix download not/a/uri
guix download: error: failed to connect to `/home/hinsen/Development/guix/test-tmp/var/3595/daemon-socket/socket': No such file or directory
+ true
+ guix download file:///home/hinsen/Development/guix/README
guix download: error: failed to connect to `/home/hinsen/Development/guix/test-tmp/var/3595/daemon-socket/socket': No such file or directory
./test-env: 1: kill: No such process


FAIL: tests/guix-gc
===================

/home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
+ guix gc --version
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/hinsen/Development/guix/scripts/guix
;;; compiled /home/hinsen/Development/guix/test-tmp/var/3655/cache-3655/guile/ccache/2.0-LE-8-2.0/media/sf_mac-hinsen/Development/guix/scripts/guix.go
guix gc (GNU Guix) 0.3
+ trap 'rm -f guix-gc-root' EXIT
+ rm -f guix-gc-root
++ guix build guile-bootstrap -d
guix build: error: failed to connect to `/home/hinsen/Development/guix/test-tmp/var/3655/daemon-socket/socket': No such file or directory
+ drv=
+ rm -f guix-gc-root
./test-env: 1: kill: No such process


FAIL: tests/guix-package
========================

/home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
+ guix package --version
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/hinsen/Development/guix/scripts/guix
;;; compiled /home/hinsen/Development/guix/test-tmp/var/3635/cache-3635/guile/ccache/2.0-LE-8-2.0/media/sf_mac-hinsen/Development/guix/scripts/guix.go
guix package (GNU Guix) 0.3
+ profile=t-profile-3640
+ rm -f t-profile-3640
+ trap 'rm "$profile" "$profile-"[0-9]* ; rm -rf t-home-3640' EXIT
+ guix package --bootstrap -e +
guix package: error: expression `+' does not evaluate to a package
+ true
+ guix package --bootstrap -p t-profile-3640 -i guile-bootstrap
guix package: error: failed to connect to `/home/hinsen/Development/guix/test-tmp/var/3635/daemon-socket/socket': No such file or directory
+ rm t-profile-3640 't-profile-3640-[0-9]*'
rm: cannot remove `t-profile-3640': No such file or directory
rm: cannot remove `t-profile-3640-[0-9]*': No such file or directory
./test-env: 1: kill: No such process


FAIL: tests/guix-daemon
=======================

/home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
+ set -e
+ guix-daemon --version
guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory
./test-env: 1: kill: No such process



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

* Re: Installing guix from Git
  2013-06-10  9:55               ` Konrad Hinsen
@ 2013-06-10 22:02                 ` Ludovic Courtès
  2013-06-11  8:20                   ` Konrad Hinsen
  0 siblings, 1 reply; 20+ messages in thread
From: Ludovic Courtès @ 2013-06-10 22:02 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> Many failures are due to this problem:
>
>   /home/hinsen/Development/guix/guix-daemon: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory

That is weird.  Can you send the output of this command:

  objdump -x /home/hinsen/Development/guix/guix-daemon | grep -E '(PATH|NEED)'

Ludo’.

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

* Re: Installing guix from Git
  2013-06-10 22:02                 ` Ludovic Courtès
@ 2013-06-11  8:20                   ` Konrad Hinsen
  2013-06-11 12:17                     ` Ludovic Courtès
  0 siblings, 1 reply; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-11  8:20 UTC (permalink / raw)
  To: bug-guix

Ludovic Courtès writes:

 > That is weird.  Can you send the output of this command:
 > 
 >   objdump -x /home/hinsen/Development/guix/guix-daemon | grep -E '(PATH|NEED)'

Sure:

  NEEDED               libsqlite3.so.0
  NEEDED               libgcrypt.so.11
  NEEDED               libstdc++.so.6
  NEEDED               libm.so.6
  NEEDED               libgcc_s.so.1
  NEEDED               libc.so.6
  NEEDED               libpthread.so.0
  RPATH                /nix/store/ybdv89csf4sn7wbmgj9kfjjk1b0mhrlb-glibc-2.17/lib:/nix/store/7aclzhylh2rns1m6ppmmvfzndrmvz7pa-gcc-4.7.3/lib64:/nix/store/7aclzhylh2rns1m6ppmmvfzndrmvz7pa-gcc-4.7.3/lib
  VERNEED              0x0000000000403d68
  VERNEEDNUM           0x0000000000000005

Konrad

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

* Re: Installing guix from Git
  2013-06-11  8:20                   ` Konrad Hinsen
@ 2013-06-11 12:17                     ` Ludovic Courtès
  2013-06-11 13:23                       ` Konrad Hinsen
  0 siblings, 1 reply; 20+ messages in thread
From: Ludovic Courtès @ 2013-06-11 12:17 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> Ludovic Courtès writes:
>
>  > That is weird.  Can you send the output of this command:
>  > 
>  >   objdump -x /home/hinsen/Development/guix/guix-daemon | grep -E '(PATH|NEED)'
>
> Sure:
>
>   NEEDED               libsqlite3.so.0
>   NEEDED               libgcrypt.so.11
>   NEEDED               libstdc++.so.6
>   NEEDED               libm.so.6
>   NEEDED               libgcc_s.so.1
>   NEEDED               libc.so.6
>   NEEDED               libpthread.so.0
>   RPATH                /nix/store/ybdv89csf4sn7wbmgj9kfjjk1b0mhrlb-glibc-2.17/lib:/nix/store/7aclzhylh2rns1m6ppmmvfzndrmvz7pa-gcc-4.7.3/lib64:/nix/store/7aclzhylh2rns1m6ppmmvfzndrmvz7pa-gcc-4.7.3/lib
>   VERNEED              0x0000000000403d68
>   VERNEEDNUM           0x0000000000000005

SQLite is not listed in the RPATH, hence the run-timer link failure you
observe.  Normally SQLite’s directory would appear in the RPATH.

If you are building with the GCC and libc installed from Guix, then you
must also install the linker wrapper:

  guix package -i ld-wrapper

The wrapper takes care of adding the relevant libraries to the RPATH,
which will fix the problem.

(Ideally, it would either be installed automatically when one installs
GCC, or at least be recommended.)

HTH,
Ludo’.

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

* Re: Installing guix from Git
  2013-06-11 12:17                     ` Ludovic Courtès
@ 2013-06-11 13:23                       ` Konrad Hinsen
  2013-06-11 13:58                         ` Ludovic Courtès
  0 siblings, 1 reply; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-11 13:23 UTC (permalink / raw)
  To: bug-guix

Ludovic Courtès writes:

 > If you are building with the GCC and libc installed from Guix, then you
 > must also install the linker wrapper:
 > 
 >   guix package -i ld-wrapper
 > 
 > The wrapper takes care of adding the relevant libraries to the RPATH,
 > which will fix the problem.

Perhaps it does, but it certainly creates a new one:

ld-wrapper: error: attempt to use impure library "/home/hinsen/.guix-profile/lib/libgcc_s.so"

I get that message whenever I try to compile anything at all with my
Guix-installed GCC.

Konrad.

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

* Re: Installing guix from Git
  2013-06-11 13:23                       ` Konrad Hinsen
@ 2013-06-11 13:58                         ` Ludovic Courtès
  2013-06-11 15:30                           ` Konrad Hinsen
  2013-06-11 19:47                           ` Konrad Hinsen
  0 siblings, 2 replies; 20+ messages in thread
From: Ludovic Courtès @ 2013-06-11 13:58 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> Ludovic Courtès writes:
>
>  > If you are building with the GCC and libc installed from Guix, then you
>  > must also install the linker wrapper:
>  > 
>  >   guix package -i ld-wrapper
>  > 
>  > The wrapper takes care of adding the relevant libraries to the RPATH,
>  > which will fix the problem.
>
> Perhaps it does, but it certainly creates a new one:
>
> ld-wrapper: error: attempt to use impure library "/home/hinsen/.guix-profile/lib/libgcc_s.so"

Ah yes, ahem, you also need this:

  export GUIX_LD_WRAPPER_ALLOW_IMPURITIES="yes, please"

I’m sorry this is so painful.  We need to come up with ways to simplify
use of the tool chain installed via Guix.

Ludo’.

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

* Re: Installing guix from Git
  2013-06-11 13:58                         ` Ludovic Courtès
@ 2013-06-11 15:30                           ` Konrad Hinsen
  2013-06-11 22:35                             ` Ludovic Courtès
  2013-06-11 19:47                           ` Konrad Hinsen
  1 sibling, 1 reply; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-11 15:30 UTC (permalink / raw)
  To: bug-guix

Ludovic Courtès writes:

 > Ah yes, ahem, you also need this:
 > 
 >   export GUIX_LD_WRAPPER_ALLOW_IMPURITIES="yes, please"
 > 
 > I’m sorry this is so painful.  We need to come up with ways to simplify
 > use of the tool chain installed via Guix.

It seems that ld-wrapper considers my library impure because it is
accessed through my home directory's link to my user
profile. Shouldn't it be able to figure out that this is ultimately a
file in the store, by following the symlinks?

Konrad.

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

* Re: Installing guix from Git
  2013-06-11 13:58                         ` Ludovic Courtès
  2013-06-11 15:30                           ` Konrad Hinsen
@ 2013-06-11 19:47                           ` Konrad Hinsen
  1 sibling, 0 replies; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-11 19:47 UTC (permalink / raw)
  To: bug-guix

Ludovic Courtès writes:

 > Ah yes, ahem, you also need this:
 > 
 >   export GUIX_LD_WRAPPER_ALLOW_IMPURITIES="yes, please"

I forgot to report that this was the final missing piece: I can now
compile Guix using Guix-installed tools and run "make check" with no
failures.

Konrad.

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

* Re: Installing guix from Git
  2013-06-11 15:30                           ` Konrad Hinsen
@ 2013-06-11 22:35                             ` Ludovic Courtès
  2013-06-12  7:11                               ` Konrad Hinsen
  0 siblings, 1 reply; 20+ messages in thread
From: Ludovic Courtès @ 2013-06-11 22:35 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> Ludovic Courtès writes:
>
>  > Ah yes, ahem, you also need this:
>  > 
>  >   export GUIX_LD_WRAPPER_ALLOW_IMPURITIES="yes, please"
>  > 
>  > I’m sorry this is so painful.  We need to come up with ways to simplify
>  > use of the tool chain installed via Guix.
>
> It seems that ld-wrapper considers my library impure because it is
> accessed through my home directory's link to my user
> profile. Shouldn't it be able to figure out that this is ultimately a
> file in the store, by following the symlinks?

Yes, probably (this is not a problem when it’s used in a build
environment, because everything is under /nix/store anyway.)

If you want to look into it yourself, see ld-wrapper.scm.

The thing is that changing that file entails a full rebuild, since it’s
a dependency for pretty much everything.  So we’d stage the change along
with other world-changing patches.

Thanks,
Ludo’.

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

* Re: Installing guix from Git
  2013-06-11 22:35                             ` Ludovic Courtès
@ 2013-06-12  7:11                               ` Konrad Hinsen
  2013-06-12  7:43                                 ` Ludovic Courtès
  0 siblings, 1 reply; 20+ messages in thread
From: Konrad Hinsen @ 2013-06-12  7:11 UTC (permalink / raw)
  To: bug-guix

Ludovic Courtès writes:

 > Yes, probably (this is not a problem when it’s used in a build
 > environment, because everything is under /nix/store anyway.)

Right. And in a user environment, it is quite useful to be able to
link to impure libraries, so perhaps the best solution is to
make this the default (not sure though), or at least discuss the
environment variable in the documentation.

Konrad

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

* Re: Installing guix from Git
  2013-06-12  7:11                               ` Konrad Hinsen
@ 2013-06-12  7:43                                 ` Ludovic Courtès
  0 siblings, 0 replies; 20+ messages in thread
From: Ludovic Courtès @ 2013-06-12  7:43 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: bug-guix

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

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> Ludovic Courtès writes:
>
>  > Yes, probably (this is not a problem when it’s used in a build
>  > environment, because everything is under /nix/store anyway.)
>
> Right. And in a user environment, it is quite useful to be able to
> link to impure libraries, so perhaps the best solution is to
> make this the default (not sure though), or at least discuss the
> environment variable in the documentation.

I just pushed this patch in the new ‘core-updates’ branch:


[-- Attachment #2: Type: text/x-patch, Size: 2605 bytes --]

commit cfbf7877a673400881db20521a9d6a44261ed62b (HEAD, refs/heads/core-updates)
Author: Ludovic Courtès <ludo@gnu.org>
Date:   Wed Jun 12 09:39:31 2013 +0200

    ld-wrapper: Unless in a build env., allow files that symlink to the store.
    
    * gnu/packages/ld-wrapper.scm (pure-file-name?): As a last resort, when
      %BUILD-DIRECTORY is false, check whether FILE is a symlink, and loop
      over it to check whether its target is in the store.

	Modified   gnu/packages/ld-wrapper.scm
diff --git a/gnu/packages/ld-wrapper.scm b/gnu/packages/ld-wrapper.scm
index fd5a4cb..41ff3df 100644
--- a/gnu/packages/ld-wrapper.scm
+++ b/gnu/packages/ld-wrapper.scm
@@ -11,7 +11,7 @@ main="(@ (gnu build-support ld-wrapper) ld-wrapper)"
 exec @GUILE@ -c "(load-compiled \"$0.go\") (apply $main (cdr (command-line)))" "$@"
 !#
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -82,13 +82,26 @@ exec @GUILE@ -c "(load-compiled \"$0.go\") (apply $main (cdr (command-line)))" "
   (getenv "GUIX_LD_WRAPPER_DEBUG"))
 
 (define (pure-file-name? file)
-  ;; Return #t when FILE is the name of a file either within the store or
-  ;; within the build directory.
-  (or (not (string-prefix? "/" file))
-      (string-prefix? %store-directory file)
-      (string-prefix? %temporary-directory file)
-      (and %build-directory
-           (string-prefix? %build-directory file))))
+  ;; Return #t when FILE is the name of a file either within the store
+  ;; (possibly via a symlink) or within the build directory.
+  (define %max-symlink-depth 50)
+
+  (let loop ((file  file)
+             (depth 0))
+    (or (not (string-prefix? "/" file))
+        (string-prefix? %store-directory file)
+        (string-prefix? %temporary-directory file)
+        (if %build-directory
+            (string-prefix? %build-directory file)
+
+            ;; When used from a user environment, FILE may refer to
+            ;; ~/.guix-profile/lib/libfoo.so, which is itself a symlink to the
+            ;; store.  Check whether this is the case.
+            (let ((s (false-if-exception (lstat file))))
+              (and s
+                   (eq? 'symlink (stat:type s))
+                   (< depth %max-symlink-depth)
+                   (loop (readlink file) (+ 1 depth))))))))
 
 (define (switch-arguments switch args)
   ;; Return the arguments passed for the occurrences of SWITCH--e.g.,


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


It should leave the behavior unchanged in build environments, while
allowing libraries that are symlinks to the store in user environments.

Thanks!

Ludo’.

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

end of thread, other threads:[~2013-06-12  7:48 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-07 15:42 Installing guix from Git Konrad Hinsen
2013-06-07 16:22 ` Ludovic Courtès
2013-06-08 17:16   ` Konrad Hinsen
2013-06-08 17:27     ` Nikita Karetnikov
2013-06-09 10:03       ` Konrad Hinsen
2013-06-09 10:23         ` Ludovic Courtès
2013-06-10  6:33           ` Konrad Hinsen
2013-06-10  8:26             ` Ludovic Courtès
2013-06-10  8:27             ` Ludovic Courtès
2013-06-10  9:55               ` Konrad Hinsen
2013-06-10 22:02                 ` Ludovic Courtès
2013-06-11  8:20                   ` Konrad Hinsen
2013-06-11 12:17                     ` Ludovic Courtès
2013-06-11 13:23                       ` Konrad Hinsen
2013-06-11 13:58                         ` Ludovic Courtès
2013-06-11 15:30                           ` Konrad Hinsen
2013-06-11 22:35                             ` Ludovic Courtès
2013-06-12  7:11                               ` Konrad Hinsen
2013-06-12  7:43                                 ` Ludovic Courtès
2013-06-11 19:47                           ` Konrad Hinsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).