MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015354 | CMake | CMake | public | 2015-01-14 18:09 | 2015-06-01 08:38 |
Reporter | Tom Hughes | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Mac | OS | OSX | OS Version | 10.10.1 |
Product Version | CMake 3.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0015354: regression: ccache no longer works with cmake 3.1.0 | ||||
Description | Between cmake 3.0.2 and 3.1.0, ccache (v3.2.1) stopped working (I'm using the ninja generator). I had been using ccache by setting CMAKE_C_COMPILER to ccache and CMAKE_C_COMPILER_ARG1 to clang. In the original project where I hit this, the error occurs during the first run of cmake when it decides that it needs to re-run configure: -- Configuring done You have changed variables that require your cache to be deleted. Configure will be re-run and you may have to reset some variables. The following variables have changed: CMAKE_C_COMPILER= /usr/local/bin/ccache CMAKE_CXX_COMPILER= /usr/local/bin/ccache CMAKE_C_COMPILER= /usr/local/bin/ccache CMAKE_CXX_COMPILER= /usr/local/bin/ccache -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler using: Ninja -- Check for working C compiler using: Ninja -- broken However, in the simple test case that I created, it doesn't occur until you touch the CMakeLists.txt and re-run ninja (see attachments). | ||||
Steps To Reproduce | I have a simple test case that reproduces the problem and a script that you can use with "git bisect run" (attached as find-cmake-bug.sh). That points to the following commit: commit 6120fca8e229da08fae1d58017962491fb6e03f3 Author: Sylvain Joubert <joubert.sy@gmail.com> Date: Sat Sep 20 22:37:52 2014 +0200 Ninja: Prevent compilers to be silently modified Unlike with Unix Makefiles generator modifying compiler paths was not protected with Ninja generator. It was possible to modify them in the cache without the expected effect on the generated solution. Also activate corresponding tests with Ninja. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/5347/cmake-ccache-bug.tar.gz | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-01-14 18:09 | Tom Hughes | New Issue | |||
2015-01-14 18:09 | Tom Hughes | File Added: cmake-ccache-bug.tar.gz | |||
2015-01-15 08:25 | Brad King | Summary | regression: ccache no longer works with cmake 3.1.2 => regression: ccache no longer works with cmake 3.1.0 | ||
2015-01-15 08:25 | Brad King | Description Updated | bug_revision_view_page.php?rev_id=1672#r1672 | ||
2015-01-15 08:32 | Brad King | Note Added: 0037696 | |||
2015-01-15 08:32 | Brad King | Status | new => resolved | ||
2015-01-15 08:32 | Brad King | Resolution | open => no change required | ||
2015-01-15 13:49 | Tom Hughes | Note Added: 0037702 | |||
2015-01-15 13:58 | Brad King | Note Added: 0037703 | |||
2015-06-01 08:38 | Robert Maynard | Note Added: 0038853 | |||
2015-06-01 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|