delorie.com/archives/browse.cgi | search |
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:from:to:subject:date:message-id:references | |
:in-reply-to:content-type:content-transfer-encoding | |
:mime-version; q=dns; s=default; b=LQpGog23jp7aWZ8R+Iak/p4Re0bG4 | |
orBb1Ig2Ia2N61opgz0w413zUXMfXQSszVjBJU37MHLXaJP4uVeV2PazyYzTAqYM | |
MhC084K1zOBuazo4VNpyw8Vs6Y8HxIOiUMcjzdhrqPWypbF0W/bTmq5LbODpXAyr | |
zKI/WmmCIkPzs8= | |
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:from:to:subject:date:message-id:references | |
:in-reply-to:content-type:content-transfer-encoding | |
:mime-version; s=default; bh=gymPEg5RZfXEhTopqyyeT6Gzj0Y=; b=UsC | |
8DiumDnKm1sU8VPXjfIxauBxGUo2Mt+GWbK8wKFON941mmWstCRRnbt4qXdYwRdN | |
zGr7kFmuDwHI++MRdSJZLo44JPQh8UT9ZYf3BJ+aYL2RZFegbpkfbyOiu9GpAdh6 | |
ZJnGmsC2T9hy0dXR4KlWmtI1pbiY7n3FyfXIPB6Q= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=world's, kelman, Kelman, Hx-languages-length:1689 |
X-HELO: | usmailout4.samsung.com |
From: | Frank Brill <f DOT brill AT samsung DOT com> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | RE: Cmake on cygwin64 fails with error "C compiler "/usr/bin/cc" is not able to compile a simple test program" |
Date: | Tue, 21 Jun 2016 22:19:42 +0000 |
Message-id: | <dadb5ae441724443aea98028e6296ea5@sraex01sc.sisa.samsung.com> |
References: | <ee151bc17b85475c885fb8dd1bfef9da AT sraex01sc DOT sisa DOT samsung DOT com> <12e058e5-9492-095c-15e3-7c0d07765cf3 AT t-online DOT de> |
In-reply-to: | <12e058e5-9492-095c-15e3-7c0d07765cf3@t-online.de> |
MIME-version: | 1.0 |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id u5LMK382026468 |
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 <stdio.h> #include <stdlib.h> #include <math.h> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |