Problem with nm in binutils-2.25-2 on x86

Ken Brown kbrown@cornell.edu
Thu Oct 8 14:59:00 GMT 2015


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



More information about the Cygwin mailing list