X-Recipient: archive-cygwin@delorie.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@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: Nathan Thern <nthern@gmail.com>
CC: cygwin@cygwin.com
Subject: Re: cmake doesn't like gcc
References: <a07c15f00806021203g621683f2j63b57f88f96dab4c@mail.gmail.com> 	 <48444570.357B1CB7@dessent.net> <a07c15f00806021237i6890c511j275cb45d91458aa@mail.gmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

