RE: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
I rebooted my PC in Safe Mode and everything works fine on the same PC with the same cygwin64 installation. CMake is OK in Safe Mode. Some other processes that run during regular boot must be interfering with CMake. Definitely BLODA. I never even heard that term before yesterday, and look at me now. If I ever figure out specifically what is interfering I'll post it. -- 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
RE: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
The attached zip file contains the results when I create a directory called cmaketest64, put the two files from my previous post (CMakeLists.txt and tutorial.cxx) in it, and type "cmake ." I had to change the file extension from .zip to .z__ and remove two .exe files to get past the spam filters: cmaketest64/CMakeFiles/3.3.2/CompilerIdC/a.exe cmaketest64/CMakeFiles/3.3.2/CompilerIdCXX/a.exe cmaketest64.z__ Description: cmaketest64.z__ -- 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
RE: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
Tony Kelman writes: > I'm at a conference this week so really busy, but it sounds like I may > need to update cmake to the latest version (which is overdue anyway) > if something in the latest gcc is unhappy. Can you provide full > reproduction steps, a source repo or tarball to download? Also looking > into (and posting) the full content of the cmake error/output log > files might provide more information about what the problem is I made the world's smallest example, taken from the CMake tutorial. There's a CMakeLists.txt that contains this: cmake_minimum_required (VERSION 2.6) project (Tutorial) add_executable(Tutorial tutorial.cxx) and a tutorial.cxx that contains this: // A simple program that computes the square root of a number #include #include #include int main (int argc, char *argv[]) { if (argc < 2) { fprintf(stdout,"Usage: %s number\n",argv[0]); return 1; } double inputValue = atof(argv[1]); double outputValue = sqrt(inputValue); fprintf(stdout,"The square root of %g is %g\n", inputValue, outputValue); return 0; } Just create the two files above and do: $ cmake . $ make $ ./Tutorial 2 On 32-bit Cygwin, it all works nicely as expected. But on my fresh 64-bit installation, I get the " not able to compile a simple test program" message. I think Hans-Bernhard's theory that there's some other app interfering is probably correct, and it probably has something to do with my company's security software. I will post more information in subsequent posts that hopefully stay under the "spam score threshold". -- 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
RE: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
Hans-Bernhard Bröker writes: > One possibly important difference is that you keep your source tree in the > Windows user profile directory; I never subscribed to that idea. I've put the source tree in a number of places with the same result. I'll try again at any location you suggest. > What this brings to mind is that maybe an antivirus program or other BLODA > is getting in the way here. This would explain why I'm having the same bad behavior on multiple PC's at work--they all have the same BLODA. But it's strange that 32-bit works and 64-bit doesn't, and that an older version of 64-bit Cygwin worked. I will try from my home PC to see what happens. I am also trying to send a message with a more complete package of the errors, but so far the mail server on one end or the other has rejected my attempts. Will keep trying. -- Frank -- 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
Re: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
Am 21.06.2016 um 03:43 schrieb Frank Brill: I am having trouble building an open source project using cmake under Cygwin64 with the latest tools (setup-x86_64.exe version 2.874). Well, FWIW, with the CMake-based projects I've been building here (Windows10 64-bit, Cygwin 64-bit, packages gcc 5.4.0-1, cmake 3.3.2-1, GNU make 4.2.1-1), it has worked just fine, and still does. I've built the current upstream release version of cmake itself with it, among quite a number of things. One possibly important difference is that you keep your source tree in the Windows user profile directory; I never subscribed to that idea. What this brings to mind is that maybe an antivirus program or other BLODA is getting in the way here. /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 The linker command looks pretty much exactly like the one that works around here. -- 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
RE: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
Marco Atzeri writes: > what is the content of > cmake_link_script > CMakeFiles/cmTC_5d15a.dir/link.txt None of these files exists after the failed cmake exits. The directory ./CMakeFiles/CMakeTmp is created, but it's empty. The entire directory structure that is remaining after executing "cmake ." is attached to my previous post as cmaketest64.zip. -- Frank -- 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
Re: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
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
Re: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program"
Frank Brill samsung.com> writes: > > 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'm at a conference this week so really busy, but it sounds like I may need to update cmake to the latest version (which is overdue anyway) if something in the latest gcc is unhappy. Can you provide full reproduction steps, a source repo or tarball to download? Also looking into (and posting) the full content of the cmake error/output log files might provide more information about what the problem is. Thanks, Tony -- 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