Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 710630

Summary: dev-db/mysql-8.0.19-r1 will not compile without boost.
Product: Gentoo Linux Reporter: lou <whitehatcheck>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED NEEDINFO    
Severity: normal CC: jstein, mno2go
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description lou 2020-02-24 02:35:21 UTC
Having issues compiling mysql-8.0.19-r1.

_build -I/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql-8.0.19_build/include -I/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql -I/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql/include -isystem /var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql/extra/rapidjson/include -isystem /var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql/extra/libedit/editline -isystem /var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql/extra/zstd/lib -isystem /var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql/include/boost_1_70_0/patches -isystem /var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql/boost/boost_1_70_0   -march=prescott -O2 -pipe -felide-constructors -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wundef -Woverloaded-virtual -Wcast-qual -Wimplicit-fallthrough=2 -Wstringop-truncation -Wlogical-op -DDBUG_OFF -DNDEBUG -fPIC   -o CMakeFiles/sql_gis.dir/gis/wkb.cc.o -c /var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql/sql/gis/wkb.cc
In file included from /var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql/sql/gis/wkb.cc:36:
/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql/sql/gis/ring_flip_visitor.h:31:10: fatal error: sql/gis/geometries_traits.h: No such file or directory
compilation terminated.
make[2]: *** [sql/CMakeFiles/sql_gis.dir/build.make:427: sql/CMakeFiles/sql_gis.dir/gis/wkb.cc.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql-8.0.19_build'
make[1]: *** [CMakeFiles/Makefile2:8996: sql/CMakeFiles/sql_gis.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql-8.0.19_build'
make: *** [Makefile:152: all] Error 2
 * ERROR: dev-db/mysql-8.0.19-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-db/mysql-8.0.19-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-8.0.19-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-8.0.19-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-8.0.19-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql-8.0.19_build'
 * S: '/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql'

>>> Failed to emerge dev-db/mysql-8.0.19-r1, Log file:

>>>  '/var/tmp/portage/dev-db/mysql-8.0.19-r1/temp/build.log'

 * Messages for package dev-db/mysql-8.0.19-r1:

 * ERROR: dev-db/mysql-8.0.19-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-db/mysql-8.0.19-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-8.0.19-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-8.0.19-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-8.0.19-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql-8.0.19_build'
 * S: '/var/tmp/portage/dev-db/mysql-8.0.19-r1/work/mysql'


My system did not have boost emerged, and looks like it is required:

https://dev.mysql.com/doc/dev/mysql-server/latest/geometries__traits_8h.html

Emerging boost will allow mysql to compile. Might want to include this in the ebuild class.

Thanks!
Comment 1 Max Nokhrin 2020-02-24 02:37:49 UTC
This bug has been discussed on this thread: https://forums.gentoo.org/viewtopic.php?p=8423710#8423710

From MySQL documentation (here: https://dev.mysql.com/doc/refman/8.0/en/source-installation-prerequisites.html )

The Boost C++ libraries are required to build MySQL (but not to use it). MySQL compilation requires a particular Boost version. Typically, that is the current Boost version, but if a specific MySQL source distribution requires a different version, the configuration process will stop with a message indicating the Boost version that it requires. To obtain Boost and its installation instructions, visit the official site. After Boost is installed, tell the build system where the Boost files are located by defining the WITH_BOOST option when you invoke CMake.
Comment 2 Brian Evans (RETIRED) gentoo-dev 2020-02-24 13:35:36 UTC
Please attach the entire build.log as Gentoo uses the MySQL sources with boost included and should not need it externally.