problem building with cmake under cygwin (need clang)
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
It fails with the following output:
Run Build Command:"/usr/bin/make.exe" "cmTC_35956/fast"
/usr/bin/make -f CMakeFiles/cmTC_35956.dir/build.make
make: Entering directory
Building CXX object CMakeFiles/cmTC_35956.dir/testCXXCompiler.cxx.o
/usr/bin/clang++ -o CMakeFiles/cmTC_35956.dir/testCXXCompiler.cxx.o -c
CMakeFiles/cmTC_35956.dir/build.make:65: recipe for target
make: Leaving directory
Makefile:126: recipe for target 'cmTC_35956/fast' failed
make: *** [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):
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin