MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013910 | CMake | CMake | public | 2013-02-13 08:19 | 2013-02-16 04:07 |
| Reporter | Evgeniy Stepanov | ||||
| Assigned To | Peter Kuemmel | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | not fixable | ||
| Platform | x86_64 | OS | Linux | OS Version | Ubuntu 12.04 |
| Product Version | CMake 2.8.10.2 | ||||
| Target Version | Fixed in Version | CMake 2.8.10.2 | |||
| Summary | 0013910: Ninja generator initialization fails if /usr/bin/ninja is not world-readable | ||||
| Description | CMake tests availability or Ninja by access(, R_OK). This does not make any sense - it's not going to read /usr/bin/ninja, it's going to execute it! "--x" ninja binary results in a cryptic failure message, as shown below. | ||||
| Steps To Reproduce | $ ls -la /usr/bin/ninja -rwxr-x--x 1 root root 2746829 Feb 13 16:36 /usr/bin/ninja $ cmake -GNinja .. CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. strace shows: access("ninja", R_OK) = -1 ENOENT (No such file or directory) access("/usr/local/bin/ninja", R_OK) = -1 ENOENT (No such file or directory) access("/usr/sbin/ninja", R_OK) = -1 ENOENT (No such file or directory) access("/usr/bin/ninja", R_OK) = -1 EACCES (Permission denied) access("/sbin/ninja", R_OK) = -1 ENOENT (No such file or directory) access("/bin/ninja", R_OK) = -1 ENOENT (No such file or directory) | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2013-02-13 08:19 | Evgeniy Stepanov | New Issue | |||
| 2013-02-13 09:02 | Brad King | Assigned To | => Peter Kuemmel | ||
| 2013-02-13 09:02 | Brad King | Status | new => assigned | ||
| 2013-02-16 04:06 | Peter Kuemmel | Note Added: 0032307 | |||
| 2013-02-16 04:07 | Peter Kuemmel | Status | assigned => closed | ||
| 2013-02-16 04:07 | Peter Kuemmel | Resolution | open => not fixable | ||
| 2013-02-16 04:07 | Peter Kuemmel | Fixed in Version | => CMake 2.8.10.2 | ||
| Notes | |||||
|
|
|||||
|
|
||||