Mail Archives: cygwin/2012/01/02/16:43:46
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
|
X-Spam-Check-By: | sourceware.org
|
Message-ID: | <4F022517.9040704@gmail.com>
|
Date: | Mon, 02 Jan 2012 21:43:51 +0000
|
From: | Dave Korn <dave DOT korn DOT cygwin AT gmail DOT com>
|
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914)
|
MIME-Version: | 1.0
|
To: | cygwin AT cygwin DOT com
|
Subject: | Re: same old problem, C compiler cannot create executables
|
References: | <loom DOT 20120101T005043-258 AT post DOT gmane DOT org>
|
In-Reply-To: | <loom.20120101T005043-258@post.gmane.org>
|
X-IsSubscribed: | yes
|
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
|
On 31/12/2011 23:51, Douglas Pardoe Wilson wrote:
> Searching, I have found many people on many forums complaining that Cygwin
> produces a "C compiler cannot create executables" messaage. As so many people
> have reported, the config.log file contains nothing useful. Surely after all
> these years people should have a real solution to this problem.
You haven't quite understood what you've been looking at. Your searches
will have shown you that error message cropping up many times (on every
platform that uses configure scripts, not just Cygwin), because this is the
way configure reports /any/ problem that prevents it working out how to drive
the compiler. However it's not one single problem at all: it's one symptom
that can be caused by many different underlying problems, and almost every
time the config.log file does contain enough information to diagnose the
problem, or failing that to reproduce it at the command-line for further
investigation.
Among the many underlying problems that can cause this message to be
reported are environment and configuration problems, such as having the PATH
wrong or not having GCC installed, disk full errors, incorrect permissions,
missing libraries or dependencies, and bugs or non-portable assumptions in the
configure script templates for individual projects.
It would probably be possible to improve autoconf so that it could generate
configure scripts that try and diagnose some of the more common sources of
problems running the C compiler, and perhaps be able to emit more helpful
error messages in some cases, but in the majority of cases it's going to
require manual intervention to diagnose and solve anyway, and as things stand
configure just throws up its hands and says "I give up. You figure it out".
Are you experiencing an occurrence of this problem yourself right now in the
course of building something, or was this just a general observation? It is
unfortunate that, because this one error message is generated for so many
different reasons, it's not easy to know when googling a solution whether the
one you've found is related to what's gone wrong in your particular
circumstances or not.
cheers,
DaveK
--
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
- Raw text -