There is a missing header file mysql/service_sha2.h /usr/bin/x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -I/var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/wsrep-lib/include -I/var/tmp/portage/dev-db/mariadb-10.4.6/work/mys ql/wsrep-lib/wsrep-API/v26 -Iinclude -I/var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/plugin/auth_ed25519 -march=broadwell -mtune=broadwell -mmmx -msse -msse2 -msse3 -mssse3 -mavx -mavx2 -msse4.2 -msse4.1 -O2 -pipe -fno-strict-aliasing -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF -fPIC -MD -MT plugin/auth_ed25519/CMakeFiles/ref10.dir/ref10/keypair.c.o -MF plugin/auth_ed25519/CMakeFiles/ref10.dir/ref10/keypair.c.o.d -o plugin/auth_ed25519/CMakeFiles/ref10.dir/ref10/keypair.c.o -c /var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/plugin/auth_ed25519/ref10/keypair.c In file included from /var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/plugin/auth_ed25519/ref10/keypair.c:3: /var/tmp/portage/dev-db/mariadb-10.4.6/work/mysql/plugin/auth_ed25519/crypto_hash_sha512.h:1:10: fatal error: mysql/service_sha2.h: No such file or directory #include <mysql/service_sha2.h>
Created attachment 580450 [details] build.log
Created attachment 580452 [details] emerge --info
My USE flags: [ebuild U ~] dev-db/mariadb-10.4.6:0/18::gentoo [10.3.15:0/18::gentoo] USE="backup kerberos odbc pam perl xml -bindist (-client-libs) -cracklib -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -latin1 -libressl -mroonga -numa -oqgraph -profiling -rocksdb (-selinux) -server -sphinx -sst-mariabackup -sst-rsync -static -systemd -systemtap -tcmalloc -test -tokudb -yassl"
(In reply to Carlos Konstanski from comment #3) > My USE flags: > > [ebuild U ~] dev-db/mariadb-10.4.6:0/18::gentoo [10.3.15:0/18::gentoo] > USE="backup kerberos odbc pam perl xml -bindist (-client-libs) -cracklib > -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc > -jemalloc -latin1 -libressl -mroonga -numa -oqgraph -profiling -rocksdb > (-selinux) -server -sphinx -sst-mariabackup -sst-rsync -static -systemd > -systemtap -tcmalloc -test -tokudb -yassl" I have the same issue. As for me - this issue depends on "-server" use flag.
Created attachment 582490 [details, diff] Fix "mysql/service_sha2.h: No such file or directory" I attach a simple fix that adds ${CMAKE_CURRENT_SOURCE_DIR}/include in addition to ${CMAKE_CURRENT_BINARY_DIR}/include to INCLUDE_DIRECTORIES in CMakeLists.txt. This makes the build find mysql/service_sha2.h also with -server.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c1b434333e109b516b56e76ecec1a58f8990385 commit 6c1b434333e109b516b56e76ecec1a58f8990385 Author: Brian Evans <grknight@gentoo.org> AuthorDate: 2019-08-01 00:28:45 +0000 Commit: Brian Evans <grknight@gentoo.org> CommitDate: 2019-08-01 00:28:45 +0000 dev-db/mariadb: Version bump: 10.4.7 10.3.17 10.2.26 10.1.41 and 5.5.65 Closes: https://bugs.gentoo.org/688482 Closes: https://bugs.gentoo.org/689412 Closes: https://bugs.gentoo.org/691090 Signed-off-by: Brian Evans <grknight@gentoo.org> dev-db/mariadb/Manifest | 6 + dev-db/mariadb/mariadb-10.1.41.ebuild | 889 ++++++++++++++++++++++++++++++ dev-db/mariadb/mariadb-10.2.26.ebuild | 974 +++++++++++++++++++++++++++++++++ dev-db/mariadb/mariadb-10.3.17.ebuild | 975 +++++++++++++++++++++++++++++++++ dev-db/mariadb/mariadb-10.4.7.ebuild | 992 ++++++++++++++++++++++++++++++++++ dev-db/mariadb/mariadb-5.5.65.ebuild | 831 ++++++++++++++++++++++++++++ 6 files changed, 4667 insertions(+)