View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013926CMakeCMakepublic2013-02-15 15:232013-07-01 09:38
ReporterGreg Sharp 
Assigned ToBrad King 
PlatformOSX 10.7OSOS Version
Product Version 
Target VersionCMake 2.8.11Fixed in VersionCMake 2.8.11 
Summary0013926: CMake hangs on OSX
DescriptionOSX 10.7
xcode 4.6 (4H127)
cmake- (built from source)

The cmake nightly successfully solves problem with finding QtWebKit framework on mac with newer xcode versions.

However, instead, cmake goes into an infinite loop when compiling using "make".
CMake CPU usage is 100%.

Here is where cmake goes into the infinite loop

-- Configuring SEM CLI module: DWIConvert
-- Configuring SEM CLI module: BRAINSCreateLabelMapFromProbabilityMaps
-- Enabling Slicer launcher option: --xterm
-- Enabling Slicer launcher option: --gdb
-- Configuring done
Additional InformationCross list with related issues [^] (Bug filed for this issue @ Slicer) [^] (OSX framework linking error)
TagsNo tags attached.
Attached Files? file icon dtruss.out [^] (169,241 bytes) 2013-02-15 21:34

related to 0013756closedBrad King Infinite loop when reconfiguring with different CMAKE_C_COMPILER 

Jean-Christophe Fillion-Robin (reporter)
2013-02-15 15:31

Hi Greg,

Could you provide more details leading to the infinite loop ? From the description, it seems the loop happen at configuration time but your talk about build time loop : "cmake goes into an infinite loop when compiling using "make""
Bill Hoffman (manager)
2013-02-15 16:21

You could also run cmake --trace, it might give a clue as to where it is stuck. Also, you can run dtruss on the cmake process and see what it is doing. We need more information to help.
Christopher Mullins (reporter)
2013-02-15 19:19

Here is another related issue. [^]
Greg Sharp (reporter)
2013-02-15 21:34

Hi, in the Slicer build, make launches cmake to configure slicer main executable. It is this child process which is infinite loop. I didn't have time yet to figure out how to pass the --trace flag into the child process. Maybe if I reconfigure the original cmake (which creates the Makefile) with this flag?

But I could do the dtrace thing. The output is attached. CMake sub-process has been running for 40 mins, so I guess it is in steady state.

I hope to make more complete description of how to reproduce soon.
Jean-Christophe Fillion-Robin (reporter)
2013-02-17 11:43
edited on: 2013-02-17 11:44

@Greg: I did some experiment and CMake version "" is known to work. See [^]

On the other hand, I was able to reproduce the hang using version "cmake-".

I suspect it be caused by commit [1] recently introduced and discussed in 0013756 [2] and 0013901 [3]

[1];a=commitdiff;h=ccfeefae [^]
[2] [^]
[3] [^]

Brad King (manager)
2013-02-18 08:28

Re 0013926:0032319: Is Slicer trying to change the compiler of an existing build tree? All the issues/changes in your summary affect that.
Brad King (manager)
2013-02-18 08:53

Re 0013926:0032323, 0013926:0032319: The loop is also caused by "-DCMAKE_C_COMPILER=cc" in an already-configured tree where CMake has expanded "cc" to a full path already.
Jean-Christophe Fillion-Robin (reporter)
2013-02-18 11:43

Thanks for the hint. We are indeed passing CMAKE_{C, CXX}_COMPILER to both Slicer inner build and also all the other external projects to ensure that the compiler used by the developer is the one that will be used everywhere.

That said, I think this happen while "ExternalProject" module initially configuring each tree, it is still not clear to me why this is causing trouble.

[1] [^]
[2] [^]
Brad King (manager)
2013-02-20 08:14

I think the fix to 0013756 mentioned in 0013756:0032354 may resolve this issue too. Please re-open if not.

Robert Maynard (manager)
2013-07-01 09:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-02-15 15:23 Greg Sharp New Issue
2013-02-15 15:31 Jean-Christophe Fillion-Robin Note Added: 0032299
2013-02-15 16:21 Bill Hoffman Note Added: 0032300
2013-02-15 19:19 Christopher Mullins Note Added: 0032301
2013-02-15 21:34 Greg Sharp Note Added: 0032304
2013-02-15 21:34 Greg Sharp File Added: dtruss.out
2013-02-15 21:43 Jean-Christophe Fillion-Robin Note Added: 0032305
2013-02-15 21:44 Jean-Christophe Fillion-Robin Note Deleted: 0032305
2013-02-17 11:43 Jean-Christophe Fillion-Robin Note Added: 0032319
2013-02-17 11:44 Jean-Christophe Fillion-Robin Note Edited: 0032319
2013-02-18 08:28 Brad King Note Added: 0032323
2013-02-18 08:53 Brad King Note Added: 0032324
2013-02-18 11:43 Jean-Christophe Fillion-Robin Note Added: 0032334
2013-02-20 08:14 Brad King Note Added: 0032355
2013-02-20 08:14 Brad King Assigned To => Brad King
2013-02-20 08:14 Brad King Status new => resolved
2013-02-20 08:14 Brad King Resolution open => fixed
2013-02-20 08:14 Brad King Fixed in Version => CMake 2.8.11
2013-02-20 08:14 Brad King Target Version => CMake 2.8.11
2013-02-20 08:14 Brad King Relationship added related to 0013756
2013-07-01 09:38 Robert Maynard Note Added: 0033432
2013-07-01 09:38 Robert Maynard Status resolved => closed

Copyright © 2000 - 2018 MantisBT Team