unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: guix-devel@gnu.org
Subject: Re: Building Guix
Date: Fri, 09 May 2014 14:33:43 +0200	[thread overview]
Message-ID: <8738gjxhaw.fsf@gnu.org> (raw)
In-Reply-To: <20140509105718.GA18552@thebird.nl> (Pjotr Prins's message of "Fri, 9 May 2014 12:57:18 +0200")

Pjotr Prins <pjotr.public12@thebird.nl> skribis:

> 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

This looks like a defect in the build environment.

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

This is mixing two different libcs: the one from Nixpkgs, and the one
under /lib64.  This cannot work.  Perhaps $LD_LIBRARY_PATH or ld.so.conf
refers to /lib64?  (That’s probably a question for the Nix people.)

Alternately, you could try building with g++ from the other distro,
rather than from Nixpkgs.

> 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

Feel free to update it!

Thanks,
Ludo’.

  reply	other threads:[~2014-05-09 12:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-09 10:57 Building Guix Pjotr Prins
2014-05-09 12:33 ` Ludovic Courtès [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738gjxhaw.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=pjotr.public12@thebird.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).