| View previous topic :: View next topic |
| Author |
Message |
hanj Veteran


Joined: 19 Aug 2003 Posts: 1496
|
Posted: Sun Feb 23, 2020 6:35 pm Post subject: Unable to compile dev-db/mysql-8.0.19-r1 [SOLVED] |
|
|
Hello
I'm running into this compilation error on one my internal servers for mysql...
| Code: | _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' |
USE Flags..
| Code: |
[ebuild U ] dev-db/mysql-8.0.19-r1:0/0::gentoo [5.7.27-r1:0/18::gentoo] USE="latin1 server -cjk -cracklib -debug -jemalloc -libressl -numa -perl -profiling -router% (-selinux) -tcmalloc -test (-client-libs%) (-experimental%) (-static%) (-static-libs%) (-systemtap%) (-yassl%)" 257958 KiB |
Not sure why it's unable to find sql/gis/geometries_traits.h
Any ideas?
hanji _________________ Server Admin Blog - Uno-Code.com
Last edited by hanj on Mon Feb 24, 2020 2:36 am; edited 1 time in total |
|
| Back to top |
|
 |
mno Guru


Joined: 29 Dec 2003 Posts: 454 Location: Toronto, Canada
|
|
| Back to top |
|
 |
hanj Veteran


Joined: 19 Aug 2003 Posts: 1496
|
Posted: Sun Feb 23, 2020 8:54 pm Post subject: |
|
|
Here are my outputs for emerge on boost and mysql
| Code: | emerge -pv boost
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-util/boost-build-1.72.0::gentoo USE="-examples" 104402 KiB
[ebuild N ] dev-libs/boost-1.72.0-r1:0/1.72.0::gentoo USE="bzip2 nls threads zlib -context -debug -doc -icu -lzma -mpi -numpy -python -static-libs -tools -zstd" PYTHON_TARGETS="python2_7 python3_6 (-python3_7)" 0 KiB
emerge -av dev-db/mysql
* IMPORTANT: 50 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild U ] dev-db/mysql-8.0.19-r1:0/0::gentoo [5.7.27-r1:0/18::gentoo] USE="latin1 server -cjk -cracklib -debug -jemalloc -libressl -numa -perl -profiling -router% (-selinux) -tcmalloc -test (-client-libs%) (-experimental%) (-static%) (-static-libs%) (-systemtap%) (-yassl%)" 257958 KiB |
Thanks!
hanji _________________ Server Admin Blog - Uno-Code.com |
|
| Back to top |
|
 |
mno Guru


Joined: 29 Dec 2003 Posts: 454 Location: Toronto, Canada
|
Posted: Sun Feb 23, 2020 8:57 pm Post subject: |
|
|
Aha, so boost isn't pulled in. From MySQL 8.0 docs:
https://dev.mysql.com/doc/refman/8.0/en/source-installation-prerequisites.html
| Code: | | 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. |
Seems like it's a miss on the package ebuild class.
Seems like you'll need to do a emerge -1av boost
followed by the mysql update. _________________ "Hello and goodbye. As always." | You can't use here?? | Unanswered |
|
| Back to top |
|
 |
mno Guru


Joined: 29 Dec 2003 Posts: 454 Location: Toronto, Canada
|
Posted: Sun Feb 23, 2020 8:58 pm Post subject: |
|
|
If the above works, please file a bug. _________________ "Hello and goodbye. As always." | You can't use here?? | Unanswered |
|
| Back to top |
|
 |
hanj Veteran


Joined: 19 Aug 2003 Posts: 1496
|
Posted: Sun Feb 23, 2020 9:04 pm Post subject: |
|
|
Will do. Emerging boost now. I thought it was odd.. emerged mysql on multiple servers without a hitch.
Thanks!
hanji _________________ Server Admin Blog - Uno-Code.com |
|
| Back to top |
|
 |
hanj Veteran


Joined: 19 Aug 2003 Posts: 1496
|
|
| Back to top |
|
 |
mno Guru


Joined: 29 Dec 2003 Posts: 454 Location: Toronto, Canada
|
Posted: Mon Feb 24, 2020 2:39 am Post subject: |
|
|
Glad to have helped! On your other servers, boost must have been pulled in by some other dependency (I have it on my server also). I added a clarification on your bug post.
For cross-reference, the bug is here: https://bugs.gentoo.org/710630 _________________ "Hello and goodbye. As always." | You can't use here?? | Unanswered |
|
| Back to top |
|
 |
|