X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=EB2ifkweV6zMZRZA bev2Rgm2movyl6VsfZLYvFnueHp+5OXrrS2fKG4bOBbqy8yF1GKx7YDJw3hpizT/ Rdar2aQCEPLgEeR21Xydtvzh8e01eii03lAWYowDmXgNKi54/ARiVoIxI6hWRWMi Hf9eWeqghkeeVRmY1liiI8tLk1c= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=8QDKUOxgke9DwBABTP1K4O TXLDE=; b=cJQg6ole6qLyWZZVX17d+1mpl/bM5S5x8v1IV4YJZUo4nhfW7SYkvU 4EZXWOArKY94BhPeGYSmO8jgJLxb6uhRobDlE8jBTzxhV9Elp0Gj6dVNOqqtLXLk YBszG+Ryu9XGe9Ik18wAZrGelGPR79ly5p4Vm4CGYOB0lU+CszJlM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*r:4.86_1, Dir, Kelman, H*o:Consulting X-HELO: ecbiz204.inmotionhosting.com Subject: Re: problem building with cmake under cygwin (need clang) To: cygwin AT cygwin DOT com References: <5796B2A7 DOT 8060002 AT molconn DOT com> From: LMH Message-ID: <57978089.4080407@molconn.com> Date: Tue, 26 Jul 2016 11:23:53 -0400 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.0 X-Get-Message-Sender-Via: ecbiz204.inmotionhosting.com: authenticated_id: lmh_users-groups AT molconn DOT com X-IsSubscribed: yes Tony Kelman wrote: > LMH molconn.com> writes: > >> It looks like I need to point CMAKE_CXX_COMPILER_ID to clang, but I am not > sure how >> to do that. I don't know if the problem is with the CMakeLists.txt file, > the way I am >> calling cmake, or with my local cygwin configuration. > > > Are you setting -DCMAKE_CXX_COMPILER=clang ? > > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > I tried a few things like, cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++ ./src That gets me a different set of errors, CMake Error at /usr/share/cmake-3.3.2/Modules/CMakeTestCXXCompiler.cmake:54 (message): The C++ compiler "/usr/bin/clang++" is not able to compile a simple test program. It fails with the following output: Change Dir: /cygdrive/g/shared_data/SMD/ATomilov_quickhull/tomilov-quickhull-7faf277d6cc2_cmake/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make.exe" "cmTC_35956/fast" /usr/bin/make -f CMakeFiles/cmTC_35956.dir/build.make CMakeFiles/cmTC_35956.dir/build make[1]: Entering directory '/cygdrive/g/shared_data/SMD/ATomilov_quickhull/tomilov-quickhull-7faf277d6cc2_cmake/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_35956.dir/testCXXCompiler.cxx.o /usr/bin/clang++ -o CMakeFiles/cmTC_35956.dir/testCXXCompiler.cxx.o -c /cygdrive/g/shared_data/SMD/ATomilov_quickhull/tomilov-quickhull-7faf277d6cc2_cmake/CMakeFiles/CMakeTmp/testCXXCompiler.cxx CMakeFiles/cmTC_35956.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_35956.dir/testCXXCompiler.cxx.o' failed make[1]: Leaving directory '/cygdrive/g/shared_data/SMD/ATomilov_quickhull/tomilov-quickhull-7faf277d6cc2_cmake/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_35956/fast' failed make[1]: *** [CMakeFiles/cmTC_35956.dir/testCXXCompiler.cxx.o] Error 127 make: *** [cmTC_35956/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:1 (project) This is odd that it can't seem to build a test program. Csaba suggests that I should have left the CMakeLists.txt file outside of the src directory, but I haven't figured out how to run cmake like that yet. I'm not sure that has anything to do with the test build failure, so I suspect that there is still some local config problem going on. Marco suggests some problems with the CMakeLists.txt, so I'm not sure which to try to run down first. LMH -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple