unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Building GUIX
@ 2014-05-08 12:32 Pjotr Prins
  2014-05-08 12:52 ` Andreas Enge
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Pjotr Prins @ 2014-05-08 12:32 UTC (permalink / raw)
  To: Pjotr Prins; +Cc: guix-devel

I am not having much luck installing GUIX because of the long list of
version specific dependencies. The best route, so far, is installing
Nix 1.7 first and then try to bootstrap using those tools. Now I have

   nix-env --version
   nix-env (Nix) 1.7
   [pprins@blauwspar guix]$ ls /nix/store/*guile*
   /nix/store/gkm53ax9j38r9pvl5jq3dsj2if79rdml-guile-2.0.9.tar.xz.drv
   /nix/store/j9ifci462jzph8pgiwbq61gq1x3plb6r-guile-2.0.9.drv

   /nix/store/1asl58lg6z3pg6icard31lnb24j0ndr0-guile-2.0.9:
   bin  include  lib  nix-support  share

./bootstrap gives

  autoreconf: Entering directory `.'
  autoreconf: running: autopoint --force
  autoreconf: running: aclocal --force -I m4
  autoreconf: configure.ac: tracing
  autoreconf: configure.ac: not using Libtool
  autoreconf: running: /nix/store/k2k666rwfr7s8daf03x3fymzni9fdp8q-autoconf-2.69/bin/autoconf --force
  autoreconf: running: /nix/store/k2k666rwfr7s8daf03x3fymzni9fdp8q-autoconf-2.69/bin/autoheader --force
  autoreconf: running: automake --add-missing --copy --force-missing
  configure.ac:18: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
  configure.ac:18: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
  configure.ac:18: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
  autoreconf: Leaving directory `.'

which is probably harmless and now ./configure does not find guile, even though

  which guile
    ~/.nix-profile/bin/guile

  ls /nix/store/*guile*
  /nix/store/gkm53ax9j38r9pvl5jq3dsj2if79rdml-guile-2.0.9.tar.xz.drv
  /nix/store/j9ifci462jzph8pgiwbq61gq1x3plb6r-guile-2.0.9.drv

  /nix/store/1asl58lg6z3pg6icard31lnb24j0ndr0-guile-2.0.9:
  bin  include  lib  nix-support  share

  checking for the Guix system type... x86_64-linux
  checking for the store directory... /gnu/store
  ./configure: line 6775: syntax error near unexpected token `GUILE,'
  ./configure: line 6775: `PKG_CHECK_MODULES(GUILE, guile-2.0 >= 2.0.5)'

Any switch that I can pass in to make this work?

I think it would be an idea to add a Nix package for guix for people like me. 

Pj.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Building Guix
@ 2014-05-09 10:57 Pjotr Prins
  2014-05-09 12:33 ` Ludovic Courtès
  2014-05-09 18:51 ` Pjotr Prins
  0 siblings, 2 replies; 16+ messages in thread
From: Pjotr Prins @ 2014-05-09 10:57 UTC (permalink / raw)
  To: guix-devel

compile.log was rather informative. I ended up with a working
configure, but now make fails with:

  g++ -Wall -std=c++0x -g -O2  -L/home/cog/pprins/.nix-profile/lib -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/7svaxfvzl8hb7ap3fjfyrqdw3bxi8pd3-sqlite-3.8.4.3/lib -lsqlite3   -L/nix/store/gic3zisxrq8vir427366l51l0dyzg5ls-libgcrypt-1.5.3/lib -lgcrypt 
  /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0: undefined reference to `__mktemp@GLIBC_PRIVATE'
  /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0: undefined reference to `__call_tls_dtors@GLIBC_PRIVATE'
  /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0: undefined reference to `__madvise@GLIBC_PRIVATE'
  /home/cog/pprins/.nix-profile/lib/libsqlite3.so: undefined reference to `memcpy@GLIBC_2.14'
  /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0: undefined reference to `__ctype_init@GLIBC_PRIVATE'
  collect2: ld returned 1 exit status

Ouch.

 ldd /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0

shows

  /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0)
        linux-vdso.so.1 =>  (0x00007fff5a293000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f8e6f0df000)
        /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00000035c5800000)

Hmmm. Something must have gone wrong compiling glibc-2.19. That is
odd, very odd. I know was messing with the LD paths, but I did not think
that would influence Nix builds. Do I need a fresh Nix install?

Interestingly I found a Guix expression in Nixpkgs! It is dated, guix-0.3, but works. Anything I need to know to update that to guix-0.6? I may do just that :)

  https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/package-management/guix/default.nix

Pj.

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

end of thread, other threads:[~2014-05-10 13:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-08 12:32 Building GUIX Pjotr Prins
2014-05-08 12:52 ` Andreas Enge
2014-05-08 13:02   ` Pjotr Prins
2014-05-08 13:30 ` Pjotr Prins
2014-05-08 13:42 ` Cyril Roelandt
2014-05-08 14:56   ` Pjotr Prins
2014-05-08 15:08     ` Pjotr Prins
2014-05-08 19:53       ` Pjotr Prins
2014-05-08 21:08         ` Ludovic Courtès
2014-05-08 16:42 ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2014-05-09 10:57 Building Guix Pjotr Prins
2014-05-09 12:33 ` Ludovic Courtès
2014-05-09 18:51 ` Pjotr Prins
2014-05-09 20:22   ` Ludovic Courtès
2014-05-10  6:46     ` Pjotr Prins
2014-05-10 13:06       ` Ludovic Courtès

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).