MantisBT - CMake |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0015436 | CMake | CMake | public | 2015-03-07 06:24 | 2015-11-02 09:13 |
|
Reporter | Benjamin Schindler | |
Assigned To | Brad King | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | linux | OS | gentoo | OS Version | - |
Product Version | CMake 3.1 | |
Target Version | CMake 3.3 | Fixed in Version | CMake 3.3 | |
|
Summary | 0015436: ninja generator breaks in symlinked directory |
Description | I tried now cmake-3.0, 2.8.11 and 3.1 and all exhibit this issue:
I have a very simple project (helloworld would suffice) and use the ninja generator. The project fails to build with:
ninja: error: build.ninja:20: unknown build rule 'CXX_COMPILER'
Upon inspection, I noted that on the top, older generators produced this line in the ninja generator:
#############################################
# Include rules file.
include rules.ninja
This is not present in the tested versions thus leading to the described bug. |
Steps To Reproduce | Create hello world project, produce ninja file and build. Should lead to:
ninja: error: build.ninja:20: unknown build rule 'CXX_COMPILER'
|
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | v1-0001-Ninja-Improve-internal-check-for-generating-at-the-t.patch (1,665) 2015-03-09 09:29 https://public.kitware.com/Bug/file/5400/v1-0001-Ninja-Improve-internal-check-for-generating-at-the-t.patch |
|
Issue History |
Date Modified | Username | Field | Change |
2015-03-07 06:24 | Benjamin Schindler | New Issue | |
2015-03-07 06:39 | Brad King | Note Added: 0038172 | |
2015-03-07 06:55 | Benjamin Schindler | Note Added: 0038173 | |
2015-03-07 07:03 | Benjamin Schindler | Note Added: 0038174 | |
2015-03-09 09:29 | Brad King | File Added: v1-0001-Ninja-Improve-internal-check-for-generating-at-the-t.patch | |
2015-03-09 09:29 | Brad King | Target Version | => CMake 3.3 |
2015-03-09 09:29 | Brad King | Summary | ninja generator fails to produce include statement for rules => ninja generator breaks in symlinked directory |
2015-03-09 09:30 | Brad King | Note Added: 0038183 | |
2015-03-09 13:32 | Benjamin Schindler | Note Added: 0038188 | |
2015-03-09 13:38 | Brad King | Note Added: 0038189 | |
2015-03-09 13:38 | Brad King | Assigned To | => Brad King |
2015-03-09 13:38 | Brad King | Status | new => resolved |
2015-03-09 13:38 | Brad King | Resolution | open => fixed |
2015-03-09 13:38 | Brad King | Fixed in Version | => CMake 3.3 |
2015-03-09 13:39 | Benjamin Schindler | Note Added: 0038190 | |
2015-11-02 09:13 | Robert Maynard | Note Added: 0039725 | |
2015-11-02 09:13 | Robert Maynard | Status | resolved => closed |
Notes |
|
(0038172)
|
Brad King
|
2015-03-07 06:39
|
|
|
|
(0038173)
|
Benjamin Schindler
|
2015-03-07 06:55
|
|
As a matter of fact, yes, I do use symlinks. The reason is this:
I have an ssd but I don't have space for the entire home directory, so the software develpment directory symlinks into a mnt directory mounted on the ssd. |
|
|
(0038174)
|
Benjamin Schindler
|
2015-03-07 07:03
|
|
So after googling a bit, I was able to fix this by replacing the symlink by a bind-mount.
I don't know whether this is a cmake or ninja issue, but I think cmake should help a bit here. Either produce an error indicating the condition or properly support symlinks |
|
|
(0038183)
|
Brad King
|
2015-03-09 09:30
|
|
Please try building CMake with the "v1-0001-Ninja-Improve-internal-check-for-generating-at-the-t.patch" applied. |
|
|
(0038188)
|
Benjamin Schindler
|
2015-03-09 13:32
|
|
I just tried and the patch seems to fix the issue |
|
|
(0038189)
|
Brad King
|
2015-03-09 13:38
|
|
|
|
(0038190)
|
Benjamin Schindler
|
2015-03-09 13:39
|
|
Thank you for the very quick support! |
|
|
(0039725)
|
Robert Maynard
|
2015-11-02 09:13
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|