ushastry@TrustyTahr:~/Downloads/mysql-8.0.14$ cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS" NAME="Ubuntu" VERSION="14.04.5 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.5 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" ushastry@TrustyTahr:~/Downloads/mysql-8.0.14$ cmake --version cmake version 2.8.12.2 ushastry@TrustyTahr:~/Downloads/mysql-8.0.14$ gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. rm CMakeCache.txt cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF -DCMAKE_INSTALL_PREFIX=/home/ushastry/Downloads/8.0 -DWITH_BOOST=./boost -DDOWNLOAD_BOOST=1 -DFORCE_INSOURCE_BUILD=1 make . . [ 60%] Building CXX object sql/CMakeFiles/sql_main.dir/json_dom.cc.o json_dom.cc: In function ‘Json_dom_ptr merge_doms(Json_dom_ptr, Json_dom_ptr)’: json_dom.cc:112:12: error: cannot bind ‘Json_object_ptr {aka std::unique_ptr}’ lvalue to ‘std::unique_ptr&&’ return left_object; ^ In file included from /usr/include/c++/4.8/memory:81:0, from ../sql/json_dom.h:29, from json_dom.cc:23: /usr/include/c++/4.8/bits/unique_ptr.h:169:2: error: initializing argument 1 of ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Up = Json_object; _Ep = std::default_delete; = void; _Tp = Json_dom; _Dp = std::default_delete]’ unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept ^ json_dom.cc:125:10: error: cannot bind ‘Json_array_ptr {aka std::unique_ptr}’ lvalue to ‘std::unique_ptr&&’ return left_array; ^ In file included from /usr/include/c++/4.8/memory:81:0, from ../sql/json_dom.h:29, from json_dom.cc:23: /usr/include/c++/4.8/bits/unique_ptr.h:169:2: error: initializing argument 1 of ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Up = Json_array; _Ep = std::default_delete; = void; _Tp = Json_dom; _Dp = std::default_delete]’ unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept ^ json_dom.cc: In member function ‘virtual Json_dom_ptr Json_object::clone() const’: json_dom.cc:1010:10: error: cannot bind ‘Json_object_ptr {aka std::unique_ptr}’ lvalue to ‘std::unique_ptr&&’ return o; ^ In file included from /usr/include/c++/4.8/memory:81:0, from ../sql/json_dom.h:29, from json_dom.cc:23: /usr/include/c++/4.8/bits/unique_ptr.h:169:2: error: initializing argument 1 of ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Up = Json_object; _Ep = std::default_delete; = void; _Tp = Json_dom; _Dp = std::default_delete]’ unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept ^ json_dom.cc: In member function ‘virtual Json_dom_ptr Json_array::clone() const’: json_dom.cc:1150:10: error: cannot bind ‘Json_array_ptr {aka std::unique_ptr}’ lvalue to ‘std::unique_ptr&&’ return vv; ^ In file included from /usr/include/c++/4.8/memory:81:0, from ../sql/json_dom.h:29, from json_dom.cc:23: /usr/include/c++/4.8/bits/unique_ptr.h:169:2: error: initializing argument 1 of ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&) [with _Up = Json_array; _Ep = std::default_delete; = void; _Tp = Json_dom; _Dp = std::default_delete]’ unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept ^ json_dom.cc: In function ‘Json_dom_ptr merge_doms(Json_dom_ptr, Json_dom_ptr)’: json_dom.cc:127:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ json_dom.cc: In member function ‘virtual Json_dom_ptr Json_object::clone() const’: json_dom.cc:1012:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ json_dom.cc: In member function ‘virtual Json_dom_ptr Json_array::clone() const’: json_dom.cc:1152:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[2]: *** [sql/CMakeFiles/sql_main.dir/json_dom.cc.o] Error 1 make[1]: *** [sql/CMakeFiles/sql_main.dir/all] Error 2 make: *** [all] Error 2