[cmake-developers] Experimental BuildDepends test passed, but does not work?

2012-07-21 Thread Claus Klein

I can not understand the output, for me this test does not work.

Change Dir: /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/ 
BuildDepends/Project


Run Build Command:/usr/local/bin/ninja
[1/14] Building CXX object CMakeFiles/foo.dir/foo.cxx.o
[2/14] Generating zot_custom.hxx
[3/14] Generating zot.hxx
[4/14] Building CXX object CMakeFiles/zot.dir/zot.cxx.o
[5/14] Building CXX object CMakeFiles/zot.dir/zot_macro_dir.cxx.o
[6/14] Linking CXX static library libfoolib.a
[7/14] Building CXX object CMakeFiles/generator.dir/generator.cxx.o
[8/14] Building CXX object CMakeFiles/zot.dir/zot_macro_tgt.cxx.o
[9/14] Linking CXX executable zot
[10/14] Linking CXX executable gen
[11/14] Generating noregen.h
[12/14] Generating regen.h
[13/14] Building CXX object CMakeFiles/bar.dir/bar.cxx.o
[14/14] Linking CXX executable bar

Running /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/ 
BuildDepends/Project/bar

Run result: 0 Output: foo 
Worked!
Running /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/ 
BuildDepends/Project/zot
Run result: 0 Output: [zot] [zot_custom] [zot_macro_dir]  
[zot_macro_tgt] 

Worked!
Waiting 3 seconds...
Modifying Project/foo.cxx
Building project second time
Output from second build:
Change Dir: /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/ 
BuildDepends/Project


Run Build Command:/usr/local/bin/ninja
ninja: no work to do.   


Running /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/ 
BuildDepends/Project/bar

Run result: 0 Output: foo changed 
Worked!
Running /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/ 
BuildDepends/Project/zot
Run result: 0 Output: [zot changed] [zot_custom changed]  
[zot_macro_dir changed] [zot_macro_tgt changed] 

Worked!
Configuring
Configuring done
Generating
Generating done
Build files have been written to: /Users/clausklein/Downloads/ 
CmakeNinjaBuildDir/Tests/BuildDepends

 End CMake output ==
Change Dir: /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/ 
BuildDepends


Run Clean Command:/opt/local/bin/ninja -t clean
Cleaning... 0 files.

Run Build Command:/opt/local/bin/ninja
ninja: no work to do.

see:
http://open.cdash.org/testDetails.php?test=154196743build=2456799

Can anyone please help?

Thanks in advance
Best Regards

Claus

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Re: [cmake-developers] Experimental BuildDepends test passed, but does not work?

2012-07-21 Thread Peter Kümmel

On 21.07.2012 11:22, Claus Klein wrote:

I can not understand the output, for me this test does not work.

Change Dir: 
/Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project Run 
Build
Command:/usr/local/bin/ninja [1/14] Building CXX object 
CMakeFiles/foo.dir/foo.cxx.o [2/14] Generating zot_custom.hxx
[3/14] Generating zot.hxx [4/14] Building CXX object 
CMakeFiles/zot.dir/zot.cxx.o [5/14] Building CXX object
CMakeFiles/zot.dir/zot_macro_dir.cxx.o [6/14] Linking CXX static library 
libfoolib.a [7/14] Building CXX object
CMakeFiles/generator.dir/generator.cxx.o [8/14] Building CXX object 
CMakeFiles/zot.dir/zot_macro_tgt.cxx.o [9/14]
Linking CXX executable zot [10/14] Linking CXX executable gen [11/14] 
Generating noregen.h [12/14] Generating regen.h
[13/14] Building CXX object CMakeFiles/bar.dir/bar.cxx.o [14/14] Linking CXX 
executable bar Running
/Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project/bar Run result: 
0 Output: foo  Worked!
Running 
/Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project/zot Run 
result: 0 Output: [zot]
[zot_custom] [zot_macro_dir] [zot_macro_tgt]  Worked! Waiting 3 seconds... 
Modifying Project/foo.cxx Building project
second time Output from second build: Change Dir:
/Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project Run 
Build Command:/usr/local/bin/ninja ninja:
no work to do. Running
/Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project/bar Run result: 
0 Output: foo changed 
Worked! Running 
/Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project/zot 
Run result: 0 Output:
[zot changed] [zot_custom changed] [zot_macro_dir changed] [zot_macro_tgt changed] 
 Worked! Configuring Configuring
done Generating Generating done Build files have been written to:
/Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends  End 
CMake output == Change Dir:
/Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends Run Clean 
Command:/opt/local/bin/ninja -t clean
Cleaning... 0 files. Run Build Command:/opt/local/bin/ninja ninja: no work to 
do.

see:
http://open.cdash.org/testDetails.php?test=154196743build=2456799
http://open.cdash.org/testDetails.php?test=154196743build=2456799

Can anyone please help?


You could not run the BuildDepends test twice.
You always have to remove the BuildDepends folder in
the build tree before running it again.
Seems like a bug in the cmake file for the test.

Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Experimental BuildDepends test passed, but does not work?

2012-07-21 Thread Peter Kümmel

On 21.07.2012 12:08, Peter Kümmel wrote:


Can anyone please help?


You could not run the BuildDepends test twice.
You always have to remove the BuildDepends folder in
the build tree before running it again.
Seems like a bug in the cmake file for the test.


Or a bug in the ninja generator?


Peter
--

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Experimental BuildDepends test passed, but does not work?

2012-07-21 Thread David Cole
On Sat, Jul 21, 2012 at 6:08 AM, Peter Kümmel syntheti...@gmx.net wrote:
 On 21.07.2012 11:22, Claus Klein wrote:

 I can not understand the output, for me this test does not work.

 Change Dir:
 /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project
 Run Build
 Command:/usr/local/bin/ninja [1/14] Building CXX object
 CMakeFiles/foo.dir/foo.cxx.o [2/14] Generating zot_custom.hxx
 [3/14] Generating zot.hxx [4/14] Building CXX object
 CMakeFiles/zot.dir/zot.cxx.o [5/14] Building CXX object
 CMakeFiles/zot.dir/zot_macro_dir.cxx.o [6/14] Linking CXX static library
 libfoolib.a [7/14] Building CXX object
 CMakeFiles/generator.dir/generator.cxx.o [8/14] Building CXX object
 CMakeFiles/zot.dir/zot_macro_tgt.cxx.o [9/14]
 Linking CXX executable zot [10/14] Linking CXX executable gen [11/14]
 Generating noregen.h [12/14] Generating regen.h
 [13/14] Building CXX object CMakeFiles/bar.dir/bar.cxx.o [14/14] Linking
 CXX executable bar Running

 /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project/bar
 Run result: 0 Output: foo  Worked!
 Running
 /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project/zot
 Run result: 0 Output: [zot]
 [zot_custom] [zot_macro_dir] [zot_macro_tgt]  Worked! Waiting 3
 seconds... Modifying Project/foo.cxx Building project
 second time Output from second build: Change Dir:
 /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project
 Run Build Command:/usr/local/bin/ninja ninja:
 no work to do. Running

 /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project/bar
 Run result: 0 Output: foo changed 
 Worked! Running
 /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends/Project/zot
 Run result: 0 Output:
 [zot changed] [zot_custom changed] [zot_macro_dir changed] [zot_macro_tgt
 changed]  Worked! Configuring Configuring
 done Generating Generating done Build files have been written to:
 /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends 
 End CMake output == Change Dir:
 /Users/clausklein/Downloads/CmakeNinjaBuildDir/Tests/BuildDepends Run
 Clean Command:/opt/local/bin/ninja -t clean
 Cleaning... 0 files. Run Build Command:/opt/local/bin/ninja ninja: no work
 to do.

 see:
 http://open.cdash.org/testDetails.php?test=154196743build=2456799
 http://open.cdash.org/testDetails.php?test=154196743build=2456799

 Can anyone please help?


 You could not run the BuildDepends test twice.
 You always have to remove the BuildDepends folder in
 the build tree before running it again.

This should not be the case. If it were, then our Continuous
dashboards would frequently fail the test on their 2nd and later runs
during a day... but this test very rarely fails on the Continuous
dashboards.


 Seems like a bug in the cmake file for the test.

The code for this test is difficult to understand. It all happens at
configure-time of the test project via execute_process in the
CMakeLists file.

Maybe there is a subtle problem in the test's code itself, but if so,
it's subtler than I can see...

This test has been around for a very long time, since before we had
cmake --build on the command line. Perhaps it should be re-written
using cmake --build or ExternalProject to make it easier to
understand.

The intent behind the test is simply to ensure that changing a header
file results in the proper re-compiling of c++ files that include it
when the change is followed by an incremental build.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


[cmake-developers] Memory leak introduced with recent Mac+Ninja changes

2012-07-21 Thread David Cole
cmMakefileTargetGenerator leaks its OSXBundleGenerator -- please
delete it in the destructor...

Search for are definitely lost on this page:

  http://open.cdash.org/viewDynamicAnalysisFile.php?id=2784730


Thanks,
David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] [PATCH] Added very basic Windows CE Makefile support

2012-07-21 Thread David Cole
On Sat, Jul 21, 2012 at 8:16 AM, Patrick Gansterer par...@paroga.com wrote:
 Hi,


 On Sat, 21 Jul 2012 08:08:43 -0400, David Cole wrote:

 Do you have a local branch that has all 6 patches one on top of the other?


 On Sat, Jul 21, 2012 at 7:49 AM, Patrick Gansterer par...@paroga.com
 wrote:

 Hi,


 On Sat, 21 Jul 2012 07:44:33 -0400, David Cole wrote:


 What branch did you base these on?

 They don't apply cleanly on top of master today.



 If I made no mistake the basic revision was the master branch of last
 weekend:
 21b45ce16f88172eac3386f002fe112014053a36

 -- Patrick


 I pushed it as ce to https://gitorious.org/~paroga/cmake/parogas-cmake
 (git://gitorious.org/~paroga/cmake/parogas-cmake.git)

 BTW: Are there any plans to use gerrit for CMake too?

 -- Patrick


(cc'ing the CMake Developers list back in...)


OK, finally got it. Whew. Sometimes I could throw git straight out the window...

It merges to 'next' cleanly, and builds ok on my machine with Visual
Studio 9, but then one test fails... Looks like MSVC71 is somehow
getting defined for my msvc 9 build:


C:\...ctest -j 8 -C Release --output-on-failure -R
CheckCompilerRelatedVariables


Test project C:/Users/davidcole/Dashboards/My Tests/CMake Win32-vs9-Release
Start 128: CheckCompilerRelatedVariables
1/1 Test #128: CheckCompilerRelatedVariables ***Failed0.07 sec
Internal cmake changing into directory:
C:/Users/davidcole/Dashboards/My Tests/CMake
Win32-vs9-Release/Tests/CheckCompilerRelatedVariables
Error: cmake execution failed
MSVC='1' is defined
MSVC60='' is NOT defined
MSVC70='' is NOT defined
MSVC71='1' is defined
MSVC80='' is NOT defined
MSVC90='1' is defined
MSVC10='' is NOT defined
MSVC11='' is NOT defined
CMake Error at CMakeLists.txt:61 (message):
  error: 2 MSVC** variables are defined -- exactly 1 expected


Configuring
Configuring incomplete, errors occurred!



0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.20 sec

The following tests FAILED:
128 - CheckCompilerRelatedVariables (Failed)
Errors while running CTest


I'll continue following up on this on Monday, (looking more closely at
the changes and trying to fix the failing test if you don't beat me to
it) -- but for now I have some other deadlines I have to meet.

Did you make any progress towards setting up a dashboard for this,
that demonstrates actually building some WinCE stuff with a toolchain
file?


Thanks,
David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] [PATCH] Added very basic Windows CE Makefile support

2012-07-21 Thread Patrick Gansterer

Hi,

On Sat, 21 Jul 2012 09:30:58 -0400, David Cole wrote:
On Sat, Jul 21, 2012 at 8:16 AM, Patrick Gansterer 
par...@paroga.com wrote:

Hi,


On Sat, 21 Jul 2012 08:08:43 -0400, David Cole wrote:


Do you have a local branch that has all 6 patches one on top of the 
other?



On Sat, Jul 21, 2012 at 7:49 AM, Patrick Gansterer 
par...@paroga.com

wrote:


Hi,


On Sat, 21 Jul 2012 07:44:33 -0400, David Cole wrote:



What branch did you base these on?

They don't apply cleanly on top of master today.




If I made no mistake the basic revision was the master branch of 
last

weekend:
21b45ce16f88172eac3386f002fe112014053a36

-- Patrick



I pushed it as ce to 
https://gitorious.org/~paroga/cmake/parogas-cmake

(git://gitorious.org/~paroga/cmake/parogas-cmake.git)

BTW: Are there any plans to use gerrit for CMake too?

-- Patrick



(cc'ing the CMake Developers list back in...)


OK, finally got it. Whew. Sometimes I could throw git straight out
the window...

It merges to 'next' cleanly, and builds ok on my machine with Visual
Studio 9, but then one test fails... Looks like MSVC71 is somehow
getting defined for my msvc 9 build:
...
I'll continue following up on this on Monday, (looking more closely 
at
the changes and trying to fix the failing test if you don't beat me 
to

it) -- but for now I have some other deadlines I have to meet.


Uuups. Missed to stage the VS71 generator changes. ^^

I fixed it and pushed again to the same branch (with --force).


Did you make any progress towards setting up a dashboard for this,
that demonstrates actually building some WinCE stuff with a toolchain
file?


Is there any good example how to set up a cross compiling environment?
I changed a few files, but didn't find the correct ones until now. It 
still compiles for the host system and not for the target system.
If someone can give me a few hints, I can set up the machine in the 
next few days. Otherwise I'll need some time to read the code myself, 
but it's still on my todo list. :-)


-- Patrick
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Memory leak introduced with recent Mac+Ninja changes

2012-07-21 Thread Nicolas Desprès
Thanks for the feedback. Here the patches to cherry-pick:

https://github.com/polrop/CMake/commit/af6b1979071e463ae397d3512e3a0366b58919f8
https://github.com/polrop/CMake/commit/be8039fab069b0efb2469932617b3ca8826d1865

Cheers,
Nico

On Sat, Jul 21, 2012 at 1:32 PM, David Cole david.c...@kitware.com wrote:

 cmMakefileTargetGenerator leaks its OSXBundleGenerator -- please
 delete it in the destructor...

 Search for are definitely lost on this page:

   http://open.cdash.org/viewDynamicAnalysisFile.php?id=2784730


 Thanks,
 David




-- 
Nicolas Desprès
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers