delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/08/11:00:03

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=trnyDXshXHOJ1W3R
j/hsQ97dLcuuHoAufNYw6/PnCB1XPvvfUlrsecWC017WxoZev8v8oU9whFCJH/em
DLldCdLCKgzoxLAcx6kbZbKv9uUokau1qa+2wudiI/rkU9woIZKUs4MedlScA76p
dsIFToERGoPxPnlXGi2IYWc1zJI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:cc:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=XfrYVCA9PJJoOz0gG4JL97
DYSqY=; b=jDQ1xcYmJLmyE2FXlZXBhI7fQVNv96ghSZEqCfJVrAtnwkFC4btiaa
Gsqawf6lryGiqNFR9C37ZYQ84RlkKah432wFeJbm8O37h8Ghw1QnIk4lQL2T1y5V
37UMehnctvL3QCfmtII0N9T3X50w2fxfIr5eB6xejOspedeB5hVLM=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: limerock04.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: Problem with nm in binutils-2.25-2 on x86
To: cygwin AT cygwin DOT com
References: <5613C8B0 DOT 5060604 AT cornell DOT edu> <5614EC94 DOT 7080500 AT gmail DOT com> <561638C5 DOT 90503 AT gmail DOT com>
Cc: Kai Tietz <ktietz70 AT googlemail DOT com>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <561684E7.5010608@cornell.edu>
Date: Thu, 8 Oct 2015 10:59:51 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <561638C5.90503@gmail.com>
X-IsSubscribed: yes

On 10/8/2015 5:35 AM, JonY wrote:
> On 10/7/2015 17:57, JonY wrote:
>> On 10/6/2015 21:12, Ken Brown wrote:
>>> This is a followup to
>>> https://www.cygwin.com/ml/cygwin/2015-10/msg00059.html .
>>>
>>> I tried to build icu using gcc-5 and binutils-2.25-2 on x86.  The build
>>> appeared to hang when cygport was stripping executables.  I traced the
>>> problem to a call to 'nm -l' in src_postinst.cygpart.  This produced
>>> errors like the following when called on some of the DLLs:
>>>
>>> $ nm -l cygicui18n56.dll
>>> 6270c458 b .bssBFD: Dwarf Error: Could not find abbrev number 1151.
>>> 6270c594 b .bssBFD: Dwarf Error: Could not find abbrev number 1151.
>>> 6270c0cc b .bssBFD: Dwarf Error: Could not find abbrev number 1151.
>>> ...
>>>
>>> This particular DLL can be found at
>>>
>>>    http://sanibeltranquility.com/cygwin/cygicui18n56.dll.xz
>>>
>
> Hi Ken,
>
> Are you able to reproduce a test case? Seems to require some complexity
> to trigger it.

Actually, it turns out to be quite easy to trigger it.  I just tested 
random programs that were sitting around, and here's the smallest one I 
found that exhibited the problem:

$ cat getcwd.c
#include <limits.h>
#include <unistd.h>

int
main ()
{
   char buf[PATH_MAX];
   getcwd (buf, PATH_MAX);
}

$ gcc getcwd.c

$ nm -l a.exe
00406000 b .bssBFD: Dwarf Error: Could not find abbrev number 120.
00406018 b .bssBFD: Dwarf Error: Could not find abbrev number 120.
[...]
00406040 b _u.25303BFD: Dwarf Error: Could not find abbrev number 120.
00401000 T _WinMainCRTStartup 
/usr/src/debug/cygwin-2.2.1-1/winsup/cygwin/crt0.c:23
004070b8 i fthunkBFD: Dwarf Error: Could not find abbrev number 120.
00407074 i hnameBFD: Dwarf Error: Could not find abbrev number 120.

Ken

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