problem building with cmake under cygwin (need clang)

LMH lmh_users-groups@molconn.com
Tue Jul 26 15:24:00 GMT 2016


Tony Kelman wrote:
> LMH <lmh_users-groups <at> 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



More information about the Cygwin mailing list