X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=1.4 required=5.0	tests=AWL,BAYES_00,RDNS_DYNAMIC,TVD_RCVD_IP,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <4F4BAB59.7080300@codeplay.com>
Date: Mon, 27 Feb 2012 16:12:09 +0000
From: Paul Keir <paul@codeplay.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120222 Thunderbird/11.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: GCC  fatal error: can't open /tmp/ccc6IHTT.s for writing
References: <4F4756DD.30203@codeplay.com> <4F477DBD.4050502@gmail.com> <4F479609.6080507@codeplay.com> <4F47A570.3090507@gmail.com> <4F47AE61.6040604@codeplay.com> <4F47BC24.5020108@gmail.com>
In-Reply-To: <4F47BC24.5020108@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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

Thanks Dave, it's fixed. It looks like the problem was the cygwin1.dll 
in C:\Windows\SYSTEM. I have no idea why that was there. (I am not the 
first to use this machine.)

As a precaution I have also removed 
C:\Users\XXXXXXXX\home\apps\gcc-4.7-20120128\bin from my PATH. I had 
built it with --program-suffix=-4.7, but the following potentially 
conflicting files remain there with their names untouched:

cyggfortran-3.dll
cygssp-0.dll
cygstdc++-6.dll

Thanks again.

On 24/02/2012 16:34, Dave Korn wrote:
> On 24/02/2012 15:36, Paul Keir wrote:
>> echo $? returns 1 after using gcc.
>    Right, that's "helpful" of it!  That's clearly just a fail status but not an
> errno value.
>
>    Anyway, I think your cygcheck reveals the problem.  You have multiple
> cygwin1.dlls of different versions in your path at the same time.  You also
> have a homebrew build of gcc 4.7 in your path, and it's using SJLJ exceptions
> rather than DW2, which means that its runtime DLLs will be incompatible with
> the standard system ones.
>
>    Try removing the cygwin1.dll from C:\Windows\SYSTEM, and cutting
> C:\Users\XXXXXXXX\home\apps\gcc-4.7-20120128\bin out of your PATH, and see if
> that fixes it.
>
>      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


--
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

