This is the mail archive of the
mailing list for the Cygwin project.
Re: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 21 Jun 2016 15:56:58 +0200
- Subject: Re: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
- Authentication-results: sourceware.org; auth=none
- References: <ee151bc17b85475c885fb8dd1bfef9da at sraex01sc dot sisa dot samsung dot com>
On 21/06/2016 03:43, Frank Brill wrote:
I am having trouble building an open source project using cmake under Cygwin64 with the latest tools (setup-x86_64.exe version 2.874).
I was able to successfully build the project with 32-bit Cygwin with the latest tools: gcc 5.4.0, gnu make 4.2.1, and cmake 3.3.2.
I was also able to successfully build the project under Cygwin64 using older tools: gcc 4.9.3, gnu make 4.1, and cmake 3.3.2.
But when I updated my Cygwin64 installation to the latest tools (gcc 5.4.0, gnu make 4.2.1, cmake 3.3.2) the build failed with the error message below. I tried wiping my Cygwin64 installation and reinstalling from scratch but got the same result. I thought it might be a PATH problem so I set my path the "/usr/bin" and still got the same result. The CMakeFiles/CMakeTmp directory mentioned in the error message below was created, but there's nothing in it.
Can someone provide some advice that can help me fix my Cygwin64 installation so that cmake works properly?
$ cmake -DOPENVX_INCLUDES=$OPENVX_DIR/include -DOPENVX_LIBRARIES=$OPENVX_DIR/out/CYGWIN/x86_64/release/libopenvx.dll.a\;$OPENVX_DIR/out/CYGWIN/x86_64/release/libvxu.dll.a ../conformance_tests/
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.3.2/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /cygdrive/c/Users/f.brill/Documents/OpenVX/trunk/packages/v_1_1/build64/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make.exe" "cmTC_5d15a/fast"
/usr/bin/make -f CMakeFiles/cmTC_5d15a.dir/build.make
make: Entering directory
Building C object CMakeFiles/cmTC_5d15a.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_5d15a.dir/testCCompiler.c.o -c
Linking C executable cmTC_5d15a.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_5d15a.dir/link.txt
what is the content of
CMakeFiles/cmTC_5d15a.dir/testCCompiler.c.o -o cmTC_5d15a.exe
make: Leaving directory
Error running link command: No such file or directory
that is very curious
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple