Created attachment 445472 [details] build.log How to reproduce: # emerge -1 =cmake-3.2.2 # emerge -1 =cmake-3.6.2 Crashes as: CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/usr/bin/x86_64-pc-linux-gnu-gcc" is not able to compile a simple test program. Building C object CMakeFiles/cmTryCompileExec4019912002.dir/testCCompiler.c.o /usr/bin/x86_64-pc-linux-gnu-gcc INCLUDES -DNDEBUG -march=native -O2 -pipe -o CMakeFiles/cmTryCompileExec4019912002.dir/testCCompiler.c.o -c /dev/shm/portage/dev-util/cmake-3.6.2/work/cmake-3.6.2_build/CMakeFiles/CMakeTmp/testCCompiler.c x86_64-pc-linux-gnu-gcc: error: INCLUDES: No such file or directory I believe it's caused by https://github.com/gentoo/gentoo/pull/2236 which does not set lower bound on supported cmake for bootstrap. Given the fragile nature of shortcut I suggest guarding it with USE=bootstrap and disable by default. You might also find useful to dump booter cmake version into build.log to ease future failures.
commit 0c6bc74949bf1c3ddb3b4d98dc6c6a15b78d9072 Author: Lars Wendler <polynomial-c@gentoo.org> Date: Sun Sep 11 15:42:32 2016 dev-util/cmake: Stick with bootsrapping when <cmake-3.4.0_rc1 is installed. This should fix Gentoo bug #593490 Package-Manager: portage-2.3.0 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> Can you please test if this now still fails?
Works now. Thank you!