Re: [CMake] cmake self test fails on "Darwin - 9.8.0 - i386" with gcc47 and spaces in path

2012-05-27 Thread Claus Klein

done, now it works better.

Same with and without ninja!

Claus

On 27.05.2012, at 18:24, Richard Wackerbarth wrote:

You need to clean out your build tree. You have things left over  
from the previous builds using ninja.


Internal cmake changing into directory: /Users/clausklein/Downloads/ 
My Cmake Test/Tests/Architecture Error: cmake execution failed CMake  
Error: Error: generator : Unix Makefiles Does not match the  
generator used previously: Ninja Either remove the CMakeCache.txt  
file or choose a different binary directory.
Keep a separate build tree for Unix makefiles and for Ninja builds.  
You can use the same source tree if you wish.


Richard

On May 27, 2012, at 11:19 AM, Claus Klein wrote:


Hi Richard,

I have set it to i386.
I have Xcode 3.1 installed year ago to bootstrap macports.
I never use it!

This problems for example are caused that my gcc47 compiler is used  
to compile objectc++, but it is not build to do this!


All this errors are have the this kind of reason, none of them is  
caused from ninja.


And without ninja, I have more trouble as I want.

see http://open.cdash.org/viewTest.php?onlyfailed&buildid=2312582

// 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://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] cmake self test fails on "Darwin - 9.8.0 - i386" with gcc47 and spaces in path

2012-05-27 Thread Claus Klein

Hi Richard,

I have set it to i386.
I have Xcode 3.1 installed year ago to bootstrap macports.
I never use it!

This problems for example are caused that my gcc47 compiler is used to  
compile objectc++, but it is not build to do this!


All this errors are have the this kind of reason, none of them is  
caused from ninja.


And without ninja, I have more trouble as I want.

see http://open.cdash.org/viewTest.php?onlyfailed&buildid=2312582

// Regards
Claus


Run Build Command:/opt/local/bin/ninja
[1/2] Building CXX object CMakeFiles/ObjC++.dir/objc++.mm.o
FAILED: /opt/local/bin/c++ -MMD -MT CMakeFiles/ObjC++.dir/objc+ 
+.mm.o -MF CMakeFiles/ObjC++.dir/objc++.mm.o.d -o CMakeFiles/ObjC+ 
+.dir/objc++.mm.o -c /Users/clausklein/Downloads/cmake/Tests/ObjC++/ 
objc++.mm
/Users/clausklein/Downloads/cmake/Tests/ObjC++/objc++.mm:1:21: fatal  
error: iostream.h: No such file or directory

compilation terminated.
ninja: build stopped: subcommand failed.

#

Run Build Command:/opt/local/bin/ninja
[1/4] Building C object CMakeFiles/foo.dir/foo.c.o
[2/4] Linking C static library libfoo.a
[3/4] Building C object CMakeFiles/bar.dir/bar.c.o
FAILED: /opt/local/bin/gcc   -arch ppc -isysroot /Developer/SDKs/ 
MacOSX10.5.sdk -MMD -MT CMakeFiles/bar.dir/bar.c.o -MF CMakeFiles/ 
bar.dir/bar.c.o.d -o CMakeFiles/bar.dir/bar.c.o   -c /Users/clausklein/ 
Downloads/cmake/Tests/Architecture/bar.c

gcc: error: unrecognized option '-arch'
ninja: build stopped: subcommand failed.



On 27.05.2012, at 15:06, Richard Wackerbarth wrote:

The first thing that I notice is that you do not seem to have Xcode  
4 installed.
Since your compiler does not handle ppc code, you need to set  
CMAKE_OSX_ARCHITECTURES to keep your compiler happy.


Also, I readily cannot tell from the dashboard if you are using  
ninja. Please use Unix makefiles first so that we can sort out  
problems related to your compiler installation. Then, once you have  
those issues addressed, we can take a look at ninja.


Richard

On May 27, 2012, at 7:21 AM, Claus Klein wrote:


I have uploaded my test result:
http://open.cdash.org/viewTest.php?onlyfailed&buildid=2312336
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://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] cmake self test fails on "Darwin - 9.8.0 - i386" with gcc47 and spaces in path

2012-05-27 Thread Claus Klein

I have uploaded my test result:
http://open.cdash.org/viewTest.php?onlyfailed&buildid=2312336
Claus

On 27.05.2012, at 12:10, Claus Klein wrote:


Hi all,

while testing the ninja generator I created a reference binary tree  
with gmake an gcc47 installed with macports.


I created a new empty dir with

mkdir "/Users/clausklein/Downloads/My Cmake Test"
and created the makefiles with a build scripts.

It seems that the spaces in CWD makes trouble while make test?


No space problem!

/Users/clausklein/Downloads/CmakeBuildDir/bin/ctest "--build-and-test"  
"/Users/clausklein/Downloads/cmake/Tests/CommandLineTest" "/Users/ 
clausklein/Downloads/CmakeBuildDir/Tests/CommandLineTest" "--build-two- 
config" "--build-generator" "Ninja" "--build-makeprogram" "/opt/local/ 
bin/gmake" "--build-project" "CommandLineTest" "--test-command"  
"CommandLineTest"


The --build-makeprogram is wrong!

--

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://www.cmake.org/mailman/listinfo/cmake

[CMake] cmake self test fails on "Darwin - 9.8.0 - i386" with gcc47 and spaces in path

2012-05-27 Thread Claus Klein

Hi all,

while testing the ninja generator I created a reference binary tree  
with gmake an gcc47 installed with macports.


I created a new empty dir with

mkdir "/Users/clausklein/Downloads/My Cmake Test"
and created the makefiles with a build scripts.

It seems that the spaces in CWD makes trouble while make test?

#!/bin/sh

MAKECOMMAND=/opt/local/bin/gmake

set -x
set -e

/usr/local/bin/cmake -G "Eclipse CDT4 - Unix Makefiles" - 
DCMAKE_TEST_GENERATOR:STRING="Ninja" \
-DCMAKE_TEST_MAKEPROGRAM:FILEPATH="${MAKECOMMAND}" - 
DCMAKE_ENABLE_NINJA:BOOL="ON" \

-DBUILD_CursesDialog:BOOL="OFF" -DBUILD_QtDialog:BOOL="OFF" \
-DMAKECOMMAND:STRING="${MAKECOMMAND} --ignore-errors --no-builtin- 
rules" \

../cmake

time ${MAKECOMMAND} --silent --no-builtin-rules -B

# real  3m34.380s
# user  2m57.410s
# sys   0m29.289s

time ${MAKECOMMAND} --silent --no-builtin-rules

# real  0m1.911s
# user  0m1.060s
# sys   0m0.746s


# exit


${MAKECOMMAND} --no-builtin-rules test
# ...
# 56% tests passed, 104 tests failed out of 236
#
# Label Time Summary:
# Label1=   0.07 sec
# Label2=   0.07 sec
#
# Total Test time (real) = 584.77 sec
#
# The following tests FAILED:
#24 - CommandLineTest (Failed)
#25 - FindPackageTest (Failed)
#26 - FindModulesExecuteAll (Failed)
#27 - StringFileTest (Failed)
#28 - TryCompile (Failed)
#29 - TarTest (Failed)
#30 - SystemInformation (Failed)
#31 - MathTest (Failed)
#32 - Simple (Failed)
#33 - PreOrder (Failed)
#35 - FortranOnly (Failed)
#36 - VSGNUFortran (Failed)
#37 - COnly (Failed)
#38 - CxxOnly (Failed)
#39 - IPO (Failed)
#40 - OutDir (Failed)
#41 - ObjectLibrary (Failed)
#42 - NewlineArgs (Failed)
#43 - SetLang (Failed)
#44 - ExternalOBJ (Failed)
#45 - LoadCommand (Failed)
#46 - LinkDirectory (Failed)
#47 - LinkLanguage (Failed)
#48 - LinkLine (Failed)
#49 - MacroTest (Failed)
#50 - FunctionTest (Failed)
#51 - ReturnTest (Failed)
#52 - Properties (Failed)
#53 - Assembler (Failed)
#54 - SourceGroups (Failed)
#55 - Preprocess (Failed)
#56 - ExportImport (Failed)
#57 - Unset (Failed)
#58 - PolicyScope (Failed)
#61 - Architecture (Failed)
#62 - BundleUtilities (Failed)
#63 - Qt4Deploy (Failed)
#66 - Module.CheckTypeSize (Failed)
#67 - Module.GenerateExportHeader (Failed)
#68 - LinkFlags-prepare (Failed)
#75 - SubProject (Failed)
#76 - SubProject-Stage2 (Failed)
#77 - Framework (Failed)
#78 - TargetName (Failed)
#79 - LibName (Failed)
#80 - CustComDepend (Failed)
#81 - ArgumentExpansion (Failed)
#82 - CustomCommand (Failed)
#83 - CustomCommandWorkingDirectory (Failed)
#84 - OutOfSource (Failed)
#85 - BuildDepends (Failed)
#86 - SimpleInstall (Failed)
#87 - SimpleInstall-Stage2 (Failed)
#88 - CPackComponents (Failed)
#89 - CPackComponentsForAll-ZIP-default (Failed)
#90 - CPackComponentsForAll-ZIP-OnePackPerGroup (Failed)
#91 - CPackComponentsForAll-ZIP-IgnoreGroup (Failed)
#92 - CPackComponentsForAll-ZIP-AllInOne (Failed)
#93 - CPackComponentsForAll-DragNDrop-default (Failed)
#94 - CPackComponentsForAll-DragNDrop-OnePackPerGroup (Failed)
#95 - CPackComponentsForAll-DragNDrop-IgnoreGroup (Failed)
#96 - CPackComponentsForAll-DragNDrop-AllInOne (Failed)
#97 - CPackTestAllGenerators (Failed)
#98 - X11 (Failed)
#   102 - LoadedCommandOneConfig (Failed)
#   103 - complex (Failed)
#   104 - complexOneConfig (Failed)
#   105 - Example (Failed)
#   106 - Environment (Failed)
#   107 - QtAutomoc (Failed)
#   108 - ExternalProject (Failed)
#   109 - TutorialStep1 (Failed)
#   110 - TutorialStep2 (Failed)
#   111 - TutorialStep3 (Failed)
#   112 - TutorialStep4 (Failed)
#   113 - TutorialStep5 (Failed)
#   114 - TutorialStep6 (Failed)
#   115 - TutorialStep7 (Failed)
#   116 - testing (Failed)
#   117 - wrapping (Failed)
#   118 - qtwrapping (Failed)
#   119 - testdriver1 (Failed)
#   120 - testdriver2 (Failed)
#   121 - testdriver3 (Failed)
#   122 - Dependency (Failed)
#   123 - JumpWithLibOut (Failed)
#   124 - JumpNoLibOut (Failed)
#   125 - Plugin (Failed)
#   126 - linkorder1 (Failed)
#   127 - linkorder2 (Failed)
#   128 - SubDirSpaces (Failed)
#   129 - SubDir (Failed)
#   130 - CheckCompilerRelatedVariables (Failed)
#   131 - BundleTest (Failed)
#   132 - CFBundleTest (Failed)
#   133 - ObjC++ (Failed)
#   134 - BundleGeneratorTest (Failed)
#   140 - TestsWorkingDirectory (Failed)
#   163 - CMakeCommands.target_link_li