www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/05/10:11:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-ID: <4CAB3208.701@cwilson.fastmail.fm>
Date: Tue, 05 Oct 2010 10:11:20 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
Reply-To: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: rebaseall on [1.7] : first glitch for ages
References: <4CAB15A6 DOT 1020007 AT bonhard DOT uklinux DOT net> <20101005130824 DOT GA3224 AT tishler DOT net>
In-Reply-To: <20101005130824.GA3224@tishler.net>
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 10/5/2010 9:08 AM, Jason Tishler wrote:
> On Tue, Oct 05, 2010 at 01:10:14PM +0100, Fergus wrote:
>> FixImage
>> (/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll)
>> failed with last error = 13
>> << halt immediately >>
>> $
> 
> FWIW, we have the following:
> 
>     $ fgrep 13L /usr/include/w32api/winerror.h | head -1
>     #define ERROR_INVALID_DATA 13L
> 
> It seems like rebase cannot handle 64-bit DLLs?

This is correct.  Until the mingw64-* toolchain was added to the distro,
the only 64bit dll was the 64bit cyglsa one -- which was specifically
excluded anyway.

Now that we have a few others...rebase should probably be extended.  Do
we have more "free" address space to play with on a 64bit OS?  Can
rebase maintain two separate regions to rebase 64bit and 32bit DLLs?

>> Q1: OS is XP Pro SP3, 32 bit. I always install everything. Can I
>> recover from this rebaseall error by fixing something or should I
>> simply un-install all 64-related packages (and never have installed
>> them in the first place)?
> 
> If you install all Cygwin packages, then you will likely run out of
> rebase address space.

Hence my question above, at least with regards to 64bit DLLs.

>> Q2: rebaseall appears not to "skip and move on" when it encounters an
>> error. In this case the whole thing simply halted as soon as this
>> report came up. Can you tell me what actually happens in this kind of
>> circumstance: does it skip-and-move-on or oh-dear-screech-to-a-halt?
> 
> rebase will skip some errors (e.g., when a DLL is not writable), but
> will exit if FixImage() fails.  Maybe rebase should skip this error too?

I don't think so -- what if the DLL was "partially" written, and some
other failure occurred?  I'd want to know right away.  FixImage should
probably, for now, just return without error if the image is 64bit.

--
Chuck


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


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