--- Begin Message ---
Subject: |
Guix-daemon has undefined reference to boost |
Date: |
Tue, 31 Oct 2017 16:40:46 +0100 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
Hello,
I am currently trying to compile the most recent guix on debian on a novena
arm board. First, I updated via git from release 0.12 to 0.13, then I used
this to do a "guix pull" yesterday:
$ guix --version
guix (GNU Guix) 20171030.19
Then I updated all the packages in my profile using this guix version.
When configuring and making guix from git checkout
56295c51609c07e287ae1c23adc2536bb3c8c3c0,
linking the guix daemon leads to the following error:
make[2]: Entering directory '/home/andreas/guix'
CXXLD guix-daemon
nix/nix-daemon/guix_daemon-nix-daemon.o: In function
`nix::FormatOrString::FormatOrString(boost::basic_format const&)':
/home/andreas/guix/./nix/libutil/types.hh:36: undefined reference to
`boost::basic_format::str[abi:cxx11]() const'
/home/andreas/guix/./nix/libutil/types.hh:36: undefined reference to
`boost::basic_format::str[abi:cxx11]() const'
nix/nix-daemon/guix_daemon-nix-daemon.o: In function `acceptConnection':
/home/andreas/guix/nix/nix-daemon/nix-daemon.cc:888: undefined reference to
`boost::basic_format::basic_format(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
nix/nix-daemon/guix_daemon-nix-daemon.o: In function
`nix::FormatOrString::FormatOrString(boost::basic_format const&)':
/home/andreas/guix/./nix/libutil/types.hh:36: undefined reference to
`boost::basic_format::str[abi:cxx11]() const'
/home/andreas/guix/./nix/libutil/types.hh:36: undefined reference to
`boost::basic_format::str[abi:cxx11]() const'
/home/andreas/guix/./nix/libutil/types.hh:36: undefined reference to
`boost::basic_format::str[abi:cxx11]() const'
/home/andreas/guix/./nix/libutil/types.hh:36: undefined reference to
`boost::basic_format::str[abi:cxx11]() const'
/home/andreas/guix/./nix/libutil/types.hh:36: undefined reference to
`boost::basic_format::str[abi:cxx11]() const'
nix/nix-daemon/guix_daemon-guix-daemon.o:/home/andreas/guix/./nix/libutil/types.hh:36:
more undefined references to `boost::basic_format::str[abi:cxx11]() const'
follow
collect2: error: ld returned 1 exit status
The same happens when I run "make" inside "guix environment guix"
(however, I did not reconfigure, since I would then have to wait
another hour or two to reach this point).
What is surprising is that "guix pull" succeeded, apparently with the
same code.
Andreas
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#29082: Guix-daemon has undefined reference to boost |
Date: |
Wed, 1 Nov 2017 16:36:42 +0100 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
On Tue, Oct 31, 2017 at 11:29:23PM +0100, Ludovic Courtès wrote:
> Andreas Enge <address@hidden> skribis:
> > CXXLD guix-daemon
> > nix/nix-daemon/guix_daemon-nix-daemon.o: In function
> > `nix::FormatOrString::FormatOrString(boost::basic_format const&)':
> > /home/andreas/guix/./nix/libutil/types.hh:36: undefined reference to
> > `boost::basic_format::str[abi:cxx11]() const'
> > /home/andreas/guix/./nix/libutil/types.hh:36: undefined reference to
> > `boost::basic_format::str[abi:cxx11]() const'
> I’m quite confident this is due to stale .o files or similar.
> Could you try removing all .o and .a files as well as ‘guix-register’
> and ‘guix-daemon’, and run ‘make’ again?
Indeed, you were right. Due to an error in my regular expression I removed
too many files and started from scratch with a fresh git clone, and things
went through.
Sorry for the noise, and thanks a lot for your advice!
Andreas
--- End Message ---