delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/02/16:34:34

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <4844593B.64D75940@dessent.net>
Date: Mon, 02 Jun 2008 13:34:03 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: Nathan Thern <nthern AT gmail DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: cmake doesn't like gcc
References: <a07c15f00806021203g621683f2j63b57f88f96dab4c AT mail DOT gmail DOT com> <48444570 DOT 357B1CB7 AT dessent DOT net> <a07c15f00806021237i6890c511j275cb45d91458aa AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

Nathan Thern wrote:

> I've been using gcc extensively to compile scheme interpreters and to
> compile code generated by various scheme-to-C systems. Here's a simple
> check, though:
> ---
> $ echo -e '#include <stdio.h>\nmain(){printf("Hello World\\n");}' >
> hw.c; cat hw.c; /usr/bin/gcc hw.c; ./a.exe
> #include <stdio.h>
> main(){printf("Hello World\n");}
> Hello World
> ---

Okay, so that pretty much rules out a gcc installation problem.

One thing I noticed in your cygcheck is that you have LIB and INCLUDE
set to their MS Visual Studio values.  gcc itself does not use these
environment variables but some build systems do and if cmake is one of
those then that would explain why it cannot compile a trivial program. 
I think when Visual Studio installs it asks if you want the variables to
be set globally or just when you run the "open build environment"
shortcut, and I always choose the latter.  I'm not sure if that's
relevant here or not.

Other than that I don't see anything out of the ordinary, but I don't
know a great deal about cmake.  You might want to see if the cmake
package maintainer has anything to add, or perhaps ask on the cmake
list.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019