X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=wjpqCtfUJ0tuIFTm qjmDia3jI3gsGzhUMM00vkQwSQuqcks6+e4pqG6eg221XeG3eMhhiZfa0zN6fzvJ kt4Y699+YF1OWEG5GNa291eGQricVOHof593Cof7s6h7ZVzUP2x3WDymlP3Wwtne 6f5iy8E+VtQKccEUjkdJDnyfKEk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=tqLLGk7MPrORDKChAu0jT7 Ifkpk=; b=DWxpakUD8avppyiJ3nJVhx37A1Sco7azqHTXt2D4bHAhXwh+UL7eKy CT2boixnooT0JJ/fVvh4Ecct3sFdX2BBrLKgjhgYc62LcieGiCD0SUdM8JCo2Enj XnNIe0hjJqjSz0/Rr5C2TJZM11NVuCo0DC3fuPFNkIKJ07dFfoR40= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:ee151bc, Documents, documents X-HELO: mail-lf0-f49.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=eOAI4f0rXHOoy/d186qnIEUB07U88+AHjQwvbl9klh4=; b=P0cAQALNKQVPJ4B+mYFg8hn37J+KVfTPEUSqPtbWzxoggHB6h3CKkCe6A8qYK9QwLO KKJ1KX9yB3zIg+DsPa3ODvHGvKMpbqq2ovJsNatGFap2gI8gh1qtgNRzgKj98OQbQ+Wg Y2AT51Qqk9JBJ2eh9FDLKarj8nqfdRdteBlM2qcQHA9aB2OIjQUCq6oRzVJbR/eg8SxJ YXFJEgwKAFrp4cTmTIGs1z7Saw4C90IcgSeT/rtuJqFbjhpuhiWIyJm6rSC7nJ5qEHkW 4Je7CkR95Oaqt4RL3MPXQeBSFAQVq+Q3hmnF3WEzP8oILs22SY2NA241tvzbcDFHAzMN cERw== X-Gm-Message-State: ALyK8tIfeehXdXpu5HfHhwWS0qSf1YI/2JXL4/EjgEeKe+vD1gCeOYzP65ITWjX4tsuLew== X-Received: by 10.28.212.198 with SMTP id l189mr3497569wmg.100.1466517420649; Tue, 21 Jun 2016 06:57:00 -0700 (PDT) Subject: Re: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program" To: cygwin AT cygwin DOT com References: From: Marco Atzeri Message-ID: <086e947b-3b66-c73d-0ab9-630c1e34fa8e@gmail.com> Date: Tue, 21 Jun 2016 15:56:58 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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