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?
-- Frank
$ 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
CMakeFiles/cmTC_5d15a.dir/build
make[1]: Entering directory
'/cygdrive/c/Users/f.brill/Documents/OpenVX/trunk/packages/v_1_1/build64/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5d15a.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_5d15a.dir/testCCompiler.c.o -c
/cygdrive/c/Users/f.brill/Documents/OpenVX/trunk/packages/v_1_1/build64/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_5d15a.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_5d15a.dir/link.txt
--verbose=1
what is the content of
cmake_link_script
CMakeFiles/cmTC_5d15a.dir/link.txt
/usr/bin/cc -Wl,--enable-auto-import
CMakeFiles/cmTC_5d15a.dir/testCCompiler.c.o -o cmTC_5d15a.exe
-Wl,--out-implib,libcmTC_5d15a.dll.a
-Wl,--major-image-version,0,--minor-image-version,0
make[1]: Leaving directory
'/cygdrive/c/Users/f.brill/Documents/OpenVX/trunk/packages/v_1_1/build64/CMakeFiles/CMakeTmp'
Error running link command: No such file or directory
that is very curious
--
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