Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593490 - =dev-util/cmake-3.6.2 fails to build when cmake-3.2.2 is installed: INCLUDES: No such file or directory
Summary: =dev-util/cmake-3.6.2 fails to build when cmake-3.2.2 is installed: INCLUDES:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-11 12:51 UTC by Sergei Trofimovich (RETIRED)
Modified: 2017-01-01 13:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,6.00 KB, text/x-log)
2016-09-11 12:51 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2016-09-11 12:51:21 UTC
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.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-09-11 13:43:35 UTC
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?
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2016-09-11 14:31:43 UTC
Works now. Thank you!