Support for Ninja broken in CMake 2.8.9

Bug #1108718 reported by Stefan Beller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

So running "cmake ." just works, i.e. the compiler is found correctly.
However when switching to Ninja instead of make, the compiler cannot be found.
See attached script output.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: cmake 2.8.9-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-22.34-generic 3.5.7.2
Uname: Linux 3.5.0-22-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Tue Jan 29 10:35:03 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-07-27 (185 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
SourcePackage: cmake
UpgradeStatus: Upgraded to quantal on 2012-10-20 (100 days ago)

Revision history for this message
Stefan Beller (stefanbeller) wrote :
Revision history for this message
Stefan Beller (stefanbeller) wrote :

I figured out the problem.
There are 2 packages providing a ninja binary.

ninja - Privilege escalation detection system for GNU/Linux
ninja-build - small build system closest in spirit to Make

The priviledge escape detection system binary is located in /usr/sbin/ninja
while the build ninja is found in /usr/bin/ninja which has less priority in the PATH variable.

Uninstalling the Privilege escalation detection system helps.
After the uninstallation, and using a clean repository cmake works fine with ninja (the builder).

So there is a conflict when having installed both packages at the same time.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Hi, so based on your comment I'm closing this one.

Changed in cmake (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.