compiling: error: use of deleted function

Bug #1776008 reported by kaputtnik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Undecided
Unassigned

Bug Description

When trying to compile widelands with compile.sh i get this error:

[ 24%] Building CXX object src/random/CMakeFiles/random.dir/random.cc.o
/home/kaputtnik/widelands-repo/trunk/src/random/random.cc: In function 'std::__cxx11::string generate_random_uuid()':
/home/kaputtnik/widelands-repo/trunk/src/random/random.cc:108:77: error: use of deleted function 'boost::uuids::random_generator_pure::random_generator_pure(boost::uuids::random_generator_pure&&)'
  static boost::uuids::random_generator gen = boost::uuids::random_generator();
                                                                             ^
In file included from /usr/include/boost/uuid/uuid_generators.hpp:17,
                 from /home/kaputtnik/widelands-repo/trunk/src/random/random.cc:26:
/usr/include/boost/uuid/random_generator.hpp:149:7: note: 'boost::uuids::random_generator_pure::random_generator_pure(boost::uuids::random_generator_pure&&)' is implicitly deleted because the default definition would be ill-formed:
 class random_generator_pure
       ^~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/uuid/random_generator.hpp:149:7: error: use of deleted function 'boost::uuids::detail::random_provider::random_provider(boost::uuids::detail::random_provider&&)'
In file included from /usr/include/boost/uuid/random_generator.hpp:20,
                 from /usr/include/boost/uuid/uuid_generators.hpp:17,
                 from /home/kaputtnik/widelands-repo/trunk/src/random/random.cc:26:
/usr/include/boost/uuid/detail/random_provider.hpp:41:7: note: 'boost::uuids::detail::random_provider::random_provider(boost::uuids::detail::random_provider&&)' is implicitly deleted because the default definition would be ill-formed:
 class random_provider
       ^~~~~~~~~~~~~~~
/usr/include/boost/uuid/detail/random_provider.hpp:41:7: error: use of deleted function 'boost::noncopyable_::noncopyable::noncopyable(const boost::noncopyable_::noncopyable&)'
In file included from /usr/include/boost/uuid/detail/random_provider.hpp:14,
                 from /usr/include/boost/uuid/random_generator.hpp:20,
                 from /usr/include/boost/uuid/uuid_generators.hpp:17,
                 from /home/kaputtnik/widelands-repo/trunk/src/random/random.cc:26:
/usr/include/boost/core/noncopyable.hpp:34:7: note: declared here
       noncopyable( const noncopyable& ) = delete;
       ^~~~~~~~~~~
make[2]: *** [src/random/CMakeFiles/random.dir/build.make:63: src/random/CMakeFiles/random.dir/random.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:28915: src/random/CMakeFiles/random.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Widelands revision: 8730
Boost version: 1.67.0
Gcc version: 8.1.1

Related branches

Revision history for this message
kaputtnik (franku) wrote :

This applies for release and debug builds.

Revision history for this message
Notabilis (notabilis27) wrote :

I can't confirm the bug on my system but based on the documentation I understand where it is coming from. It seems as if the boost::uuid library changed its interface lately.
I will try to prepare a fix but I will need (your) help for testing.

Changed in widelands:
assignee: nobody → Notabilis (notabilis27)
Revision history for this message
kaputtnik (franku) wrote :

Thanks for picking this up. Of course i help for testing :-)

Revision history for this message
kaputtnik (franku) wrote :

Many thanks for solving this issue :-)

Changed in widelands:
status: New → Fix Committed
Changed in widelands:
milestone: none → build20-rc1
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build20-rc1

Changed in widelands:
assignee: Notabilis (notabilis27) → nobody
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.