The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=13418 ====================================================================== Reported By: ClausKlein Assigned To: ====================================================================== Project: CMake Issue ID: 13418 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-07-18 00:45 EDT Last Modified: 2012-07-18 00:45 EDT ====================================================================== Summary: make Experimental fails with macports gcc 4.7 Description: The cmake selftest fails because it used -arch options which are not supported by this compiler
see http://open.cdash.org/viewTest.php?onlyfailed&buildid=2448423 The following tests FAILED: 63 - Architecture (Failed) 88 - BuildDepends (Failed) 137 - ObjC++ (Failed) claus-kleins-macbook-pro:Downloads clausklein$ cc --version i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. claus-kleins-macbook-pro:Downloads clausklein$ gcc --version gcc (MacPorts gcc47 4.7.1_1) 4.7.1 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. claus-kleins-macbook-pro:Downloads clausklein$ sw_vers ProductName: Mac OS X ProductVersion: 10.5.8 BuildVersion: 9L30 claus-kleins-macbook-pro:Downloads clausklein$ Steps to Reproduce: Internal cmake changing into directory: /Users/clausklein/Downloads/CmakeMakeBuildDir/Tests/BuildDepends Error: cmake execution failed The C compiler identification is GNU 4.7.1 The CXX compiler identification is GNU 4.7.1 Checking whether C compiler has -isysroot Checking whether C compiler has -isysroot - yes Checking whether C compiler supports OSX deployment target flag Checking whether C compiler supports OSX deployment target flag - yes Check for working C compiler: /opt/local/libexec/ccache/gcc Configuring Check for working C compiler: /opt/local/libexec/ccache/gcc -- works Detecting C compiler ABI info Configuring Detecting C compiler ABI info - done Checking whether CXX compiler has -isysroot Checking whether CXX compiler has -isysroot - yes Checking whether CXX compiler supports OSX deployment target flag Checking whether CXX compiler supports OSX deployment target flag - yes Check for working CXX compiler: /opt/local/libexec/ccache/g++ Configuring Check for working CXX compiler: /opt/local/libexec/ccache/g++ -- works Detecting CXX compiler ABI info Configuring Detecting CXX compiler ABI info - done Creating Project/foo.cxx Building project first time CMake Warning (dev) in /Users/clausklein/Downloads/cmake/Tests/BuildDepends/Project/CMakeLists.txt: A logical block opening on the line /Users/clausklein/Downloads/cmake/Tests/BuildDepends/Project/CMakeLists.txt:21 (if) closes on the line /Users/clausklein/Downloads/cmake/Tests/BuildDepends/Project/CMakeLists.txt:29 (endif) with mis-matching arguments. This warning is for project developers. Use -Wno-dev to suppress it. Configuring Output from first build: Change Dir: /Users/clausklein/Downloads/CmakeMakeBuildDir/Tests/BuildDepends/Project Run Build Command:/opt/local/bin/gmake Scanning dependencies of target foo [ 9%] Building CXX object CMakeFiles/foo.dir/foo.cxx.o g++: error: unrecognized option '-arch' gmake[2]: *** [CMakeFiles/foo.dir/foo.cxx.o] Error 1 gmake[1]: *** [CMakeFiles/foo.dir/all] Error 2 gmake: *** [all] Error 2 CMake Error at CMakeLists.txt:87 (message): Could not build test project (1)! Running /Users/clausklein/Downloads/CmakeMakeBuildDir/Tests/BuildDepends/Project/bar Run result: No such file or directory Output: "" CMake Error at CMakeLists.txt:115 (message): Project did not initially build properly: Running /Users/clausklein/Downloads/CmakeMakeBuildDir/Tests/BuildDepends/Project/zot Run result: No such file or directory Output: "" CMake Error at CMakeLists.txt:127 (message): Project did not initially build properly: Waiting 3 seconds... Modifying Project/foo.cxx Building project second time CMake Warning (dev) in /Users/clausklein/Downloads/cmake/Tests/BuildDepends/Project/CMakeLists.txt: A logical block opening on the line /Users/clausklein/Downloads/cmake/Tests/BuildDepends/Project/CMakeLists.txt:21 (if) closes on the line /Users/clausklein/Downloads/cmake/Tests/BuildDepends/Project/CMakeLists.txt:29 (endif) with mis-matching arguments. This warning is for project developers. Use -Wno-dev to suppress it. Configuring Output from second build: Change Dir: /Users/clausklein/Downloads/CmakeMakeBuildDir/Tests/BuildDepends/Project Run Build Command:/opt/local/bin/gmake [ 9%] Building CXX object CMakeFiles/foo.dir/foo.cxx.o g++: error: unrecognized option '-arch' gmake[2]: *** [CMakeFiles/foo.dir/foo.cxx.o] Error 1 gmake[1]: *** [CMakeFiles/foo.dir/all] Error 2 gmake: *** [all] Error 2 CMake Error at CMakeLists.txt:176 (message): Could not build test project (2)! Running /Users/clausklein/Downloads/CmakeMakeBuildDir/Tests/BuildDepends/Project/bar Run result: No such file or directory Output: "" CMake Error at CMakeLists.txt:197 (message): Project did not rebuild properly! Running /Users/clausklein/Downloads/CmakeMakeBuildDir/Tests/BuildDepends/Project/zot Run result: No such file or directory Output: "" CMake Error at CMakeLists.txt:211 (message): Project did not rebuild properly! LINK_DEPENDS worked Configuring Configuring incomplete, errors occurred! ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-07-18 00:45 ClausKlein New Issue ====================================================================== -- 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
