unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29082: Guix-daemon has undefined reference to boost
@ 2017-10-31 15:40 Andreas Enge
  2017-10-31 22:29 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Enge @ 2017-10-31 15:40 UTC (permalink / raw)
  To: 29082

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

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

* bug#29082: Guix-daemon has undefined reference to boost
  2017-10-31 15:40 bug#29082: Guix-daemon has undefined reference to boost Andreas Enge
@ 2017-10-31 22:29 ` Ludovic Courtès
  2017-11-01 15:36   ` Andreas Enge
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2017-10-31 22:29 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 29082

Hi!

Andreas Enge <andreas@enge.fr> skribis:

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

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?

TIA,
Ludo’.

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

* bug#29082: Guix-daemon has undefined reference to boost
  2017-10-31 22:29 ` Ludovic Courtès
@ 2017-11-01 15:36   ` Andreas Enge
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Enge @ 2017-11-01 15:36 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 29082-done

On Tue, Oct 31, 2017 at 11:29:23PM +0100, Ludovic Courtès wrote:
> Andreas Enge <andreas@enge.fr> 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

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

end of thread, other threads:[~2017-11-01 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-31 15:40 bug#29082: Guix-daemon has undefined reference to boost Andreas Enge
2017-10-31 22:29 ` Ludovic Courtès
2017-11-01 15:36   ` Andreas Enge

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