While I'm not 100% sure this is related to the lack of the server USE flag (a client only install) this has compiled fine elsewhere here so I strongly suspect that's related. Here's the configure step error I get from emerge: -- CMAKE_C_FLAGS_RELWITHDEBINFO: -DNDEBUG -DDBUG_OFF -- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -DNDEBUG -DDBUG_OFF -- <<< Gentoo configuration >>> Build type RelWithDebInfo Install path /usr Compiler flags: C -march=pentium4 -O2 -pipe -fomit-frame-pointer -fno-stack-protector -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wimplicit-fallthrough=2 -Wwrite-strings -Wdeclaration-after-statement C++ -march=pentium4 -O2 -pipe -fomit-frame-pointer -fno-stack-protector -felide-constructors -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wimplicit-fallthrough=2 -Woverloaded-virtual -Wno-unused-parameter Linker flags: Executable -Wl,-O1 -Wl,--as-needed Module -Wl,-O1 -Wl,--as-needed Shared -Wl,-O1 -Wl,--as-needed -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/CMakeFiles/CMakeOutput.log". See also "/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/CMakeFiles/CMakeError.log". * ERROR: dev-db/mysql-5.7.23-r2::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 124: Called src_configure * environment, line 4822: Called multilib_src_configure * environment, line 4086: Called cmake-utils_src_configure * environment, line 1264: Called die * The specific snippet of code: * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed"; * * If you need support, post the output of `emerge --info '=dev-db/mysql-5.7.23-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.7.23-r2::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.7.23-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.7.23-r2/temp/environment'. * Working directory: '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build' * S: '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql' >>> Failed to emerge dev-db/mysql-5.7.23-r2, Log file: >>> '/var/tmp/portage/dev-db/mysql-5.7.23-r2/temp/build.log' Here's what appears to be the pertinent part of the CMakeError.log mentioned there: Determining if the function strvis exists failed with the following output: Change Dir: /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_174cd/fast" /usr/bin/gmake -f CMakeFiles/cmTC_174cd.dir/build.make CMakeFiles/cmTC_174cd.dir/build gmake[1]: Entering directory '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_174cd.dir/CheckFunctionExists.c.o /usr/bin/i686-pc-linux-gnu-gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -march=pentium4 -O2 -pipe -fomit-frame-pointer -fno-stack-protector -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wimplicit-fallthrough=2 -Wwrite-strings -Wdeclaration-after-statement -DCHECK_FUNCTION_EXISTS=strvis -o CMakeFiles/cmTC_174cd.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_174cd /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_174cd.dir/link.txt --verbose=1 /usr/bin/i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -fomit-frame-pointer -fno-stack-protector -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wimplicit-fallthrough=2 -Wwrite-strings -Wdeclaration-after-statement -DCHECK_FUNCTION_EXISTS=strvis -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/cmTC_174cd.dir/CheckFunctionExists.c.o -o cmTC_174cd CMakeFiles/cmTC_174cd.dir/CheckFunctionExists.c.o: In function `main': CheckFunctionExists.c:(.text.startup+0x7): undefined reference to `strvis' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_174cd.dir/build.make:98: cmTC_174cd] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:126: cmTC_174cd/fast] Error 2 Determining if the function strunvis exists failed with the following output: Change Dir: /var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_467f4/fast" /usr/bin/gmake -f CMakeFiles/cmTC_467f4.dir/build.make CMakeFiles/cmTC_467f4.dir/build gmake[1]: Entering directory '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_467f4.dir/CheckFunctionExists.c.o /usr/bin/i686-pc-linux-gnu-gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -march=pentium4 -O2 -pipe -fomit-frame-pointer -fno-stack-protector -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wimplicit-fallthrough=2 -Wwrite-strings -Wdeclaration-after-statement -DCHECK_FUNCTION_EXISTS=strunvis -o CMakeFiles/cmTC_467f4.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_467f4 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_467f4.dir/link.txt --verbose=1 /usr/bin/i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -fomit-frame-pointer -fno-stack-protector -fno-strict-aliasing -Wall -Wextra -Wformat-security -Wvla -Wimplicit-fallthrough=2 -Wwrite-strings -Wdeclaration-after-statement -DCHECK_FUNCTION_EXISTS=strunvis -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/cmTC_467f4.dir/CheckFunctionExists.c.o -o cmTC_467f4 CMakeFiles/cmTC_467f4.dir/CheckFunctionExists.c.o: In function `main': CheckFunctionExists.c:(.text.startup+0x7): undefined reference to `strunvis' collect2: error: ld returned 1 exit status gmake[1]: *** [CMakeFiles/cmTC_467f4.dir/build.make:98: cmTC_467f4] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/dev-db/mysql-5.7.23-r2/work/mysql-5.7.23_build/CMakeFiles/CMakeTmp' gmake: *** [Makefile:126: cmTC_467f4/fast] Error 2 Thanks!
Created attachment 553612 [details] Full build.log
Created attachment 553614 [details] Full CMakeError.log
*** This bug has been marked as a duplicate of bug 669236 ***
Apologies for the duplicate. No clue how I missed that.