guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building Guix


From: Ludovic Courtès
Subject: Re: Building Guix
Date: Fri, 09 May 2014 14:33:43 +0200
User-agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)

Pjotr Prins <address@hidden> 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 address@hidden'
>   /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0: 
> undefined reference to address@hidden'
>   /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0: 
> undefined reference to address@hidden'
>   /home/cog/pprins/.nix-profile/lib/libsqlite3.so: undefined reference to 
> address@hidden'
>   /nix/store/pdskwizjw8ar31hql2wjnnx6g0s6xc50-glibc-2.19/lib/libpthread.so.0: 
> undefined reference to address@hidden'
>   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 via email to

[Prev in Thread] Current Thread [Next in Thread]